Class DLFolderServiceWrapper
Object
com.liferay.document.library.kernel.service.DLFolderServiceWrapper
- All Implemented Interfaces:
DLFolderService
,BaseService
,ServiceWrapper<DLFolderService>
public class DLFolderServiceWrapper
extends Object
implements DLFolderService, ServiceWrapper<DLFolderService>
Provides a wrapper for
DLFolderService
.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFolder
(String externalReferenceCode, long groupId, long repositoryId, boolean mountPoint, long parentFolderId, String name, String description, ServiceContext serviceContext) void
deleteFolder
(long folderId) void
deleteFolder
(long folderId, boolean includeTrashedEntries) void
deleteFolder
(long groupId, long parentFolderId, String name) getDLFolderByExternalReferenceCode
(String externalReferenceCode, long groupId) getFileEntriesAndFileShortcuts
(long groupId, long folderId, int status, int start, int end) int
getFileEntriesAndFileShortcutsCount
(long groupId, long folderId, int status) int
getFileEntriesAndFileShortcutsCount
(long groupId, long folderId, String[] mimeTypes, int status) getFolder
(long folderId) getFolderIds
(long groupId, long folderId) getFolders
(long groupId, double score, int start, int end) getFolders
(long groupId, long parentFolderId, boolean includeMountfolders, int status, int start, int end, OrderByComparator<DLFolder> orderByComparator) getFolders
(long groupId, long parentFolderId, int start, int end, OrderByComparator<DLFolder> orderByComparator) getFoldersAndFileEntriesAndFileShortcuts
(long groupId, long folderId, boolean includeMountFolders, int status, int start, int end, OrderByComparator<?> orderByComparator) getFoldersAndFileEntriesAndFileShortcuts
(long groupId, long folderId, String[] mimeTypes, boolean includeMountFolders, int status, int start, int end, OrderByComparator<?> orderByComparator) getFoldersAndFileEntriesAndFileShortcuts
(long groupId, long folderId, String[] mimeTypes, boolean includeMountFolders, QueryDefinition<?> queryDefinition) getFoldersAndFileEntriesAndFileShortcuts
(long groupId, long folderId, String[] mimeTypes, long fileEntryTypeId, boolean includeMountFolders, int status, int start, int end, OrderByComparator<?> orderByComparator) int
getFoldersAndFileEntriesAndFileShortcutsCount
(long groupId, long folderId, int status, boolean includeMountFolders) int
getFoldersAndFileEntriesAndFileShortcutsCount
(long groupId, long folderId, int status, String[] mimeTypes, boolean includeMountFolders) Deprecated.int
getFoldersAndFileEntriesAndFileShortcutsCount
(long groupId, long folderId, String[] mimeTypes, boolean includeMountFolders, int status) int
getFoldersAndFileEntriesAndFileShortcutsCount
(long groupId, long folderId, String[] mimeTypes, boolean includeMountFolders, QueryDefinition<?> queryDefinition) int
getFoldersAndFileEntriesAndFileShortcutsCount
(long groupId, long folderId, String[] mimeTypes, long fileEntryTypeId, boolean includeMountFolders, int status) int
getFoldersCount
(long groupId, double score) int
getFoldersCount
(long groupId, long parentFolderId) int
getFoldersCount
(long groupId, long parentFolderId, boolean includeMountfolders, int status) int
getFoldersCount
(long groupId, long parentFolderId, int status, boolean includeMountfolders) Deprecated.As of Athanasius (7.3.x), replaced bygetFoldersCount(long, long, boolean, int)
getMountFolders
(long groupId, long parentFolderId, int start, int end, OrderByComparator<DLFolder> orderByComparator) int
getMountFoldersCount
(long groupId, long parentFolderId) Returns the OSGi service identifier.getSubfolderIds
(long groupId, long folderId, boolean recurse) void
getSubfolderIds
(List<Long> folderIds, long groupId, long folderId, boolean recurse) boolean
hasFolderLock
(long folderId) boolean
hasInheritableLock
(long folderId) boolean
isFolderLocked
(long folderId) lockFolder
(long folderId) lockFolder
(long folderId, String owner, boolean inheritable, long expirationTime) moveFolder
(long folderId, long parentFolderId, ServiceContext serviceContext) refreshFolderLock
(String lockUuid, long companyId, long expirationTime) void
setWrappedService
(DLFolderService dlFolderService) void
unlockFolder
(long groupId, long parentFolderId, String name, String lockUuid) void
unlockFolder
(long folderId, String lockUuid) updateFolder
(long folderId, long parentFolderId, String name, String description, long defaultFileEntryTypeId, List<Long> fileEntryTypeIds, int restrictionType, ServiceContext serviceContext) updateFolder
(long folderId, String name, String description, long defaultFileEntryTypeId, List<Long> fileEntryTypeIds, int restrictionType, ServiceContext serviceContext) boolean
verifyInheritableLock
(long folderId, String lockUuid)
-
Constructor Details
-
DLFolderServiceWrapper
public DLFolderServiceWrapper() -
DLFolderServiceWrapper
-
-
Method Details
-
addFolder
public DLFolder addFolder(String externalReferenceCode, long groupId, long repositoryId, boolean mountPoint, long parentFolderId, String name, String description, ServiceContext serviceContext) throws PortalException - Specified by:
addFolder
in interfaceDLFolderService
- Throws:
PortalException
-
deleteFolder
- Specified by:
deleteFolder
in interfaceDLFolderService
- Throws:
PortalException
-
deleteFolder
- Specified by:
deleteFolder
in interfaceDLFolderService
- Throws:
PortalException
-
deleteFolder
- Specified by:
deleteFolder
in interfaceDLFolderService
- Throws:
PortalException
-
getDLFolderByExternalReferenceCode
public DLFolder getDLFolderByExternalReferenceCode(String externalReferenceCode, long groupId) throws PortalException - Specified by:
getDLFolderByExternalReferenceCode
in interfaceDLFolderService
- Throws:
PortalException
-
getFileEntriesAndFileShortcuts
public List<Object> getFileEntriesAndFileShortcuts(long groupId, long folderId, int status, int start, int end) throws PortalException - Specified by:
getFileEntriesAndFileShortcuts
in interfaceDLFolderService
- Throws:
PortalException
-
getFileEntriesAndFileShortcutsCount
public int getFileEntriesAndFileShortcutsCount(long groupId, long folderId, int status) throws PortalException - Specified by:
getFileEntriesAndFileShortcutsCount
in interfaceDLFolderService
- Throws:
PortalException
-
getFileEntriesAndFileShortcutsCount
public int getFileEntriesAndFileShortcutsCount(long groupId, long folderId, String[] mimeTypes, int status) throws PortalException - Specified by:
getFileEntriesAndFileShortcutsCount
in interfaceDLFolderService
- Throws:
PortalException
-
getFolder
- Specified by:
getFolder
in interfaceDLFolderService
- Throws:
PortalException
-
getFolder
- Specified by:
getFolder
in interfaceDLFolderService
- Throws:
PortalException
-
getFolderIds
- Specified by:
getFolderIds
in interfaceDLFolderService
- Throws:
PortalException
-
getFolders
public List<DLFolder> getFolders(long groupId, double score, int start, int end) throws PortalException - Specified by:
getFolders
in interfaceDLFolderService
- Throws:
PortalException
-
getFolders
public List<DLFolder> getFolders(long groupId, long parentFolderId, boolean includeMountfolders, int status, int start, int end, OrderByComparator<DLFolder> orderByComparator) throws PortalException - Specified by:
getFolders
in interfaceDLFolderService
- Throws:
PortalException
-
getFolders
public List<DLFolder> getFolders(long groupId, long parentFolderId, int start, int end, OrderByComparator<DLFolder> orderByComparator) throws PortalException - Specified by:
getFolders
in interfaceDLFolderService
- Throws:
PortalException
-
getFoldersAndFileEntriesAndFileShortcuts
public List<Object> getFoldersAndFileEntriesAndFileShortcuts(long groupId, long folderId, boolean includeMountFolders, int status, int start, int end, OrderByComparator<?> orderByComparator) throws PortalException - Specified by:
getFoldersAndFileEntriesAndFileShortcuts
in interfaceDLFolderService
- Throws:
PortalException
-
getFoldersAndFileEntriesAndFileShortcuts
public List<Object> getFoldersAndFileEntriesAndFileShortcuts(long groupId, long folderId, String[] mimeTypes, boolean includeMountFolders, int status, int start, int end, OrderByComparator<?> orderByComparator) throws PortalException - Specified by:
getFoldersAndFileEntriesAndFileShortcuts
in interfaceDLFolderService
- Throws:
PortalException
-
getFoldersAndFileEntriesAndFileShortcuts
public List<Object> getFoldersAndFileEntriesAndFileShortcuts(long groupId, long folderId, String[] mimeTypes, boolean includeMountFolders, QueryDefinition<?> queryDefinition) throws PortalException - Specified by:
getFoldersAndFileEntriesAndFileShortcuts
in interfaceDLFolderService
- Throws:
PortalException
-
getFoldersAndFileEntriesAndFileShortcuts
public List<Object> getFoldersAndFileEntriesAndFileShortcuts(long groupId, long folderId, String[] mimeTypes, long fileEntryTypeId, boolean includeMountFolders, int status, int start, int end, OrderByComparator<?> orderByComparator) throws PortalException - Specified by:
getFoldersAndFileEntriesAndFileShortcuts
in interfaceDLFolderService
- Throws:
PortalException
-
getFoldersAndFileEntriesAndFileShortcutsCount
public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId, long folderId, int status, boolean includeMountFolders) throws PortalException - Specified by:
getFoldersAndFileEntriesAndFileShortcutsCount
in interfaceDLFolderService
- Throws:
PortalException
-
getFoldersAndFileEntriesAndFileShortcutsCount
@Deprecated public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId, long folderId, int status, String[] mimeTypes, boolean includeMountFolders) throws PortalException Deprecated.As of Athanasius (7.3.x), replaced bygetFoldersAndFileEntriesAndFileShortcutsCount(long, long, String[], boolean, int)
- Specified by:
getFoldersAndFileEntriesAndFileShortcutsCount
in interfaceDLFolderService
- Throws:
PortalException
-
getFoldersAndFileEntriesAndFileShortcutsCount
public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId, long folderId, String[] mimeTypes, boolean includeMountFolders, int status) throws PortalException - Specified by:
getFoldersAndFileEntriesAndFileShortcutsCount
in interfaceDLFolderService
- Throws:
PortalException
-
getFoldersAndFileEntriesAndFileShortcutsCount
public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId, long folderId, String[] mimeTypes, boolean includeMountFolders, QueryDefinition<?> queryDefinition) throws PortalException - Specified by:
getFoldersAndFileEntriesAndFileShortcutsCount
in interfaceDLFolderService
- Throws:
PortalException
-
getFoldersAndFileEntriesAndFileShortcutsCount
public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId, long folderId, String[] mimeTypes, long fileEntryTypeId, boolean includeMountFolders, int status) throws PortalException - Specified by:
getFoldersAndFileEntriesAndFileShortcutsCount
in interfaceDLFolderService
- Throws:
PortalException
-
getFoldersCount
- Specified by:
getFoldersCount
in interfaceDLFolderService
- Throws:
PortalException
-
getFoldersCount
- Specified by:
getFoldersCount
in interfaceDLFolderService
- Throws:
PortalException
-
getFoldersCount
public int getFoldersCount(long groupId, long parentFolderId, boolean includeMountfolders, int status) throws PortalException - Specified by:
getFoldersCount
in interfaceDLFolderService
- Throws:
PortalException
-
getFoldersCount
@Deprecated public int getFoldersCount(long groupId, long parentFolderId, int status, boolean includeMountfolders) throws PortalException Deprecated.As of Athanasius (7.3.x), replaced bygetFoldersCount(long, long, boolean, int)
- Specified by:
getFoldersCount
in interfaceDLFolderService
- Throws:
PortalException
-
getMountFolders
public List<DLFolder> getMountFolders(long groupId, long parentFolderId, int start, int end, OrderByComparator<DLFolder> orderByComparator) throws PortalException - Specified by:
getMountFolders
in interfaceDLFolderService
- Throws:
PortalException
-
getMountFoldersCount
- Specified by:
getMountFoldersCount
in interfaceDLFolderService
- Throws:
PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceDLFolderService
- Returns:
- the OSGi service identifier
-
getSubfolderIds
public void getSubfolderIds(List<Long> folderIds, long groupId, long folderId, boolean recurse) throws PortalException - Specified by:
getSubfolderIds
in interfaceDLFolderService
- Throws:
PortalException
-
getSubfolderIds
public List<Long> getSubfolderIds(long groupId, long folderId, boolean recurse) throws PortalException - Specified by:
getSubfolderIds
in interfaceDLFolderService
- Throws:
PortalException
-
hasFolderLock
- Specified by:
hasFolderLock
in interfaceDLFolderService
- Throws:
PortalException
-
hasInheritableLock
- Specified by:
hasInheritableLock
in interfaceDLFolderService
- Throws:
PortalException
-
isFolderLocked
public boolean isFolderLocked(long folderId) - Specified by:
isFolderLocked
in interfaceDLFolderService
-
lockFolder
- Specified by:
lockFolder
in interfaceDLFolderService
- Throws:
PortalException
-
lockFolder
public Lock lockFolder(long folderId, String owner, boolean inheritable, long expirationTime) throws PortalException - Specified by:
lockFolder
in interfaceDLFolderService
- Throws:
PortalException
-
moveFolder
public DLFolder moveFolder(long folderId, long parentFolderId, ServiceContext serviceContext) throws PortalException - Specified by:
moveFolder
in interfaceDLFolderService
- Throws:
PortalException
-
refreshFolderLock
public Lock refreshFolderLock(String lockUuid, long companyId, long expirationTime) throws PortalException - Specified by:
refreshFolderLock
in interfaceDLFolderService
- Throws:
PortalException
-
unlockFolder
public void unlockFolder(long groupId, long parentFolderId, String name, String lockUuid) throws PortalException - Specified by:
unlockFolder
in interfaceDLFolderService
- Throws:
PortalException
-
unlockFolder
- Specified by:
unlockFolder
in interfaceDLFolderService
- Throws:
PortalException
-
updateFolder
public DLFolder updateFolder(long folderId, long parentFolderId, String name, String description, long defaultFileEntryTypeId, List<Long> fileEntryTypeIds, int restrictionType, ServiceContext serviceContext) throws PortalException - Specified by:
updateFolder
in interfaceDLFolderService
- Throws:
PortalException
-
updateFolder
public DLFolder updateFolder(long folderId, String name, String description, long defaultFileEntryTypeId, List<Long> fileEntryTypeIds, int restrictionType, ServiceContext serviceContext) throws PortalException - Specified by:
updateFolder
in interfaceDLFolderService
- Throws:
PortalException
-
verifyInheritableLock
- Specified by:
verifyInheritableLock
in interfaceDLFolderService
- Throws:
PortalException
-
getWrappedService
- Specified by:
getWrappedService
in interfaceServiceWrapper<DLFolderService>
-
setWrappedService
- Specified by:
setWrappedService
in interfaceServiceWrapper<DLFolderService>
-
getFoldersAndFileEntriesAndFileShortcutsCount(long, long, String[], boolean, int)