Class DLFolderServiceImpl

Object
com.liferay.portal.kernel.service.BaseServiceImpl
com.liferay.portlet.documentlibrary.service.base.DLFolderServiceBaseImpl
com.liferay.portlet.documentlibrary.service.impl.DLFolderServiceImpl
All Implemented Interfaces:
com.liferay.document.library.kernel.service.DLFolderService, com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.BaseService

public class DLFolderServiceImpl extends DLFolderServiceBaseImpl
Author:
Brian Wing Shun Chan, Alexander Chow
  • Constructor Details

    • DLFolderServiceImpl

      public DLFolderServiceImpl()
  • Method Details

    • addFolder

      public com.liferay.document.library.kernel.model.DLFolder addFolder(String externalReferenceCode, long groupId, long repositoryId, boolean mountPoint, long parentFolderId, String name, String description, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteFolder

      public void deleteFolder(long folderId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteFolder

      public void deleteFolder(long folderId, boolean includeTrashedEntries) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteFolder

      public void deleteFolder(long groupId, long parentFolderId, String name) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getDLFolderByExternalReferenceCode

      public com.liferay.document.library.kernel.model.DLFolder getDLFolderByExternalReferenceCode(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFileEntriesAndFileShortcuts

      public List<Object> getFileEntriesAndFileShortcuts(long groupId, long folderId, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFileEntriesAndFileShortcutsCount

      public int getFileEntriesAndFileShortcutsCount(long groupId, long folderId, int status) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFileEntriesAndFileShortcutsCount

      public int getFileEntriesAndFileShortcutsCount(long groupId, long folderId, String[] mimeTypes, int status) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFolder

      public com.liferay.document.library.kernel.model.DLFolder getFolder(long folderId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFolder

      public com.liferay.document.library.kernel.model.DLFolder getFolder(long groupId, long parentFolderId, String name) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFolderIds

      public List<Long> getFolderIds(long groupId, long folderId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFolders

      public List<com.liferay.document.library.kernel.model.DLFolder> getFolders(long groupId, double score, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFolders

      public List<com.liferay.document.library.kernel.model.DLFolder> getFolders(long groupId, long parentFolderId, boolean includeMountfolders, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFolder> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFolders

      public List<com.liferay.document.library.kernel.model.DLFolder> getFolders(long groupId, long parentFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFolder> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFoldersAndFileEntriesAndFileShortcuts

      public List<Object> getFoldersAndFileEntriesAndFileShortcuts(long groupId, long folderId, boolean includeMountFolders, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFoldersAndFileEntriesAndFileShortcuts

      public List<Object> getFoldersAndFileEntriesAndFileShortcuts(long groupId, long folderId, String[] mimeTypes, boolean includeMountFolders, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFoldersAndFileEntriesAndFileShortcuts

      public List<Object> getFoldersAndFileEntriesAndFileShortcuts(long groupId, long folderId, String[] mimeTypes, boolean includeMountFolders, com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFoldersAndFileEntriesAndFileShortcuts

      public List<Object> getFoldersAndFileEntriesAndFileShortcuts(long groupId, long folderId, String[] mimeTypes, long fileEntryTypeId, boolean includeMountFolders, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFoldersAndFileEntriesAndFileShortcutsCount

      public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId, long folderId, int status, boolean includeMountFolders) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFoldersAndFileEntriesAndFileShortcutsCount

      @Deprecated public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId, long folderId, int status, String[] mimeTypes, boolean includeMountFolders) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFoldersAndFileEntriesAndFileShortcutsCount

      public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId, long folderId, String[] mimeTypes, boolean includeMountFolders, int status) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFoldersAndFileEntriesAndFileShortcutsCount

      public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId, long folderId, String[] mimeTypes, boolean includeMountFolders, com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFoldersAndFileEntriesAndFileShortcutsCount

      public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId, long folderId, String[] mimeTypes, long fileEntryTypeId, boolean includeMountFolders, int status) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFoldersCount

      public int getFoldersCount(long groupId, double score) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFoldersCount

      public int getFoldersCount(long groupId, long parentFolderId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFoldersCount

      public int getFoldersCount(long groupId, long parentFolderId, boolean includeMountfolders, int status) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFoldersCount

      @Deprecated public int getFoldersCount(long groupId, long parentFolderId, int status, boolean includeMountfolders) throws com.liferay.portal.kernel.exception.PortalException
      Deprecated.
      As of Athanasius (7.3.x), replaced by getFoldersCount(long, long, boolean, int)
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getMountFolders

      public List<com.liferay.document.library.kernel.model.DLFolder> getMountFolders(long groupId, long parentFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFolder> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getMountFoldersCount

      public int getMountFoldersCount(long groupId, long parentFolderId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getSubfolderIds

      public void getSubfolderIds(List<Long> folderIds, long groupId, long folderId, boolean recurse) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getSubfolderIds

      public List<Long> getSubfolderIds(long groupId, long folderId, boolean recurse) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • hasFolderLock

      public boolean hasFolderLock(long folderId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • hasInheritableLock

      public boolean hasInheritableLock(long folderId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • isFolderLocked

      public boolean isFolderLocked(long folderId)
    • lockFolder

      public com.liferay.portal.kernel.lock.Lock lockFolder(long folderId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • lockFolder

      public com.liferay.portal.kernel.lock.Lock lockFolder(long folderId, String owner, boolean inheritable, long expirationTime) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • moveFolder

      public com.liferay.document.library.kernel.model.DLFolder moveFolder(long folderId, long parentFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • refreshFolderLock

      public com.liferay.portal.kernel.lock.Lock refreshFolderLock(String lockUuid, long companyId, long expirationTime) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • unlockFolder

      public void unlockFolder(long groupId, long parentFolderId, String name, String lockUuid) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • unlockFolder

      public void unlockFolder(long folderId, String lockUuid) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateFolder

      public com.liferay.document.library.kernel.model.DLFolder updateFolder(long folderId, long parentFolderId, String name, String description, long defaultFileEntryTypeId, List<Long> fileEntryTypeIds, int restrictionType, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateFolder

      public com.liferay.document.library.kernel.model.DLFolder updateFolder(long folderId, String name, String description, long defaultFileEntryTypeId, List<Long> fileEntryTypeIds, int restrictionType, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • verifyInheritableLock

      public boolean verifyInheritableLock(long folderId, String lockUuid) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException