Class DLTrashLocalServiceUtil
Object
com.liferay.document.library.kernel.service.DLTrashLocalServiceUtil
Provides the local service utility for DLTrash. This utility wraps
com.liferay.portlet.documentlibrary.service.impl.DLTrashLocalServiceImpl
and
is an access point for service operations in application layer code running
on the local server. Methods of this service will not have security checks
based on the propagated JAAS credentials because this service can only be
accessed from within the same VM.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Returns the OSGi service identifier.static DLTrashLocalService
static FileEntry
moveFileEntryFromTrash
(long userId, long repositoryId, long fileEntryId, long newFolderId, ServiceContext serviceContext) static FileEntry
moveFileEntryToTrash
(long userId, long repositoryId, long fileEntryId) static void
restoreFileEntryFromTrash
(long userId, long repositoryId, long fileEntryId) static void
setService
(DLTrashLocalService service)
-
Constructor Details
-
DLTrashLocalServiceUtil
public DLTrashLocalServiceUtil()
-
-
Method Details
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
moveFileEntryFromTrash
public static FileEntry moveFileEntryFromTrash(long userId, long repositoryId, long fileEntryId, long newFolderId, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
moveFileEntryToTrash
public static FileEntry moveFileEntryToTrash(long userId, long repositoryId, long fileEntryId) throws PortalException - Throws:
PortalException
-
restoreFileEntryFromTrash
public static void restoreFileEntryFromTrash(long userId, long repositoryId, long fileEntryId) throws PortalException - Throws:
PortalException
-
getService
-
setService
-