com.liferay.portlet.documentlibrary.service.impl
Class DLFolderServiceImpl
java.lang.Object
com.liferay.portal.service.base.PrincipalBean
com.liferay.portlet.documentlibrary.service.base.DLFolderServiceBaseImpl
com.liferay.portlet.documentlibrary.service.impl.DLFolderServiceImpl
- All Implemented Interfaces:
- com.liferay.portal.kernel.bean.IdentifiableBean, com.liferay.portlet.documentlibrary.service.DLFolderService
public class DLFolderServiceImpl
- extends DLFolderServiceBaseImpl
- Author:
- Brian Wing Shun Chan, Alexander Chow
| Fields inherited from class com.liferay.portlet.documentlibrary.service.base.DLFolderServiceBaseImpl |
counterLocalService, dlAppHelperLocalService, dlAppLocalService, dlAppService, dlContentLocalService, dlContentPersistence, dlFileEntryFinder, dlFileEntryLocalService, dlFileEntryMetadataLocalService, dlFileEntryMetadataPersistence, dlFileEntryPersistence, dlFileEntryService, dlFileEntryTypeFinder, dlFileEntryTypeLocalService, dlFileEntryTypePersistence, dlFileEntryTypeService, dlFileRankFinder, dlFileRankLocalService, dlFileRankPersistence, dlFileShortcutLocalService, dlFileShortcutPersistence, dlFileShortcutService, dlFileVersionLocalService, dlFileVersionPersistence, dlFileVersionService, dlFolderFinder, dlFolderLocalService, dlFolderPersistence, dlFolderService, dlSyncLocalService, dlSyncPersistence, dlSyncService, expandoValueLocalService, expandoValuePersistence, expandoValueService, groupFinder, groupLocalService, groupPersistence, groupService, lockFinder, lockLocalService, lockPersistence, resourceFinder, resourceLocalService, resourcePersistence, resourceService, userFinder, userLocalService, userPersistence, userService, webDAVPropsLocalService, webDAVPropsPersistence, workflowDefinitionLinkLocalService, workflowDefinitionLinkPersistence, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence |
| Fields inherited from class com.liferay.portal.service.base.PrincipalBean |
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS |
|
Method Summary |
com.liferay.portlet.documentlibrary.model.DLFolder |
addFolder(long groupId,
long repositoryId,
boolean mountPoint,
long parentFolderId,
java.lang.String name,
java.lang.String description,
com.liferay.portal.service.ServiceContext serviceContext)
|
void |
deleteFolder(long folderId)
|
void |
deleteFolder(long groupId,
long parentFolderId,
java.lang.String name)
|
protected com.liferay.portal.model.Lock |
doLockFolder(long folderId,
java.lang.String owner,
boolean inheritable,
long expirationTime)
|
protected void |
doUnlockFolder(long groupId,
long folderId,
java.lang.String lockUuid)
|
java.util.List<java.lang.Object> |
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,
int status,
java.lang.String[] mimeTypes)
|
com.liferay.portlet.documentlibrary.model.DLFolder |
getFolder(long folderId)
|
com.liferay.portlet.documentlibrary.model.DLFolder |
getFolder(long groupId,
long parentFolderId,
java.lang.String name)
|
long[] |
getFolderIds(long groupId,
long folderId)
|
java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> |
getFolders(long groupId,
long parentFolderId,
boolean includeMountfolders,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> |
getFolders(long groupId,
long parentFolderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<java.lang.Object> |
getFoldersAndFileEntriesAndFileShortcuts(long groupId,
long folderId,
int status,
boolean includeMountFolders,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
int |
getFoldersAndFileEntriesAndFileShortcuts(long groupId,
long folderId,
int status,
java.lang.String[] mimeTypes,
boolean includeMountFolders)
|
java.util.List<java.lang.Object> |
getFoldersAndFileEntriesAndFileShortcuts(long groupId,
long folderId,
int status,
java.lang.String[] mimeTypes,
boolean includeMountFolders,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
int |
getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
long folderId,
int status,
boolean includeMountFolders)
|
int |
getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
long folderId,
int status,
java.lang.String[] mimeTypes,
boolean includeMountFolders)
|
int |
getFoldersCount(long groupId,
long parentFolderId)
|
int |
getFoldersCount(long groupId,
long parentFolderId,
boolean includeMountfolders)
|
java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> |
getMountFolders(long groupId,
long parentFolderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
int |
getMountFoldersCount(long groupId,
long parentFolderId)
|
void |
getSubfolderIds(java.util.List<java.lang.Long> folderIds,
long groupId,
long folderId)
|
java.util.List<java.lang.Long> |
getSubfolderIds(long groupId,
long folderId,
boolean recurse)
|
boolean |
hasFolderLock(long folderId)
|
boolean |
hasInheritableLock(long folderId)
|
boolean |
isFolderLocked(long folderId)
|
com.liferay.portal.model.Lock |
lockFolder(long folderId)
|
com.liferay.portal.model.Lock |
lockFolder(long folderId,
java.lang.String owner,
boolean inheritable,
long expirationTime)
|
com.liferay.portlet.documentlibrary.model.DLFolder |
moveFolder(long folderId,
long parentFolderId,
com.liferay.portal.service.ServiceContext serviceContext)
|
com.liferay.portal.model.Lock |
refreshFolderLock(java.lang.String lockUuid,
long expirationTime)
|
void |
unlockFolder(long groupId,
long folderId,
java.lang.String lockUuid)
|
void |
unlockFolder(long groupId,
long parentFolderId,
java.lang.String name,
java.lang.String lockUuid)
|
com.liferay.portlet.documentlibrary.model.DLFolder |
updateFolder(long folderId,
java.lang.String name,
java.lang.String description,
long defaultFileEntryTypeId,
java.util.List<java.lang.Long> fileEntryTypeIds,
boolean overrideFileEntryTypes,
com.liferay.portal.service.ServiceContext serviceContext)
|
boolean |
verifyInheritableLock(long folderId,
java.lang.String lockUuid)
|
| Methods inherited from class com.liferay.portlet.documentlibrary.service.base.DLFolderServiceBaseImpl |
afterPropertiesSet, destroy, getBeanIdentifier, getCounterLocalService, getDLAppHelperLocalService, getDLAppLocalService, getDLAppService, getDLContentLocalService, getDLContentPersistence, getDLFileEntryFinder, getDLFileEntryLocalService, getDLFileEntryMetadataLocalService, getDLFileEntryMetadataPersistence, getDLFileEntryPersistence, getDLFileEntryService, getDLFileEntryTypeFinder, getDLFileEntryTypeLocalService, getDLFileEntryTypePersistence, getDLFileEntryTypeService, getDLFileRankFinder, getDLFileRankLocalService, getDLFileRankPersistence, getDLFileShortcutLocalService, getDLFileShortcutPersistence, getDLFileShortcutService, getDLFileVersionLocalService, getDLFileVersionPersistence, getDLFileVersionService, getDLFolderFinder, getDLFolderLocalService, getDLFolderPersistence, getDLFolderService, getDLSyncLocalService, getDLSyncPersistence, getDLSyncService, getExpandoValueLocalService, getExpandoValuePersistence, getExpandoValueService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getLockFinder, getLockLocalService, getLockPersistence, getModelClass, getModelClassName, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWebDAVPropsLocalService, getWebDAVPropsPersistence, getWorkflowDefinitionLinkLocalService, getWorkflowDefinitionLinkPersistence, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, runSQL, setBeanIdentifier, setCounterLocalService, setDLAppHelperLocalService, setDLAppLocalService, setDLAppService, setDLContentLocalService, setDLContentPersistence, setDLFileEntryFinder, setDLFileEntryLocalService, setDLFileEntryMetadataLocalService, setDLFileEntryMetadataPersistence, setDLFileEntryPersistence, setDLFileEntryService, setDLFileEntryTypeFinder, setDLFileEntryTypeLocalService, setDLFileEntryTypePersistence, setDLFileEntryTypeService, setDLFileRankFinder, setDLFileRankLocalService, setDLFileRankPersistence, setDLFileShortcutLocalService, setDLFileShortcutPersistence, setDLFileShortcutService, setDLFileVersionLocalService, setDLFileVersionPersistence, setDLFileVersionService, setDLFolderFinder, setDLFolderLocalService, setDLFolderPersistence, setDLFolderService, setDLSyncLocalService, setDLSyncPersistence, setDLSyncService, setExpandoValueLocalService, setExpandoValuePersistence, setExpandoValueService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setLockFinder, setLockLocalService, setLockPersistence, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWebDAVPropsLocalService, setWebDAVPropsPersistence, setWorkflowDefinitionLinkLocalService, setWorkflowDefinitionLinkPersistence, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence |
| Methods inherited from class com.liferay.portal.service.base.PrincipalBean |
getGuestOrUser, getGuestOrUserId, getPermissionChecker, getUser, getUserId |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DLFolderServiceImpl
public DLFolderServiceImpl()
addFolder
public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(long groupId,
long repositoryId,
boolean mountPoint,
long parentFolderId,
java.lang.String name,
java.lang.String description,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
deleteFolder
public void deleteFolder(long folderId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
deleteFolder
public void deleteFolder(long groupId,
long parentFolderId,
java.lang.String name)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFileEntriesAndFileShortcuts
public java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(long groupId,
long folderId,
int status,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFileEntriesAndFileShortcutsCount
public int getFileEntriesAndFileShortcutsCount(long groupId,
long folderId,
int status)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFileEntriesAndFileShortcutsCount
public int getFileEntriesAndFileShortcutsCount(long groupId,
long folderId,
int status,
java.lang.String[] mimeTypes)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFolder
public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(long folderId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFolder
public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(long groupId,
long parentFolderId,
java.lang.String name)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFolderIds
public long[] getFolderIds(long groupId,
long folderId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFolders
public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(long groupId,
long parentFolderId,
boolean includeMountfolders,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFolders
public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(long groupId,
long parentFolderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFoldersAndFileEntriesAndFileShortcuts
public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(long groupId,
long folderId,
int status,
boolean includeMountFolders,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFoldersAndFileEntriesAndFileShortcuts
public int getFoldersAndFileEntriesAndFileShortcuts(long groupId,
long folderId,
int status,
java.lang.String[] mimeTypes,
boolean includeMountFolders)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFoldersAndFileEntriesAndFileShortcuts
public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(long groupId,
long folderId,
int status,
java.lang.String[] mimeTypes,
boolean includeMountFolders,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFoldersAndFileEntriesAndFileShortcutsCount
public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
long folderId,
int status,
boolean includeMountFolders)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFoldersAndFileEntriesAndFileShortcutsCount
public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
long folderId,
int status,
java.lang.String[] mimeTypes,
boolean includeMountFolders)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFoldersCount
public int getFoldersCount(long groupId,
long parentFolderId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFoldersCount
public int getFoldersCount(long groupId,
long parentFolderId,
boolean includeMountfolders)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getMountFolders
public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(long groupId,
long parentFolderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getMountFoldersCount
public int getMountFoldersCount(long groupId,
long parentFolderId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getSubfolderIds
public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
long groupId,
long folderId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getSubfolderIds
public java.util.List<java.lang.Long> getSubfolderIds(long groupId,
long folderId,
boolean recurse)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
hasFolderLock
public boolean hasFolderLock(long folderId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
hasInheritableLock
public boolean hasInheritableLock(long folderId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
isFolderLocked
public boolean isFolderLocked(long folderId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
lockFolder
public com.liferay.portal.model.Lock lockFolder(long folderId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
lockFolder
public com.liferay.portal.model.Lock lockFolder(long folderId,
java.lang.String owner,
boolean inheritable,
long expirationTime)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
moveFolder
public com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(long folderId,
long parentFolderId,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
refreshFolderLock
public com.liferay.portal.model.Lock refreshFolderLock(java.lang.String lockUuid,
long expirationTime)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
unlockFolder
public void unlockFolder(long groupId,
long folderId,
java.lang.String lockUuid)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
unlockFolder
public void unlockFolder(long groupId,
long parentFolderId,
java.lang.String name,
java.lang.String lockUuid)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
updateFolder
public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(long folderId,
java.lang.String name,
java.lang.String description,
long defaultFileEntryTypeId,
java.util.List<java.lang.Long> fileEntryTypeIds,
boolean overrideFileEntryTypes,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
verifyInheritableLock
public boolean verifyInheritableLock(long folderId,
java.lang.String lockUuid)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
doLockFolder
protected com.liferay.portal.model.Lock doLockFolder(long folderId,
java.lang.String owner,
boolean inheritable,
long expirationTime)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
doUnlockFolder
protected void doUnlockFolder(long groupId,
long folderId,
java.lang.String lockUuid)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException