001
014
015 package com.liferay.portlet.documentlibrary.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class DLFileShortcutServiceUtil {
034
039
040
045 public static java.lang.String getBeanIdentifier() {
046 return getService().getBeanIdentifier();
047 }
048
049
054 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055 getService().setBeanIdentifier(beanIdentifier);
056 }
057
058 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
059 long groupId, long folderId, long toFileEntryId,
060 com.liferay.portal.service.ServiceContext serviceContext)
061 throws com.liferay.portal.kernel.exception.PortalException,
062 com.liferay.portal.kernel.exception.SystemException {
063 return getService()
064 .addFileShortcut(groupId, folderId, toFileEntryId,
065 serviceContext);
066 }
067
068 public static void deleteFileShortcut(long fileShortcutId)
069 throws com.liferay.portal.kernel.exception.PortalException,
070 com.liferay.portal.kernel.exception.SystemException {
071 getService().deleteFileShortcut(fileShortcutId);
072 }
073
074 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut getFileShortcut(
075 long fileShortcutId)
076 throws com.liferay.portal.kernel.exception.PortalException,
077 com.liferay.portal.kernel.exception.SystemException {
078 return getService().getFileShortcut(fileShortcutId);
079 }
080
081 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
082 long fileShortcutId, long folderId, long toFileEntryId,
083 com.liferay.portal.service.ServiceContext serviceContext)
084 throws com.liferay.portal.kernel.exception.PortalException,
085 com.liferay.portal.kernel.exception.SystemException {
086 return getService()
087 .updateFileShortcut(fileShortcutId, folderId, toFileEntryId,
088 serviceContext);
089 }
090
091 public static DLFileShortcutService getService() {
092 if (_service == null) {
093 _service = (DLFileShortcutService)PortalBeanLocatorUtil.locate(DLFileShortcutService.class.getName());
094
095 ReferenceRegistry.registerReference(DLFileShortcutServiceUtil.class,
096 "_service");
097 }
098
099 return _service;
100 }
101
102
105 public void setService(DLFileShortcutService service) {
106 }
107
108 private static DLFileShortcutService _service;
109 }