public class DLFolderServiceUtil
extends Object
com.liferay.portlet.documentlibrary.service.impl.DLFolderServiceImpl
and is an
access point for service operations in application layer code running on a
remote server. Methods of this service are expected to have security checks
based on the propagated JAAS credentials because this service can be
accessed remotely.DLFolderService
Constructor and Description |
---|
DLFolderServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static DLFolder |
addFolder(long groupId,
long repositoryId,
boolean mountPoint,
long parentFolderId,
String name,
String description,
ServiceContext serviceContext) |
static void |
deleteFolder(long folderId) |
static void |
deleteFolder(long folderId,
boolean includeTrashedEntries) |
static void |
deleteFolder(long groupId,
long parentFolderId,
String name) |
static List<Object> |
getFileEntriesAndFileShortcuts(long groupId,
long folderId,
int status,
int start,
int end) |
static int |
getFileEntriesAndFileShortcutsCount(long groupId,
long folderId,
int status) |
static int |
getFileEntriesAndFileShortcutsCount(long groupId,
long folderId,
String[] mimeTypes,
int status) |
static DLFolder |
getFolder(long folderId) |
static DLFolder |
getFolder(long groupId,
long parentFolderId,
String name) |
static List<Long> |
getFolderIds(long groupId,
long folderId) |
static List<DLFolder> |
getFolders(long groupId,
long parentFolderId,
boolean includeMountfolders,
int status,
int start,
int end,
OrderByComparator<DLFolder> orderByComparator) |
static List<DLFolder> |
getFolders(long groupId,
long parentFolderId,
int start,
int end,
OrderByComparator<DLFolder> orderByComparator) |
static List<Object> |
getFoldersAndFileEntriesAndFileShortcuts(long groupId,
long folderId,
boolean includeMountFolders,
int status,
int start,
int end,
OrderByComparator<?> orderByComparator) |
static List<Object> |
getFoldersAndFileEntriesAndFileShortcuts(long groupId,
long folderId,
String[] mimeTypes,
boolean includeMountFolders,
int status,
int start,
int end,
OrderByComparator<?> orderByComparator) |
static List<Object> |
getFoldersAndFileEntriesAndFileShortcuts(long groupId,
long folderId,
String[] mimeTypes,
boolean includeMountFolders,
QueryDefinition<?> queryDefinition) |
static List<Object> |
getFoldersAndFileEntriesAndFileShortcuts(long groupId,
long folderId,
String[] mimeTypes,
long fileEntryTypeId,
boolean includeMountFolders,
int status,
int start,
int end,
OrderByComparator<?> orderByComparator) |
static int |
getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
long folderId,
int status,
boolean includeMountFolders) |
static int |
getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
long folderId,
int status,
String[] mimeTypes,
boolean includeMountFolders)
Deprecated.
As of Athanasius (7.3.x), replaced by
getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
String[], boolean, int) |
static int |
getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
long folderId,
String[] mimeTypes,
boolean includeMountFolders,
int status) |
static int |
getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
long folderId,
String[] mimeTypes,
boolean includeMountFolders,
QueryDefinition<?> queryDefinition) |
static int |
getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
long folderId,
String[] mimeTypes,
long fileEntryTypeId,
boolean includeMountFolders,
int status) |
static int |
getFoldersCount(long groupId,
long parentFolderId) |
static int |
getFoldersCount(long groupId,
long parentFolderId,
boolean includeMountfolders,
int status) |
static int |
getFoldersCount(long groupId,
long parentFolderId,
int status,
boolean includeMountfolders)
Deprecated.
As of Athanasius (7.3.x), replaced by
getFoldersCount(long, long, boolean, int) |
static List<DLFolder> |
getMountFolders(long groupId,
long parentFolderId,
int start,
int end,
OrderByComparator<DLFolder> orderByComparator) |
static int |
getMountFoldersCount(long groupId,
long parentFolderId) |
static String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static DLFolderService |
getService() |
static void |
getSubfolderIds(List<Long> folderIds,
long groupId,
long folderId,
boolean recurse) |
static List<Long> |
getSubfolderIds(long groupId,
long folderId,
boolean recurse) |
static boolean |
hasFolderLock(long folderId) |
static boolean |
hasInheritableLock(long folderId) |
static boolean |
isFolderLocked(long folderId) |
static Lock |
lockFolder(long folderId) |
static Lock |
lockFolder(long folderId,
String owner,
boolean inheritable,
long expirationTime) |
static DLFolder |
moveFolder(long folderId,
long parentFolderId,
ServiceContext serviceContext) |
static Lock |
refreshFolderLock(String lockUuid,
long companyId,
long expirationTime) |
static void |
unlockFolder(long groupId,
long parentFolderId,
String name,
String lockUuid) |
static void |
unlockFolder(long folderId,
String lockUuid) |
static DLFolder |
updateFolder(long folderId,
long parentFolderId,
String name,
String description,
long defaultFileEntryTypeId,
List<Long> fileEntryTypeIds,
int restrictionType,
ServiceContext serviceContext) |
static DLFolder |
updateFolder(long folderId,
String name,
String description,
long defaultFileEntryTypeId,
List<Long> fileEntryTypeIds,
int restrictionType,
ServiceContext serviceContext) |
static boolean |
verifyInheritableLock(long folderId,
String lockUuid) |
public static DLFolder addFolder(long groupId, long repositoryId, boolean mountPoint, long parentFolderId, String name, String description, ServiceContext serviceContext) throws PortalException
PortalException
public static void deleteFolder(long folderId) throws PortalException
PortalException
public static void deleteFolder(long folderId, boolean includeTrashedEntries) throws PortalException
PortalException
public static void deleteFolder(long groupId, long parentFolderId, String name) throws PortalException
PortalException
public static List<Object> getFileEntriesAndFileShortcuts(long groupId, long folderId, int status, int start, int end) throws PortalException
PortalException
public static int getFileEntriesAndFileShortcutsCount(long groupId, long folderId, int status) throws PortalException
PortalException
public static int getFileEntriesAndFileShortcutsCount(long groupId, long folderId, String[] mimeTypes, int status) throws PortalException
PortalException
public static DLFolder getFolder(long folderId) throws PortalException
PortalException
public static DLFolder getFolder(long groupId, long parentFolderId, String name) throws PortalException
PortalException
public static List<Long> getFolderIds(long groupId, long folderId) throws PortalException
PortalException
public static List<DLFolder> getFolders(long groupId, long parentFolderId, boolean includeMountfolders, int status, int start, int end, OrderByComparator<DLFolder> orderByComparator) throws PortalException
PortalException
public static List<DLFolder> getFolders(long groupId, long parentFolderId, int start, int end, OrderByComparator<DLFolder> orderByComparator) throws PortalException
PortalException
public static List<Object> getFoldersAndFileEntriesAndFileShortcuts(long groupId, long folderId, boolean includeMountFolders, int status, int start, int end, OrderByComparator<?> orderByComparator) throws PortalException
PortalException
public static List<Object> getFoldersAndFileEntriesAndFileShortcuts(long groupId, long folderId, String[] mimeTypes, boolean includeMountFolders, int status, int start, int end, OrderByComparator<?> orderByComparator) throws PortalException
PortalException
public static List<Object> getFoldersAndFileEntriesAndFileShortcuts(long groupId, long folderId, String[] mimeTypes, boolean includeMountFolders, QueryDefinition<?> queryDefinition) throws PortalException
PortalException
public static List<Object> getFoldersAndFileEntriesAndFileShortcuts(long groupId, long folderId, String[] mimeTypes, long fileEntryTypeId, boolean includeMountFolders, int status, int start, int end, OrderByComparator<?> orderByComparator) throws PortalException
PortalException
public static int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId, long folderId, int status, boolean includeMountFolders) throws PortalException
PortalException
@Deprecated public static int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId, long folderId, int status, String[] mimeTypes, boolean includeMountFolders) throws PortalException
getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
String[], boolean, int)
PortalException
public static int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId, long folderId, String[] mimeTypes, boolean includeMountFolders, int status) throws PortalException
PortalException
public static int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId, long folderId, String[] mimeTypes, boolean includeMountFolders, QueryDefinition<?> queryDefinition) throws PortalException
PortalException
public static int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId, long folderId, String[] mimeTypes, long fileEntryTypeId, boolean includeMountFolders, int status) throws PortalException
PortalException
public static int getFoldersCount(long groupId, long parentFolderId) throws PortalException
PortalException
public static int getFoldersCount(long groupId, long parentFolderId, boolean includeMountfolders, int status) throws PortalException
PortalException
@Deprecated public static int getFoldersCount(long groupId, long parentFolderId, int status, boolean includeMountfolders) throws PortalException
getFoldersCount(long, long, boolean, int)
PortalException
public static List<DLFolder> getMountFolders(long groupId, long parentFolderId, int start, int end, OrderByComparator<DLFolder> orderByComparator) throws PortalException
PortalException
public static int getMountFoldersCount(long groupId, long parentFolderId) throws PortalException
PortalException
public static String getOSGiServiceIdentifier()
public static void getSubfolderIds(List<Long> folderIds, long groupId, long folderId, boolean recurse) throws PortalException
PortalException
public static List<Long> getSubfolderIds(long groupId, long folderId, boolean recurse) throws PortalException
PortalException
public static boolean hasFolderLock(long folderId) throws PortalException
PortalException
public static boolean hasInheritableLock(long folderId) throws PortalException
PortalException
public static boolean isFolderLocked(long folderId)
public static Lock lockFolder(long folderId) throws PortalException
PortalException
public static Lock lockFolder(long folderId, String owner, boolean inheritable, long expirationTime) throws PortalException
PortalException
public static DLFolder moveFolder(long folderId, long parentFolderId, ServiceContext serviceContext) throws PortalException
PortalException
public static Lock refreshFolderLock(String lockUuid, long companyId, long expirationTime) throws PortalException
PortalException
public static void unlockFolder(long groupId, long parentFolderId, String name, String lockUuid) throws PortalException
PortalException
public static void unlockFolder(long folderId, String lockUuid) throws PortalException
PortalException
public static DLFolder updateFolder(long folderId, long parentFolderId, String name, String description, long defaultFileEntryTypeId, List<Long> fileEntryTypeIds, int restrictionType, ServiceContext serviceContext) throws PortalException
PortalException
public static DLFolder updateFolder(long folderId, String name, String description, long defaultFileEntryTypeId, List<Long> fileEntryTypeIds, int restrictionType, ServiceContext serviceContext) throws PortalException
PortalException
public static boolean verifyInheritableLock(long folderId, String lockUuid) throws PortalException
PortalException
public static DLFolderService getService()