Class DLFolderLocalServiceImpl

Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portlet.documentlibrary.service.base.DLFolderLocalServiceBaseImpl
com.liferay.portlet.documentlibrary.service.impl.DLFolderLocalServiceImpl
All Implemented Interfaces:
com.liferay.document.library.kernel.service.DLFolderLocalService, com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.document.library.kernel.model.DLFolder>, com.liferay.portal.kernel.service.PersistedModelLocalService

public class DLFolderLocalServiceImpl extends DLFolderLocalServiceBaseImpl
Author:
Brian Wing Shun Chan, Alexander Chow
  • Constructor Details

    • DLFolderLocalServiceImpl

      public DLFolderLocalServiceImpl()
  • Method Details

    • addFolder

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

      public void deleteAllByGroup(long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteAllByRepository

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

      @Indexable(type=DELETE) @SystemEvent(action=1, type=1) public com.liferay.document.library.kernel.model.DLFolder deleteFolder(com.liferay.document.library.kernel.model.DLFolder dlFolder) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteFolder

      @Indexable(type=DELETE) @SystemEvent(action=1, type=1) public com.liferay.document.library.kernel.model.DLFolder deleteFolder(com.liferay.document.library.kernel.model.DLFolder dlFolder, boolean includeTrashedEntries) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteFolder

      @Indexable(type=DELETE) public com.liferay.document.library.kernel.model.DLFolder deleteFolder(long folderId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteFolder

      @Indexable(type=DELETE) public com.liferay.document.library.kernel.model.DLFolder deleteFolder(long folderId, boolean includeTrashedEntries) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteFolder

      @Indexable(type=DELETE) public com.liferay.document.library.kernel.model.DLFolder deleteFolder(long userId, long folderId, boolean includeTrashedEntries) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchFolder

      public com.liferay.document.library.kernel.model.DLFolder fetchFolder(long folderId)
    • fetchFolder

      public com.liferay.document.library.kernel.model.DLFolder fetchFolder(long groupId, long parentFolderId, String name)
    • fetchFolder

      public com.liferay.document.library.kernel.model.DLFolder fetchFolder(String uuid, long groupId)
    • getCompanyFolders

      public List<com.liferay.document.library.kernel.model.DLFolder> getCompanyFolders(long companyId, int start, int end)
    • getCompanyFoldersCount

      public int getCompanyFoldersCount(long companyId)
    • getFileEntriesAndFileShortcuts

      public List<Object> getFileEntriesAndFileShortcuts(long groupId, long folderId, com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition)
    • getFileEntriesAndFileShortcutsCount

      public int getFileEntriesAndFileShortcutsCount(long groupId, long folderId, com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition)
    • 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
    • getFolderId

      public long getFolderId(long companyId, long folderId)
    • getFolders

      public List<com.liferay.document.library.kernel.model.DLFolder> getFolders(long groupId, boolean mountPoint, String treePath, boolean hidden)
    • getFolders

      public List<com.liferay.document.library.kernel.model.DLFolder> getFolders(long groupId, long parentFolderId)
    • getFolders

      public List<com.liferay.document.library.kernel.model.DLFolder> getFolders(long groupId, long parentFolderId, boolean includeMountfolders)
    • 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)
    • getFolders

      public List<com.liferay.document.library.kernel.model.DLFolder> getFolders(long groupId, long parentFolderId, boolean includeMountfolders, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFolder> orderByComparator)
    • 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)
    • getFolders

      public List<com.liferay.document.library.kernel.model.DLFolder> getFolders(long classNameId, String treePath)
    • getFoldersAndFileEntriesAndFileShortcuts

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

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

      public int getFoldersCount(long groupId, long parentFolderId)
    • getFoldersCount

      public int getFoldersCount(long groupId, long parentFolderId, boolean includeMountfolders)
    • getFoldersCount

      public int getFoldersCount(long groupId, long parentFolderId, boolean includeMountfolders, int status)
    • getFoldersCount

      @Deprecated public int getFoldersCount(long groupId, long parentFolderId, int status, boolean includeMountfolders)
      Deprecated.
      As of Athanasius (7.3.x), replaced by getFoldersCount(long, long, boolean, int)
    • getFolderSize

      public long getFolderSize(long companyId, long groupId, String treePath)
    • getGroupFolderIds

      public List<Long> getGroupFolderIds(long groupId, long parentFolderId)
    • getGroupSubfolderIds

      public void getGroupSubfolderIds(List<Long> folderIds, long groupId, long folderId)
    • getMountFolder

      public com.liferay.document.library.kernel.model.DLFolder getMountFolder(long repositoryId) throws com.liferay.portal.kernel.exception.PortalException
      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)
    • getMountFoldersCount

      public int getMountFoldersCount(long groupId, long parentFolderId)
    • getNoAssetFolders

      public List<com.liferay.document.library.kernel.model.DLFolder> getNoAssetFolders()
    • getNotInTrashFolders

      public List<com.liferay.document.library.kernel.model.DLFolder> getNotInTrashFolders(long groupId, boolean mountPoint, String treePath, boolean hidden)
    • getRepositoryFolderIds

      public List<Long> getRepositoryFolderIds(long repositoryId, long parentFolderId)
    • getRepositoryFolders

      public List<com.liferay.document.library.kernel.model.DLFolder> getRepositoryFolders(long repositoryId, int start, int end)
    • getRepositoryFoldersCount

      public int getRepositoryFoldersCount(long repositoryId)
    • getRepositorySubfolderIds

      public void getRepositorySubfolderIds(List<Long> folderIds, long repositoryId, long folderId)
    • getUniqueFolderName

      public String getUniqueFolderName(String uuid, long groupId, long parentFolderId, String name, int count)
    • hasFolderLock

      public boolean hasFolderLock(long userId, long folderId)
    • hasInheritableLock

      public boolean hasInheritableLock(long folderId)
    • lockFolder

      public com.liferay.portal.kernel.lock.Lock lockFolder(long userId, 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 userId, long folderId, String owner, boolean inheritable, long expirationTime) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • moveFolder

      @Indexable(type=REINDEX) public com.liferay.document.library.kernel.model.DLFolder moveFolder(long userId, 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
    • rebuildTree

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

      public void rebuildTree(long companyId, long parentFolderId, String parentTreePath, boolean reindex) 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

      @Indexable(type=REINDEX) 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

      @Indexable(type=REINDEX) 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
    • updateFolderAndFileEntryTypes

      public com.liferay.document.library.kernel.model.DLFolder updateFolderAndFileEntryTypes(long userId, 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
    • updateLastPostDate

      @BufferedIncrement(configuration="DLFolderEntry", incrementClass=com.liferay.portal.kernel.increment.DateOverrideIncrement.class) public void updateLastPostDate(long folderId, Date lastPostDate) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateStatus

      public com.liferay.document.library.kernel.model.DLFolder updateStatus(long userId, long folderId, int status, Map<String,Serializable> workflowContext, 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
    • getFolderId

      protected static long getFolderId(com.liferay.document.library.kernel.service.persistence.DLFolderPersistence dlFolderPersistence, long companyId, long folderId)
    • addFolderResources

      protected void addFolderResources(com.liferay.document.library.kernel.model.DLFolder dlFolder, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addFolderResources

      protected void addFolderResources(com.liferay.document.library.kernel.model.DLFolder dlFolder, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addFolderResources

      protected void addFolderResources(long folderId, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addFolderResources

      protected void addFolderResources(long folderId, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteFolderDependencies

      protected void deleteFolderDependencies(com.liferay.document.library.kernel.model.DLFolder dlFolder, boolean includeTrashedEntries) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteSubfolders

      protected void deleteSubfolders(com.liferay.document.library.kernel.model.DLFolder dlFolder, boolean includeTrashedEntries) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFileEntryTypeIds

      protected Set<Long> getFileEntryTypeIds(List<com.liferay.document.library.kernel.model.DLFileEntryType> dlFileEntryTypes)
    • getParentFolderId

      protected long getParentFolderId(com.liferay.document.library.kernel.model.DLFolder dlFolder, long parentFolderId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getParentFolderId

      protected long getParentFolderId(long groupId, long repositoryId, long parentFolderId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • validateFolder

      protected void validateFolder(long folderId, long groupId, long parentFolderId, String name) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • validateFolder

      protected void validateFolder(long groupId, long parentFolderId, String name) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • validateFolderName

      protected void validateFolderName(String folderName) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException