1
14
15 package com.liferay.portlet.documentlibrary.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.util.MethodCache;
19 import com.liferay.portal.kernel.util.ReferenceRegistry;
20
21
41 public class DLFileShortcutLocalServiceUtil {
42 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addDLFileShortcut(
43 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
44 throws com.liferay.portal.SystemException {
45 return getService().addDLFileShortcut(dlFileShortcut);
46 }
47
48 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut createDLFileShortcut(
49 long fileShortcutId) {
50 return getService().createDLFileShortcut(fileShortcutId);
51 }
52
53 public static void deleteDLFileShortcut(long fileShortcutId)
54 throws com.liferay.portal.PortalException,
55 com.liferay.portal.SystemException {
56 getService().deleteDLFileShortcut(fileShortcutId);
57 }
58
59 public static void deleteDLFileShortcut(
60 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
61 throws com.liferay.portal.SystemException {
62 getService().deleteDLFileShortcut(dlFileShortcut);
63 }
64
65 @SuppressWarnings("rawtypes")
66 public static java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException {
69 return getService().dynamicQuery(dynamicQuery);
70 }
71
72 @SuppressWarnings("rawtypes")
73 public static java.util.List dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end) throws com.liferay.portal.SystemException {
76 return getService().dynamicQuery(dynamicQuery, start, end);
77 }
78
79 @SuppressWarnings("rawtypes")
80 public static java.util.List dynamicQuery(
81 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82 int end,
83 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84 throws com.liferay.portal.SystemException {
85 return getService()
86 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87 }
88
89 public static int dynamicQueryCount(
90 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91 throws com.liferay.portal.SystemException {
92 return getService().dynamicQueryCount(dynamicQuery);
93 }
94
95 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut getDLFileShortcut(
96 long fileShortcutId)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException {
99 return getService().getDLFileShortcut(fileShortcutId);
100 }
101
102 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut getDLFileShortcutByUuidAndGroupId(
103 java.lang.String uuid, long groupId)
104 throws com.liferay.portal.PortalException,
105 com.liferay.portal.SystemException {
106 return getService().getDLFileShortcutByUuidAndGroupId(uuid, groupId);
107 }
108
109 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getDLFileShortcuts(
110 int start, int end) throws com.liferay.portal.SystemException {
111 return getService().getDLFileShortcuts(start, end);
112 }
113
114 public static int getDLFileShortcutsCount()
115 throws com.liferay.portal.SystemException {
116 return getService().getDLFileShortcutsCount();
117 }
118
119 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
120 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
121 throws com.liferay.portal.SystemException {
122 return getService().updateDLFileShortcut(dlFileShortcut);
123 }
124
125 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
126 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
127 boolean merge) throws com.liferay.portal.SystemException {
128 return getService().updateDLFileShortcut(dlFileShortcut, merge);
129 }
130
131 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
132 long userId, long folderId, long toFolderId, java.lang.String toName,
133 boolean addCommunityPermissions, boolean addGuestPermissions)
134 throws com.liferay.portal.PortalException,
135 com.liferay.portal.SystemException {
136 return getService()
137 .addFileShortcut(userId, folderId, toFolderId, toName,
138 addCommunityPermissions, addGuestPermissions);
139 }
140
141 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
142 long userId, long folderId, long toFolderId, java.lang.String toName,
143 com.liferay.portal.service.ServiceContext serviceContext)
144 throws com.liferay.portal.PortalException,
145 com.liferay.portal.SystemException {
146 return getService()
147 .addFileShortcut(userId, folderId, toFolderId, toName,
148 serviceContext);
149 }
150
151 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
152 long userId, long folderId, long toFolderId, java.lang.String toName,
153 java.lang.String[] communityPermissions,
154 java.lang.String[] guestPermissions)
155 throws com.liferay.portal.PortalException,
156 com.liferay.portal.SystemException {
157 return getService()
158 .addFileShortcut(userId, folderId, toFolderId, toName,
159 communityPermissions, guestPermissions);
160 }
161
162 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
163 java.lang.String uuid, long userId, long folderId, long toFolderId,
164 java.lang.String toName, boolean addCommunityPermissions,
165 boolean addGuestPermissions)
166 throws com.liferay.portal.PortalException,
167 com.liferay.portal.SystemException {
168 return getService()
169 .addFileShortcut(uuid, userId, folderId, toFolderId, toName,
170 addCommunityPermissions, addGuestPermissions);
171 }
172
173 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
174 java.lang.String uuid, long userId, long folderId, long toFolderId,
175 java.lang.String toName, java.lang.Boolean addCommunityPermissions,
176 java.lang.Boolean addGuestPermissions,
177 java.lang.String[] communityPermissions,
178 java.lang.String[] guestPermissions)
179 throws com.liferay.portal.PortalException,
180 com.liferay.portal.SystemException {
181 return getService()
182 .addFileShortcut(uuid, userId, folderId, toFolderId, toName,
183 addCommunityPermissions, addGuestPermissions, communityPermissions,
184 guestPermissions);
185 }
186
187 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
188 java.lang.String uuid, long userId, long folderId, long toFolderId,
189 java.lang.String toName,
190 com.liferay.portal.service.ServiceContext serviceContext)
191 throws com.liferay.portal.PortalException,
192 com.liferay.portal.SystemException {
193 return getService()
194 .addFileShortcut(uuid, userId, folderId, toFolderId, toName,
195 serviceContext);
196 }
197
198 public static void addFileShortcutResources(
199 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
200 boolean addCommunityPermissions, boolean addGuestPermissions)
201 throws com.liferay.portal.PortalException,
202 com.liferay.portal.SystemException {
203 getService()
204 .addFileShortcutResources(fileShortcut, addCommunityPermissions,
205 addGuestPermissions);
206 }
207
208 public static void addFileShortcutResources(
209 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
210 java.lang.String[] communityPermissions,
211 java.lang.String[] guestPermissions)
212 throws com.liferay.portal.PortalException,
213 com.liferay.portal.SystemException {
214 getService()
215 .addFileShortcutResources(fileShortcut, communityPermissions,
216 guestPermissions);
217 }
218
219 public static void addFileShortcutResources(long fileShortcutId,
220 boolean addCommunityPermissions, boolean addGuestPermissions)
221 throws com.liferay.portal.PortalException,
222 com.liferay.portal.SystemException {
223 getService()
224 .addFileShortcutResources(fileShortcutId, addCommunityPermissions,
225 addGuestPermissions);
226 }
227
228 public static void addFileShortcutResources(long fileShortcutId,
229 java.lang.String[] communityPermissions,
230 java.lang.String[] guestPermissions)
231 throws com.liferay.portal.PortalException,
232 com.liferay.portal.SystemException {
233 getService()
234 .addFileShortcutResources(fileShortcutId, communityPermissions,
235 guestPermissions);
236 }
237
238 public static void deleteFileShortcut(
239 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut)
240 throws com.liferay.portal.PortalException,
241 com.liferay.portal.SystemException {
242 getService().deleteFileShortcut(fileShortcut);
243 }
244
245 public static void deleteFileShortcut(long fileShortcutId)
246 throws com.liferay.portal.PortalException,
247 com.liferay.portal.SystemException {
248 getService().deleteFileShortcut(fileShortcutId);
249 }
250
251 public static void deleteFileShortcuts(long toFolderId,
252 java.lang.String toName)
253 throws com.liferay.portal.PortalException,
254 com.liferay.portal.SystemException {
255 getService().deleteFileShortcuts(toFolderId, toName);
256 }
257
258 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut getFileShortcut(
259 long fileShortcutId)
260 throws com.liferay.portal.PortalException,
261 com.liferay.portal.SystemException {
262 return getService().getFileShortcut(fileShortcutId);
263 }
264
265 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
266 long userId, long fileShortcutId, long folderId, long toFolderId,
267 java.lang.String toName)
268 throws com.liferay.portal.PortalException,
269 com.liferay.portal.SystemException {
270 return getService()
271 .updateFileShortcut(userId, fileShortcutId, folderId,
272 toFolderId, toName);
273 }
274
275 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
276 long userId, long fileShortcutId, long folderId, long toFolderId,
277 java.lang.String toName,
278 com.liferay.portal.service.ServiceContext serviceContext)
279 throws com.liferay.portal.PortalException,
280 com.liferay.portal.SystemException {
281 return getService()
282 .updateFileShortcut(userId, fileShortcutId, folderId,
283 toFolderId, toName, serviceContext);
284 }
285
286 public static void updateFileShortcuts(long oldToFolderId,
287 java.lang.String oldToName, long newToFolderId,
288 java.lang.String newToName) throws com.liferay.portal.SystemException {
289 getService()
290 .updateFileShortcuts(oldToFolderId, oldToName, newToFolderId,
291 newToName);
292 }
293
294 public static void updateTagsAsset(long userId,
295 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
296 java.lang.String[] tagsCategories, java.lang.String[] tagsEntries)
297 throws com.liferay.portal.PortalException,
298 com.liferay.portal.SystemException {
299 getService()
300 .updateTagsAsset(userId, fileShortcut, tagsCategories, tagsEntries);
301 }
302
303 public static DLFileShortcutLocalService getService() {
304 if (_service == null) {
305 _service = (DLFileShortcutLocalService)PortalBeanLocatorUtil.locate(DLFileShortcutLocalService.class.getName());
306
307 ReferenceRegistry.registerReference(DLFileShortcutLocalServiceUtil.class,
308 "_service");
309 MethodCache.remove(DLFileShortcutLocalService.class);
310 }
311
312 return _service;
313 }
314
315 public void setService(DLFileShortcutLocalService service) {
316 MethodCache.remove(DLFileShortcutLocalService.class);
317
318 _service = service;
319
320 ReferenceRegistry.registerReference(DLFileShortcutLocalServiceUtil.class,
321 "_service");
322 MethodCache.remove(DLFileShortcutLocalService.class);
323 }
324
325 private static DLFileShortcutLocalService _service;
326 }