001
014
015 package com.liferay.portlet.documentlibrary.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class DLFileShortcutLocalServiceUtil {
038
043
044
051 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addDLFileShortcut(
052 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
053 throws com.liferay.portal.kernel.exception.SystemException {
054 return getService().addDLFileShortcut(dlFileShortcut);
055 }
056
057
063 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut createDLFileShortcut(
064 long fileShortcutId) {
065 return getService().createDLFileShortcut(fileShortcutId);
066 }
067
068
076 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut deleteDLFileShortcut(
077 long fileShortcutId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 return getService().deleteDLFileShortcut(fileShortcutId);
081 }
082
083
090 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut deleteDLFileShortcut(
091 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
092 throws com.liferay.portal.kernel.exception.SystemException {
093 return getService().deleteDLFileShortcut(dlFileShortcut);
094 }
095
096 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
097 return getService().dynamicQuery();
098 }
099
100
107 @SuppressWarnings("rawtypes")
108 public static java.util.List dynamicQuery(
109 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().dynamicQuery(dynamicQuery);
112 }
113
114
127 @SuppressWarnings("rawtypes")
128 public static java.util.List dynamicQuery(
129 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130 int end) throws com.liferay.portal.kernel.exception.SystemException {
131 return getService().dynamicQuery(dynamicQuery, start, end);
132 }
133
134
148 @SuppressWarnings("rawtypes")
149 public static java.util.List dynamicQuery(
150 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151 int end,
152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getService()
155 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
156 }
157
158
165 public static long dynamicQueryCount(
166 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
167 throws com.liferay.portal.kernel.exception.SystemException {
168 return getService().dynamicQueryCount(dynamicQuery);
169 }
170
171
179 public static long dynamicQueryCount(
180 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
181 com.liferay.portal.kernel.dao.orm.Projection projection)
182 throws com.liferay.portal.kernel.exception.SystemException {
183 return getService().dynamicQueryCount(dynamicQuery, projection);
184 }
185
186 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchDLFileShortcut(
187 long fileShortcutId)
188 throws com.liferay.portal.kernel.exception.SystemException {
189 return getService().fetchDLFileShortcut(fileShortcutId);
190 }
191
192
200 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchDLFileShortcutByUuidAndCompanyId(
201 java.lang.String uuid, long companyId)
202 throws com.liferay.portal.kernel.exception.SystemException {
203 return getService()
204 .fetchDLFileShortcutByUuidAndCompanyId(uuid, companyId);
205 }
206
207
215 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchDLFileShortcutByUuidAndGroupId(
216 java.lang.String uuid, long groupId)
217 throws com.liferay.portal.kernel.exception.SystemException {
218 return getService().fetchDLFileShortcutByUuidAndGroupId(uuid, groupId);
219 }
220
221
229 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut getDLFileShortcut(
230 long fileShortcutId)
231 throws com.liferay.portal.kernel.exception.PortalException,
232 com.liferay.portal.kernel.exception.SystemException {
233 return getService().getDLFileShortcut(fileShortcutId);
234 }
235
236 public static com.liferay.portal.model.PersistedModel getPersistedModel(
237 java.io.Serializable primaryKeyObj)
238 throws com.liferay.portal.kernel.exception.PortalException,
239 com.liferay.portal.kernel.exception.SystemException {
240 return getService().getPersistedModel(primaryKeyObj);
241 }
242
243
252 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut getDLFileShortcutByUuidAndCompanyId(
253 java.lang.String uuid, long companyId)
254 throws com.liferay.portal.kernel.exception.PortalException,
255 com.liferay.portal.kernel.exception.SystemException {
256 return getService().getDLFileShortcutByUuidAndCompanyId(uuid, companyId);
257 }
258
259
268 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut getDLFileShortcutByUuidAndGroupId(
269 java.lang.String uuid, long groupId)
270 throws com.liferay.portal.kernel.exception.PortalException,
271 com.liferay.portal.kernel.exception.SystemException {
272 return getService().getDLFileShortcutByUuidAndGroupId(uuid, groupId);
273 }
274
275
287 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getDLFileShortcuts(
288 int start, int end)
289 throws com.liferay.portal.kernel.exception.SystemException {
290 return getService().getDLFileShortcuts(start, end);
291 }
292
293
299 public static int getDLFileShortcutsCount()
300 throws com.liferay.portal.kernel.exception.SystemException {
301 return getService().getDLFileShortcutsCount();
302 }
303
304
311 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
312 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
313 throws com.liferay.portal.kernel.exception.SystemException {
314 return getService().updateDLFileShortcut(dlFileShortcut);
315 }
316
317
322 public static java.lang.String getBeanIdentifier() {
323 return getService().getBeanIdentifier();
324 }
325
326
331 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
332 getService().setBeanIdentifier(beanIdentifier);
333 }
334
335 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
336 long userId, long groupId, long folderId, long toFileEntryId,
337 com.liferay.portal.service.ServiceContext serviceContext)
338 throws com.liferay.portal.kernel.exception.PortalException,
339 com.liferay.portal.kernel.exception.SystemException {
340 return getService()
341 .addFileShortcut(userId, groupId, folderId, toFileEntryId,
342 serviceContext);
343 }
344
345 public static void addFileShortcutResources(
346 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
347 boolean addGroupPermissions, boolean addGuestPermissions)
348 throws com.liferay.portal.kernel.exception.PortalException,
349 com.liferay.portal.kernel.exception.SystemException {
350 getService()
351 .addFileShortcutResources(fileShortcut, addGroupPermissions,
352 addGuestPermissions);
353 }
354
355 public static void addFileShortcutResources(
356 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
357 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
358 throws com.liferay.portal.kernel.exception.PortalException,
359 com.liferay.portal.kernel.exception.SystemException {
360 getService()
361 .addFileShortcutResources(fileShortcut, groupPermissions,
362 guestPermissions);
363 }
364
365 public static void addFileShortcutResources(long fileShortcutId,
366 boolean addGroupPermissions, boolean addGuestPermissions)
367 throws com.liferay.portal.kernel.exception.PortalException,
368 com.liferay.portal.kernel.exception.SystemException {
369 getService()
370 .addFileShortcutResources(fileShortcutId, addGroupPermissions,
371 addGuestPermissions);
372 }
373
374 public static void addFileShortcutResources(long fileShortcutId,
375 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
376 throws com.liferay.portal.kernel.exception.PortalException,
377 com.liferay.portal.kernel.exception.SystemException {
378 getService()
379 .addFileShortcutResources(fileShortcutId, groupPermissions,
380 guestPermissions);
381 }
382
383 public static void deleteFileShortcut(
384 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut)
385 throws com.liferay.portal.kernel.exception.PortalException,
386 com.liferay.portal.kernel.exception.SystemException {
387 getService().deleteFileShortcut(fileShortcut);
388 }
389
390 public static void deleteFileShortcut(long fileShortcutId)
391 throws com.liferay.portal.kernel.exception.PortalException,
392 com.liferay.portal.kernel.exception.SystemException {
393 getService().deleteFileShortcut(fileShortcutId);
394 }
395
396 public static void deleteFileShortcuts(long toFileEntryId)
397 throws com.liferay.portal.kernel.exception.PortalException,
398 com.liferay.portal.kernel.exception.SystemException {
399 getService().deleteFileShortcuts(toFileEntryId);
400 }
401
402 public static void deleteFileShortcuts(long groupId, long folderId)
403 throws com.liferay.portal.kernel.exception.PortalException,
404 com.liferay.portal.kernel.exception.SystemException {
405 getService().deleteFileShortcuts(groupId, folderId);
406 }
407
408 public static void deleteFileShortcuts(long groupId, long folderId,
409 boolean includeTrashedEntries)
410 throws com.liferay.portal.kernel.exception.PortalException,
411 com.liferay.portal.kernel.exception.SystemException {
412 getService()
413 .deleteFileShortcuts(groupId, folderId, includeTrashedEntries);
414 }
415
416 public static void disableFileShortcuts(long toFileEntryId)
417 throws com.liferay.portal.kernel.exception.SystemException {
418 getService().disableFileShortcuts(toFileEntryId);
419 }
420
421 public static void enableFileShortcuts(long toFileEntryId)
422 throws com.liferay.portal.kernel.exception.SystemException {
423 getService().enableFileShortcuts(toFileEntryId);
424 }
425
426 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut getFileShortcut(
427 long fileShortcutId)
428 throws com.liferay.portal.kernel.exception.PortalException,
429 com.liferay.portal.kernel.exception.SystemException {
430 return getService().getFileShortcut(fileShortcutId);
431 }
432
433 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getFileShortcuts(
434 long groupId, long folderId, boolean active, int status, int start,
435 int end) throws com.liferay.portal.kernel.exception.SystemException {
436 return getService()
437 .getFileShortcuts(groupId, folderId, active, status, start,
438 end);
439 }
440
441 public static int getFileShortcutsCount(long groupId, long folderId,
442 boolean active, int status)
443 throws com.liferay.portal.kernel.exception.SystemException {
444 return getService()
445 .getFileShortcutsCount(groupId, folderId, active, status);
446 }
447
448 public static void rebuildTree(long companyId)
449 throws com.liferay.portal.kernel.exception.PortalException,
450 com.liferay.portal.kernel.exception.SystemException {
451 getService().rebuildTree(companyId);
452 }
453
454 public static void setTreePaths(long folderId, java.lang.String treePath)
455 throws com.liferay.portal.kernel.exception.PortalException,
456 com.liferay.portal.kernel.exception.SystemException {
457 getService().setTreePaths(folderId, treePath);
458 }
459
460 public static void updateAsset(long userId,
461 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
462 long[] assetCategoryIds, java.lang.String[] assetTagNames)
463 throws com.liferay.portal.kernel.exception.PortalException,
464 com.liferay.portal.kernel.exception.SystemException {
465 getService()
466 .updateAsset(userId, fileShortcut, assetCategoryIds, assetTagNames);
467 }
468
469 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
470 long userId, long fileShortcutId, long folderId, long toFileEntryId,
471 com.liferay.portal.service.ServiceContext serviceContext)
472 throws com.liferay.portal.kernel.exception.PortalException,
473 com.liferay.portal.kernel.exception.SystemException {
474 return getService()
475 .updateFileShortcut(userId, fileShortcutId, folderId,
476 toFileEntryId, serviceContext);
477 }
478
479 public static void updateFileShortcuts(long oldToFileEntryId,
480 long newToFileEntryId)
481 throws com.liferay.portal.kernel.exception.SystemException {
482 getService().updateFileShortcuts(oldToFileEntryId, newToFileEntryId);
483 }
484
485 public static void updateStatus(long userId, long fileShortcutId,
486 int status, com.liferay.portal.service.ServiceContext serviceContext)
487 throws com.liferay.portal.kernel.exception.PortalException,
488 com.liferay.portal.kernel.exception.SystemException {
489 getService().updateStatus(userId, fileShortcutId, status, serviceContext);
490 }
491
492 public static DLFileShortcutLocalService getService() {
493 if (_service == null) {
494 _service = (DLFileShortcutLocalService)PortalBeanLocatorUtil.locate(DLFileShortcutLocalService.class.getName());
495
496 ReferenceRegistry.registerReference(DLFileShortcutLocalServiceUtil.class,
497 "_service");
498 }
499
500 return _service;
501 }
502
503
506 public void setService(DLFileShortcutLocalService service) {
507 }
508
509 private static DLFileShortcutLocalService _service;
510 }