public interface Repository extends DocumentRepository
| Modifier and Type | Method and Description |
|---|---|
FileVersion |
cancelCheckOut(long fileEntryId)
Cancels the file entry check out.
|
FileEntry |
checkOutFileEntry(long fileEntryId,
ServiceContext serviceContext) |
FileEntry |
checkOutFileEntry(long fileEntryId,
String owner,
long expirationTime,
ServiceContext serviceContext) |
void |
deleteFileEntry(long folderId,
String title) |
void |
deleteFileVersion(long fileEntryId,
String version) |
void |
deleteFolder(long parentFolderId,
String name) |
List<FileEntry> |
getFileEntries(long folderId,
long fileEntryTypeId,
int start,
int end,
OrderByComparator<FileEntry> orderByComparator) |
List<FileEntry> |
getFileEntries(long folderId,
String[] mimeTypes,
int start,
int end,
OrderByComparator<FileEntry> orderByComparator) |
int |
getFileEntriesAndFileShortcutsCount(long folderId,
int status,
String[] mimeTypes) |
int |
getFileEntriesCount(long folderId,
long fileEntryTypeId) |
int |
getFileEntriesCount(long folderId,
String[] mimeTypes) |
default List<RepositoryEntry> |
getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
String[] mimeTypes,
boolean includeMountFolders,
boolean includeOwner,
int start,
int end,
OrderByComparator<?> orderByComparator) |
List<RepositoryEntry> |
getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
String[] mimeTypes,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<?> orderByComparator) |
int |
getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
String[] mimeTypes,
boolean includeMountFolders) |
default int |
getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
String[] mimeTypes,
boolean includeMountFolders,
boolean includeOwner) |
int |
getFoldersFileEntriesCount(List<Long> folderIds,
int status) |
List<Folder> |
getMountFolders(long parentFolderId,
int start,
int end,
OrderByComparator<Folder> orderByComparator) |
int |
getMountFoldersCount(long parentFolderId) |
List<FileEntry> |
getRepositoryFileEntries(long userId,
long rootFolderId,
String[] mimeTypes,
int status,
int start,
int end,
OrderByComparator<FileEntry> orderByComparator) |
int |
getRepositoryFileEntriesCount(long userId,
long rootFolderId) |
int |
getRepositoryFileEntriesCount(long userId,
long rootFolderId,
String[] mimeTypes,
int status) |
void |
getSubfolderIds(List<Long> folderIds,
long folderId) |
List<Long> |
getSubfolderIds(long folderId,
boolean recurse) |
Lock |
lockFolder(long folderId) |
Lock |
lockFolder(long folderId,
String owner,
boolean inheritable,
long expirationTime) |
Lock |
refreshFileEntryLock(String lockUuid,
long companyId,
long expirationTime) |
Lock |
refreshFolderLock(String lockUuid,
long companyId,
long expirationTime) |
Hits |
search(long creatorUserId,
int status,
int start,
int end) |
Hits |
search(long creatorUserId,
long folderId,
String[] mimeTypes,
int status,
int start,
int end) |
Hits |
search(SearchContext searchContext) |
Hits |
search(SearchContext searchContext,
Query query) |
void |
unlockFolder(long folderId,
String lockUuid) |
void |
unlockFolder(long parentFolderId,
String name,
String lockUuid) |
Folder |
updateFolder(long folderId,
String name,
String description,
ServiceContext serviceContext) |
boolean |
verifyFileEntryCheckOut(long fileEntryId,
String lockUuid) |
boolean |
verifyFileEntryLock(long fileEntryId,
String lockUuid) |
boolean |
verifyInheritableLock(long folderId,
String lockUuid) |
addFileEntry, addFileEntry, addFileShortcut, addFolder, checkInFileEntry, checkInFileEntry, copyFileEntry, deleteAll, deleteFileEntry, deleteFileShortcut, deleteFileShortcuts, deleteFileVersion, deleteFolder, fetchFileEntryByExternalReferenceCode, getFileEntries, getFileEntries, getFileEntries, getFileEntriesAndFileShortcuts, getFileEntriesAndFileShortcutsCount, getFileEntriesCount, getFileEntriesCount, getFileEntriesCount, getFileEntry, getFileEntry, getFileEntryByExternalReferenceCode, getFileEntryByFileName, getFileEntryByUuid, getFileShortcut, getFileVersion, getFolder, getFolder, getFolders, getFolders, getFoldersAndFileEntriesAndFileShortcuts, getFoldersAndFileEntriesAndFileShortcutsCount, getFoldersCount, getFoldersCount, getRepositoryFileEntries, getRepositoryId, moveFileEntry, moveFolder, revertFileEntry, updateFileEntry, updateFileEntry, updateFileShortcut, updateFileShortcuts, updateFoldergetCapability, isCapabilityProvidedFileVersion cancelCheckOut(long fileEntryId) throws PortalException
fileEntryId - the primary key of the file entry to cancel the check
outnull if the file entry was not checked outPortalExceptionDocumentRepository.checkInFileEntry(long, long, DLVersionNumberIncrease, String,
ServiceContext),
checkOutFileEntry(long, ServiceContext)FileEntry checkOutFileEntry(long fileEntryId, ServiceContext serviceContext) throws PortalException
PortalExceptionFileEntry checkOutFileEntry(long fileEntryId, String owner, long expirationTime, ServiceContext serviceContext) throws PortalException
PortalExceptionvoid deleteFileEntry(long folderId,
String title)
throws PortalException
PortalExceptionvoid deleteFileVersion(long fileEntryId,
String version)
throws PortalException
PortalExceptionvoid deleteFolder(long parentFolderId,
String name)
throws PortalException
PortalExceptionList<FileEntry> getFileEntries(long folderId, long fileEntryTypeId, int start, int end, OrderByComparator<FileEntry> orderByComparator) throws PortalException
PortalExceptionList<FileEntry> getFileEntries(long folderId, String[] mimeTypes, int start, int end, OrderByComparator<FileEntry> orderByComparator) throws PortalException
PortalExceptionint getFileEntriesAndFileShortcutsCount(long folderId,
int status,
String[] mimeTypes)
throws PortalException
PortalExceptionint getFileEntriesCount(long folderId,
long fileEntryTypeId)
throws PortalException
PortalExceptionint getFileEntriesCount(long folderId,
String[] mimeTypes)
throws PortalException
PortalExceptiondefault List<RepositoryEntry> getFoldersAndFileEntriesAndFileShortcuts(long folderId, int status, String[] mimeTypes, boolean includeMountFolders, boolean includeOwner, int start, int end, OrderByComparator<?> orderByComparator) throws PortalException
PortalExceptionList<RepositoryEntry> getFoldersAndFileEntriesAndFileShortcuts(long folderId, int status, String[] mimeTypes, boolean includeMountFolders, int start, int end, OrderByComparator<?> orderByComparator) throws PortalException
PortalExceptionint getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
String[] mimeTypes,
boolean includeMountFolders)
throws PortalException
PortalExceptiondefault int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
String[] mimeTypes,
boolean includeMountFolders,
boolean includeOwner)
throws PortalException
PortalExceptionint getFoldersFileEntriesCount(List<Long> folderIds,
int status)
throws PortalException
PortalExceptionList<Folder> getMountFolders(long parentFolderId, int start, int end, OrderByComparator<Folder> orderByComparator) throws PortalException
PortalExceptionint getMountFoldersCount(long parentFolderId)
throws PortalException
PortalExceptionList<FileEntry> getRepositoryFileEntries(long userId, long rootFolderId, String[] mimeTypes, int status, int start, int end, OrderByComparator<FileEntry> orderByComparator) throws PortalException
PortalExceptionint getRepositoryFileEntriesCount(long userId,
long rootFolderId)
throws PortalException
PortalExceptionint getRepositoryFileEntriesCount(long userId,
long rootFolderId,
String[] mimeTypes,
int status)
throws PortalException
PortalExceptionvoid getSubfolderIds(List<Long> folderIds,
long folderId)
throws PortalException
PortalExceptionList<Long> getSubfolderIds(long folderId,
boolean recurse)
throws PortalException
PortalExceptionLock lockFolder(long folderId) throws PortalException
PortalExceptionLock lockFolder(long folderId, String owner, boolean inheritable, long expirationTime) throws PortalException
PortalExceptionLock refreshFileEntryLock(String lockUuid, long companyId, long expirationTime) throws PortalException
PortalExceptionLock refreshFolderLock(String lockUuid, long companyId, long expirationTime) throws PortalException
PortalExceptionHits search(long creatorUserId, int status, int start, int end) throws PortalException
PortalExceptionHits search(long creatorUserId, long folderId, String[] mimeTypes, int status, int start, int end) throws PortalException
PortalExceptionHits search(SearchContext searchContext) throws SearchException
SearchExceptionHits search(SearchContext searchContext, Query query) throws SearchException
SearchExceptionvoid unlockFolder(long folderId,
String lockUuid)
throws PortalException
PortalExceptionvoid unlockFolder(long parentFolderId,
String name,
String lockUuid)
throws PortalException
PortalExceptionFolder updateFolder(long folderId, String name, String description, ServiceContext serviceContext) throws PortalException
PortalExceptionboolean verifyFileEntryCheckOut(long fileEntryId,
String lockUuid)
throws PortalException
PortalExceptionboolean verifyFileEntryLock(long fileEntryId,
String lockUuid)
throws PortalException
PortalExceptionboolean verifyInheritableLock(long folderId,
String lockUuid)
throws PortalException
PortalException