Liferay 7.0-ce-b4

com.liferay.portlet.documentlibrary.service.impl
Class DLFolderLocalServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portlet.documentlibrary.service.base.DLFolderLocalServiceBaseImpl
          extended by com.liferay.portlet.documentlibrary.service.impl.DLFolderLocalServiceImpl
All Implemented Interfaces:
IdentifiableOSGiService, BaseLocalService, PersistedModelLocalService, DLFolderLocalService

public class DLFolderLocalServiceImpl
extends DLFolderLocalServiceBaseImpl


Field Summary
 
Fields inherited from class com.liferay.portlet.documentlibrary.service.base.DLFolderLocalServiceBaseImpl
assetEntryFinder, assetEntryLocalService, assetEntryPersistence, counterLocalService, dlAppHelperLocalService, dlFileEntryFinder, dlFileEntryLocalService, dlFileEntryPersistence, dlFileEntryTypeFinder, dlFileEntryTypeLocalService, dlFileEntryTypePersistence, dlFileShortcutLocalService, dlFileShortcutPersistence, dlFileVersionLocalService, dlFileVersionPersistence, dlFolderFinder, dlFolderLocalService, dlFolderPersistence, expandoRowLocalService, expandoRowPersistence, groupFinder, groupLocalService, groupPersistence, persistedModelLocalServiceRegistry, ratingsStatsFinder, ratingsStatsLocalService, ratingsStatsPersistence, repositoryLocalService, repositoryPersistence, resourceLocalService, trashEntryLocalService, trashEntryPersistence, userFinder, userLocalService, userPersistence, webDAVPropsLocalService, webDAVPropsPersistence, workflowDefinitionLinkLocalService, workflowDefinitionLinkPersistence, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
Constructor Summary
DLFolderLocalServiceImpl()
           
 
Method Summary
 DLFolder addFolder(long userId, long groupId, long repositoryId, boolean mountPoint, long parentFolderId, String name, String description, boolean hidden, ServiceContext serviceContext)
           
 DLFolder addFolder(long userId, long groupId, long repositoryId, boolean mountPoint, long parentFolderId, String name, String description, ServiceContext serviceContext)
          Deprecated. As of 6.2.0, replaced by more general addFolder(long, long, long, boolean, long, String, String, boolean, ServiceContext)
protected  void addFolderResources(DLFolder dlFolder, boolean addGroupPermissions, boolean addGuestPermissions)
           
protected  void addFolderResources(DLFolder dlFolder, ModelPermissions modelPermissions)
           
protected  void addFolderResources(long folderId, boolean addGroupPermissions, boolean addGuestPermissions)
           
protected  void addFolderResources(long folderId, ModelPermissions modelPermissions)
           
 void deleteAll(long groupId)
          Deprecated. As of 7.0.0, replaced by deleteAllByGroup(long)
 void deleteAllByGroup(long groupId)
           
 void deleteAllByRepository(long repositoryId)
           
 DLFolder deleteFolder(DLFolder dlFolder)
           
 DLFolder deleteFolder(DLFolder dlFolder, boolean includeTrashedEntries)
           
 DLFolder deleteFolder(long folderId)
           
 DLFolder deleteFolder(long folderId, boolean includeTrashedEntries)
           
 DLFolder deleteFolder(long userId, long folderId, boolean includeTrashedEntries)
           
protected  void deleteFolderDependencies(DLFolder dlFolder, boolean includeTrashedEntries)
           
protected  void deleteSubfolders(DLFolder dlFolder, boolean includeTrashedEntries)
           
 DLFolder fetchFolder(long folderId)
           
 DLFolder fetchFolder(long groupId, long parentFolderId, String name)
           
 List<DLFolder> getCompanyFolders(long companyId, int start, int end)
           
 int getCompanyFoldersCount(long companyId)
           
 List<Object> getFileEntriesAndFileShortcuts(long groupId, long folderId, int status, int start, int end)
          Deprecated. As of 6.2.0, replaced by getFileEntriesAndFileShortcuts(long, long, QueryDefinition)
 List<Object> getFileEntriesAndFileShortcuts(long groupId, long folderId, QueryDefinition<?> queryDefinition)
           
 int getFileEntriesAndFileShortcutsCount(long groupId, long folderId, int status)
          Deprecated. As of 6.2.0, replaced by getFileEntriesAndFileShortcutsCount(long, long, QueryDefinition)
 int getFileEntriesAndFileShortcutsCount(long groupId, long folderId, QueryDefinition<?> queryDefinition)
           
protected  Set<Long> getFileEntryTypeIds(List<DLFileEntryType> dlFileEntryTypes)
           
 DLFolder getFolder(long folderId)
           
 DLFolder getFolder(long groupId, long parentFolderId, String name)
           
 long getFolderId(long companyId, long folderId)
           
 List<Long> getFolderIds(long groupId, long parentFolderId)
          Deprecated. As of 7.0.0, replaced by getGroupFolderIds(long, long)
 List<DLFolder> getFolders(long groupId, long parentFolderId)
           
 List<DLFolder> getFolders(long groupId, long parentFolderId, boolean includeMountfolders)
           
 List<DLFolder> getFolders(long groupId, long parentFolderId, boolean includeMountfolders, int start, int end, OrderByComparator<DLFolder> obc)
           
 List<DLFolder> getFolders(long groupId, long parentFolderId, int status, boolean includeMountfolders, int start, int end, OrderByComparator<DLFolder> obc)
           
 List<DLFolder> getFolders(long groupId, long parentFolderId, int start, int end, OrderByComparator<DLFolder> obc)
           
 List<Object> getFoldersAndFileEntriesAndFileShortcuts(long groupId, long folderId, int status, boolean includeMountFolders, int start, int end, OrderByComparator<?> obc)
          Deprecated. As of 6.2.0, replaced by getFoldersAndFileEntriesAndFileShortcuts(long, long, String[], boolean, QueryDefinition)
 List<Object> getFoldersAndFileEntriesAndFileShortcuts(long groupId, long folderId, int status, String[] mimeTypes, boolean includeMountFolders, int start, int end, OrderByComparator<?> obc)
          Deprecated. As of 6.2.0, replaced by getFoldersAndFileEntriesAndFileShortcutsCount(long, long, String[], boolean, QueryDefinition)
 List<Object> getFoldersAndFileEntriesAndFileShortcuts(long groupId, long folderId, String[] mimeTypes, boolean includeMountFolders, QueryDefinition<?> queryDefinition)
           
 int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId, long folderId, int status, boolean includeMountFolders)
          Deprecated. As of 6.2.0, replaced by getFoldersAndFileEntriesAndFileShortcutsCount(long, long, String[], boolean, QueryDefinition)
 int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId, long folderId, int status, String[] mimeTypes, boolean includeMountFolders)
          Deprecated. As of 6.2.0, replaced by getFoldersAndFileEntriesAndFileShortcutsCount(long, long, String[], boolean, QueryDefinition)
 int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId, long folderId, String[] mimeTypes, boolean includeMountFolders, QueryDefinition<?> queryDefinition)
           
 int getFoldersCount(long groupId, long parentFolderId)
           
 int getFoldersCount(long groupId, long parentFolderId, boolean includeMountfolders)
           
 int getFoldersCount(long groupId, long parentFolderId, int status, boolean includeMountfolders)
           
 List<Long> getGroupFolderIds(long groupId, long parentFolderId)
           
 void getGroupSubfolderIds(List<Long> folderIds, long groupId, long folderId)
           
 DLFolder getMountFolder(long repositoryId)
           
 List<DLFolder> getMountFolders(long groupId, long parentFolderId, int start, int end, OrderByComparator<DLFolder> obc)
           
 int getMountFoldersCount(long groupId, long parentFolderId)
           
 List<DLFolder> getNoAssetFolders()
           
protected  long getParentFolderId(DLFolder dlFolder, long parentFolderId)
           
protected  long getParentFolderId(long groupId, long repositoryId, long parentFolderId)
           
 List<Long> getRepositoryFolderIds(long repositoryId, long parentFolderId)
           
 List<DLFolder> getRepositoryFolders(long repositoryId, int start, int end)
           
 int getRepositoryFoldersCount(long repositoryId)
           
 void getRepositorySubfolderIds(List<Long> folderIds, long repositoryId, long folderId)
           
 void getSubfolderIds(List<Long> folderIds, long groupId, long folderId)
          Deprecated. As of 7.0.0, replaced by getGroupSubfolderIds(List, long, long)
 boolean hasFolderLock(long userId, long folderId)
           
 boolean hasInheritableLock(long folderId)
           
 Lock lockFolder(long userId, long folderId)
           
 Lock lockFolder(long userId, long folderId, String owner, boolean inheritable, long expirationTime)
           
 DLFolder moveFolder(long userId, long folderId, long parentFolderId, ServiceContext serviceContext)
           
 void rebuildTree(long companyId)
           
 void rebuildTree(long companyId, long parentFolderId, String parentTreePath, boolean reindex)
           
 void unlockFolder(long groupId, long parentFolderId, String name, String lockUuid)
           
 void unlockFolder(long folderId, String lockUuid)
           
 DLFolder updateFolder(long folderId, long parentFolderId, String name, String description, long defaultFileEntryTypeId, List<Long> fileEntryTypeIds, boolean overrideFileEntryTypes, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by updateFolder(long, long, String, String, long, List, int, ServiceContext)
 DLFolder updateFolder(long folderId, long parentFolderId, String name, String description, long defaultFileEntryTypeId, List<Long> fileEntryTypeIds, int restrictionType, ServiceContext serviceContext)
           
 DLFolder updateFolder(long folderId, String name, String description, long defaultFileEntryTypeId, List<Long> fileEntryTypeIds, boolean overrideFileEntryTypes, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced updateFolder(long, long, String, String, long, List, int, ServiceContext)
 DLFolder updateFolder(long folderId, String name, String description, long defaultFileEntryTypeId, List<Long> fileEntryTypeIds, int restrictionType, ServiceContext serviceContext)
           
 DLFolder updateFolderAndFileEntryTypes(long userId, long folderId, long parentFolderId, String name, String description, long defaultFileEntryTypeId, List<Long> fileEntryTypeIds, boolean overrideFileEntryTypes, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by updateFolderAndFileEntryTypes(long, long, long, String, String, long, List, int, ServiceContext)
 DLFolder updateFolderAndFileEntryTypes(long userId, long folderId, long parentFolderId, String name, String description, long defaultFileEntryTypeId, List<Long> fileEntryTypeIds, int restrictionType, ServiceContext serviceContext)
           
 void updateLastPostDate(long folderId, Date lastPostDate)
           
 DLFolder updateStatus(long userId, long folderId, int status, Map<String,Serializable> workflowContext, ServiceContext serviceContext)
           
protected  void validateFolder(long folderId, long groupId, long parentFolderId, String name)
           
protected  void validateFolder(long groupId, long parentFolderId, String name)
           
protected  void validateFolderName(String folderName)
           
 boolean verifyInheritableLock(long folderId, String lockUuid)
           
 
Methods inherited from class com.liferay.portlet.documentlibrary.service.base.DLFolderLocalServiceBaseImpl
addDLFileEntryTypeDLFolder, addDLFileEntryTypeDLFolder, addDLFileEntryTypeDLFolders, addDLFileEntryTypeDLFolders, addDLFolder, afterPropertiesSet, clearDLFileEntryTypeDLFolders, createDLFolder, deleteDLFileEntryTypeDLFolder, deleteDLFileEntryTypeDLFolder, deleteDLFileEntryTypeDLFolders, deleteDLFileEntryTypeDLFolders, deleteDLFolder, deleteDLFolder, deletePersistedModel, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchDLFolder, fetchDLFolderByUuidAndGroupId, getActionableDynamicQuery, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getCounterLocalService, getDLAppHelperLocalService, getDLFileEntryFinder, getDLFileEntryLocalService, getDLFileEntryPersistence, getDLFileEntryTypeDLFolders, getDLFileEntryTypeDLFolders, getDLFileEntryTypeDLFolders, getDLFileEntryTypeDLFoldersCount, getDLFileEntryTypeFinder, getDLFileEntryTypeLocalService, getDLFileEntryTypePersistence, getDLFileEntryTypePrimaryKeys, getDLFileShortcutLocalService, getDLFileShortcutPersistence, getDLFileVersionLocalService, getDLFileVersionPersistence, getDLFolder, getDLFolderByUuidAndGroupId, getDLFolderFinder, getDLFolderLocalService, getDLFolderPersistence, getDLFolders, getDLFoldersByUuidAndCompanyId, getDLFoldersByUuidAndCompanyId, getDLFoldersCount, getExpandoRowLocalService, getExpandoRowPersistence, getExportActionableDynamicQuery, getGroupFinder, getGroupLocalService, getGroupPersistence, getIndexableActionableDynamicQuery, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, getRatingsStatsFinder, getRatingsStatsLocalService, getRatingsStatsPersistence, getRepositoryLocalService, getRepositoryPersistence, getResourceLocalService, getTrashEntryLocalService, getTrashEntryPersistence, getUserFinder, getUserLocalService, getUserPersistence, getWebDAVPropsLocalService, getWebDAVPropsPersistence, getWorkflowDefinitionLinkLocalService, getWorkflowDefinitionLinkPersistence, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, hasDLFileEntryTypeDLFolder, hasDLFileEntryTypeDLFolders, initActionableDynamicQuery, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setCounterLocalService, setDLAppHelperLocalService, setDLFileEntryFinder, setDLFileEntryLocalService, setDLFileEntryPersistence, setDLFileEntryTypeDLFolders, setDLFileEntryTypeFinder, setDLFileEntryTypeLocalService, setDLFileEntryTypePersistence, setDLFileShortcutLocalService, setDLFileShortcutPersistence, setDLFileVersionLocalService, setDLFileVersionPersistence, setDLFolderFinder, setDLFolderLocalService, setDLFolderPersistence, setExpandoRowLocalService, setExpandoRowPersistence, setGroupFinder, setGroupLocalService, setGroupPersistence, setRatingsStatsFinder, setRatingsStatsLocalService, setRatingsStatsPersistence, setRepositoryLocalService, setRepositoryPersistence, setResourceLocalService, setTrashEntryLocalService, setTrashEntryPersistence, setUserFinder, setUserLocalService, setUserPersistence, setWebDAVPropsLocalService, setWebDAVPropsPersistence, setWorkflowDefinitionLinkLocalService, setWorkflowDefinitionLinkPersistence, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence, updateDLFolder
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLFolderLocalServiceImpl

public DLFolderLocalServiceImpl()
Method Detail

addFolder

public DLFolder addFolder(long userId,
                          long groupId,
                          long repositoryId,
                          boolean mountPoint,
                          long parentFolderId,
                          String name,
                          String description,
                          boolean hidden,
                          ServiceContext serviceContext)
                   throws PortalException
Throws:
PortalException

addFolder

@Deprecated
public DLFolder addFolder(long userId,
                                     long groupId,
                                     long repositoryId,
                                     boolean mountPoint,
                                     long parentFolderId,
                                     String name,
                                     String description,
                                     ServiceContext serviceContext)
                   throws PortalException
Deprecated. As of 6.2.0, replaced by more general addFolder(long, long, long, boolean, long, String, String, boolean, ServiceContext)

Throws:
PortalException

deleteAll

@Deprecated
public void deleteAll(long groupId)
               throws PortalException
Deprecated. As of 7.0.0, replaced by deleteAllByGroup(long)

Throws:
PortalException

deleteAllByGroup

public void deleteAllByGroup(long groupId)
                      throws PortalException
Throws:
PortalException

deleteAllByRepository

public void deleteAllByRepository(long repositoryId)
                           throws PortalException
Throws:
PortalException

deleteFolder

@Indexable(type=DELETE)
@SystemEvent(action=1,
             type=1)
public DLFolder deleteFolder(DLFolder dlFolder)
                      throws PortalException
Throws:
PortalException

deleteFolder

@Indexable(type=DELETE)
@SystemEvent(action=1,
             type=1)
public DLFolder deleteFolder(DLFolder dlFolder,
                                                                       boolean includeTrashedEntries)
                      throws PortalException
Throws:
PortalException

deleteFolder

@Indexable(type=DELETE)
public DLFolder deleteFolder(long folderId)
                      throws PortalException
Throws:
PortalException

deleteFolder

@Indexable(type=DELETE)
public DLFolder deleteFolder(long folderId,
                                                 boolean includeTrashedEntries)
                      throws PortalException
Throws:
PortalException

deleteFolder

@Indexable(type=DELETE)
public DLFolder deleteFolder(long userId,
                                                 long folderId,
                                                 boolean includeTrashedEntries)
                      throws PortalException
Throws:
PortalException

fetchFolder

public DLFolder fetchFolder(long folderId)

fetchFolder

public DLFolder fetchFolder(long groupId,
                            long parentFolderId,
                            String name)

getCompanyFolders

public List<DLFolder> getCompanyFolders(long companyId,
                                        int start,
                                        int end)

getCompanyFoldersCount

public int getCompanyFoldersCount(long companyId)

getFileEntriesAndFileShortcuts

@Deprecated
public List<Object> getFileEntriesAndFileShortcuts(long groupId,
                                                              long folderId,
                                                              int status,
                                                              int start,
                                                              int end)
Deprecated. As of 6.2.0, replaced by getFileEntriesAndFileShortcuts(long, long, QueryDefinition)


getFileEntriesAndFileShortcuts

public List<Object> getFileEntriesAndFileShortcuts(long groupId,
                                                   long folderId,
                                                   QueryDefinition<?> queryDefinition)

getFileEntriesAndFileShortcutsCount

@Deprecated
public int getFileEntriesAndFileShortcutsCount(long groupId,
                                                          long folderId,
                                                          int status)
Deprecated. As of 6.2.0, replaced by getFileEntriesAndFileShortcutsCount(long, long, QueryDefinition)


getFileEntriesAndFileShortcutsCount

public int getFileEntriesAndFileShortcutsCount(long groupId,
                                               long folderId,
                                               QueryDefinition<?> queryDefinition)

getFolder

public DLFolder getFolder(long folderId)
                   throws PortalException
Throws:
PortalException

getFolder

public DLFolder getFolder(long groupId,
                          long parentFolderId,
                          String name)
                   throws PortalException
Throws:
PortalException

getFolderId

public long getFolderId(long companyId,
                        long folderId)

getFolderIds

@Deprecated
public List<Long> getFolderIds(long groupId,
                                          long parentFolderId)
Deprecated. As of 7.0.0, replaced by getGroupFolderIds(long, long)


getFolders

public List<DLFolder> getFolders(long groupId,
                                 long parentFolderId)

getFolders

public List<DLFolder> getFolders(long groupId,
                                 long parentFolderId,
                                 boolean includeMountfolders)

getFolders

public List<DLFolder> getFolders(long groupId,
                                 long parentFolderId,
                                 boolean includeMountfolders,
                                 int start,
                                 int end,
                                 OrderByComparator<DLFolder> obc)

getFolders

public List<DLFolder> getFolders(long groupId,
                                 long parentFolderId,
                                 int status,
                                 boolean includeMountfolders,
                                 int start,
                                 int end,
                                 OrderByComparator<DLFolder> obc)

getFolders

public List<DLFolder> getFolders(long groupId,
                                 long parentFolderId,
                                 int start,
                                 int end,
                                 OrderByComparator<DLFolder> obc)

getFoldersAndFileEntriesAndFileShortcuts

@Deprecated
public List<Object> getFoldersAndFileEntriesAndFileShortcuts(long groupId,
                                                                        long folderId,
                                                                        int status,
                                                                        boolean includeMountFolders,
                                                                        int start,
                                                                        int end,
                                                                        OrderByComparator<?> obc)
Deprecated. As of 6.2.0, replaced by getFoldersAndFileEntriesAndFileShortcuts(long, long, String[], boolean, QueryDefinition)


getFoldersAndFileEntriesAndFileShortcuts

@Deprecated
public List<Object> getFoldersAndFileEntriesAndFileShortcuts(long groupId,
                                                                        long folderId,
                                                                        int status,
                                                                        String[] mimeTypes,
                                                                        boolean includeMountFolders,
                                                                        int start,
                                                                        int end,
                                                                        OrderByComparator<?> obc)
Deprecated. As of 6.2.0, replaced by getFoldersAndFileEntriesAndFileShortcutsCount(long, long, String[], boolean, QueryDefinition)


getFoldersAndFileEntriesAndFileShortcuts

public List<Object> getFoldersAndFileEntriesAndFileShortcuts(long groupId,
                                                             long folderId,
                                                             String[] mimeTypes,
                                                             boolean includeMountFolders,
                                                             QueryDefinition<?> queryDefinition)

getFoldersAndFileEntriesAndFileShortcutsCount

@Deprecated
public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
                                                                    long folderId,
                                                                    int status,
                                                                    boolean includeMountFolders)
Deprecated. As of 6.2.0, replaced by getFoldersAndFileEntriesAndFileShortcutsCount(long, long, String[], boolean, QueryDefinition)


getFoldersAndFileEntriesAndFileShortcutsCount

@Deprecated
public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
                                                                    long folderId,
                                                                    int status,
                                                                    String[] mimeTypes,
                                                                    boolean includeMountFolders)
Deprecated. As of 6.2.0, replaced by getFoldersAndFileEntriesAndFileShortcutsCount(long, long, String[], boolean, QueryDefinition)


getFoldersAndFileEntriesAndFileShortcutsCount

public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
                                                         long folderId,
                                                         String[] mimeTypes,
                                                         boolean includeMountFolders,
                                                         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,
                           int status,
                           boolean includeMountfolders)

getGroupFolderIds

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

getGroupSubfolderIds

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

getMountFolder

public DLFolder getMountFolder(long repositoryId)
                        throws PortalException
Throws:
PortalException

getMountFolders

public List<DLFolder> getMountFolders(long groupId,
                                      long parentFolderId,
                                      int start,
                                      int end,
                                      OrderByComparator<DLFolder> obc)

getMountFoldersCount

public int getMountFoldersCount(long groupId,
                                long parentFolderId)

getNoAssetFolders

public List<DLFolder> getNoAssetFolders()

getRepositoryFolderIds

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

getRepositoryFolders

public List<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)

getSubfolderIds

@Deprecated
public void getSubfolderIds(List<Long> folderIds,
                                       long groupId,
                                       long folderId)
Deprecated. As of 7.0.0, replaced by getGroupSubfolderIds(List, long, long)


hasFolderLock

public boolean hasFolderLock(long userId,
                             long folderId)

hasInheritableLock

public boolean hasInheritableLock(long folderId)
                           throws PortalException
Throws:
PortalException

lockFolder

public Lock lockFolder(long userId,
                       long folderId)
                throws PortalException
Throws:
PortalException

lockFolder

public Lock lockFolder(long userId,
                       long folderId,
                       String owner,
                       boolean inheritable,
                       long expirationTime)
                throws PortalException
Throws:
PortalException

moveFolder

@Indexable(type=REINDEX)
public DLFolder moveFolder(long userId,
                                                long folderId,
                                                long parentFolderId,
                                                ServiceContext serviceContext)
                    throws PortalException
Throws:
PortalException

rebuildTree

public void rebuildTree(long companyId)
                 throws PortalException
Throws:
PortalException

rebuildTree

public void rebuildTree(long companyId,
                        long parentFolderId,
                        String parentTreePath,
                        boolean reindex)
                 throws PortalException
Throws:
PortalException

unlockFolder

public void unlockFolder(long groupId,
                         long parentFolderId,
                         String name,
                         String lockUuid)
                  throws PortalException
Throws:
PortalException

unlockFolder

public void unlockFolder(long folderId,
                         String lockUuid)
                  throws PortalException
Throws:
PortalException

updateFolder

@Deprecated
public DLFolder updateFolder(long folderId,
                                        long parentFolderId,
                                        String name,
                                        String description,
                                        long defaultFileEntryTypeId,
                                        List<Long> fileEntryTypeIds,
                                        boolean overrideFileEntryTypes,
                                        ServiceContext serviceContext)
                      throws PortalException
Deprecated. As of 7.0.0, replaced by updateFolder(long, long, String, String, long, List, int, ServiceContext)

Throws:
PortalException

updateFolder

@Indexable(type=REINDEX)
public DLFolder updateFolder(long folderId,
                                                  long parentFolderId,
                                                  String name,
                                                  String description,
                                                  long defaultFileEntryTypeId,
                                                  List<Long> fileEntryTypeIds,
                                                  int restrictionType,
                                                  ServiceContext serviceContext)
                      throws PortalException
Throws:
PortalException

updateFolder

@Deprecated
public DLFolder updateFolder(long folderId,
                                        String name,
                                        String description,
                                        long defaultFileEntryTypeId,
                                        List<Long> fileEntryTypeIds,
                                        boolean overrideFileEntryTypes,
                                        ServiceContext serviceContext)
                      throws PortalException
Deprecated. As of 7.0.0, replaced updateFolder(long, long, String, String, long, List, int, ServiceContext)

Throws:
PortalException

updateFolder

@Indexable(type=REINDEX)
public DLFolder updateFolder(long folderId,
                                                  String name,
                                                  String description,
                                                  long defaultFileEntryTypeId,
                                                  List<Long> fileEntryTypeIds,
                                                  int restrictionType,
                                                  ServiceContext serviceContext)
                      throws PortalException
Throws:
PortalException

updateFolderAndFileEntryTypes

@Deprecated
public DLFolder updateFolderAndFileEntryTypes(long userId,
                                                         long folderId,
                                                         long parentFolderId,
                                                         String name,
                                                         String description,
                                                         long defaultFileEntryTypeId,
                                                         List<Long> fileEntryTypeIds,
                                                         boolean overrideFileEntryTypes,
                                                         ServiceContext serviceContext)
                                       throws PortalException
Deprecated. As of 7.0.0, replaced by updateFolderAndFileEntryTypes(long, long, long, String, String, long, List, int, ServiceContext)

Throws:
PortalException

updateFolderAndFileEntryTypes

public DLFolder updateFolderAndFileEntryTypes(long userId,
                                              long folderId,
                                              long parentFolderId,
                                              String name,
                                              String description,
                                              long defaultFileEntryTypeId,
                                              List<Long> fileEntryTypeIds,
                                              int restrictionType,
                                              ServiceContext serviceContext)
                                       throws PortalException
Throws:
PortalException

updateLastPostDate

@BufferedIncrement(configuration="DLFolderEntry",
                   incrementClass=DateOverrideIncrement.class)
public void updateLastPostDate(long folderId,
                                                                                                       Date lastPostDate)
                        throws PortalException
Throws:
PortalException

updateStatus

public DLFolder updateStatus(long userId,
                             long folderId,
                             int status,
                             Map<String,Serializable> workflowContext,
                             ServiceContext serviceContext)
                      throws PortalException
Throws:
PortalException

verifyInheritableLock

public boolean verifyInheritableLock(long folderId,
                                     String lockUuid)
                              throws PortalException
Throws:
PortalException

addFolderResources

protected void addFolderResources(DLFolder dlFolder,
                                  boolean addGroupPermissions,
                                  boolean addGuestPermissions)
                           throws PortalException
Throws:
PortalException

addFolderResources

protected void addFolderResources(DLFolder dlFolder,
                                  ModelPermissions modelPermissions)
                           throws PortalException
Throws:
PortalException

addFolderResources

protected void addFolderResources(long folderId,
                                  boolean addGroupPermissions,
                                  boolean addGuestPermissions)
                           throws PortalException
Throws:
PortalException

addFolderResources

protected void addFolderResources(long folderId,
                                  ModelPermissions modelPermissions)
                           throws PortalException
Throws:
PortalException

deleteFolderDependencies

protected void deleteFolderDependencies(DLFolder dlFolder,
                                        boolean includeTrashedEntries)
                                 throws PortalException
Throws:
PortalException

deleteSubfolders

protected void deleteSubfolders(DLFolder dlFolder,
                                boolean includeTrashedEntries)
                         throws PortalException
Throws:
PortalException

getFileEntryTypeIds

protected Set<Long> getFileEntryTypeIds(List<DLFileEntryType> dlFileEntryTypes)

getParentFolderId

protected long getParentFolderId(DLFolder dlFolder,
                                 long parentFolderId)
                          throws PortalException
Throws:
PortalException

getParentFolderId

protected long getParentFolderId(long groupId,
                                 long repositoryId,
                                 long parentFolderId)
                          throws PortalException
Throws:
PortalException

validateFolder

protected void validateFolder(long folderId,
                              long groupId,
                              long parentFolderId,
                              String name)
                       throws PortalException
Throws:
PortalException

validateFolder

protected void validateFolder(long groupId,
                              long parentFolderId,
                              String name)
                       throws PortalException
Throws:
PortalException

validateFolderName

protected void validateFolderName(String folderName)
                           throws PortalException
Throws:
PortalException

Liferay 7.0-ce-b4