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 DLTrashLocalServiceUtil {
038
043
044
049 public static java.lang.String getOSGiServiceIdentifier() {
050 return getService().getOSGiServiceIdentifier();
051 }
052
053 public static com.liferay.portal.kernel.repository.model.FileEntry moveFileEntryFromTrash(
054 long userId, long repositoryId, long fileEntryId, long newFolderId,
055 com.liferay.portal.service.ServiceContext serviceContext)
056 throws com.liferay.portal.kernel.exception.PortalException {
057 return getService()
058 .moveFileEntryFromTrash(userId, repositoryId, fileEntryId,
059 newFolderId, serviceContext);
060 }
061
062 public static com.liferay.portal.kernel.repository.model.FileEntry moveFileEntryToTrash(
063 long userId, long repositoryId, long fileEntryId)
064 throws com.liferay.portal.kernel.exception.PortalException {
065 return getService()
066 .moveFileEntryToTrash(userId, repositoryId, fileEntryId);
067 }
068
069 public static void restoreFileEntryFromTrash(long userId,
070 long repositoryId, long fileEntryId)
071 throws com.liferay.portal.kernel.exception.PortalException {
072 getService().restoreFileEntryFromTrash(userId, repositoryId, fileEntryId);
073 }
074
075 public static DLTrashLocalService getService() {
076 if (_service == null) {
077 _service = (DLTrashLocalService)PortalBeanLocatorUtil.locate(DLTrashLocalService.class.getName());
078
079 ReferenceRegistry.registerReference(DLTrashLocalServiceUtil.class,
080 "_service");
081 }
082
083 return _service;
084 }
085
086 private static DLTrashLocalService _service;
087 }