public interface DocumentRepository extends CapabilityProvider
Modifier and Type | Method and Description |
---|---|
FileEntry |
addFileEntry(String externalReferenceCode,
long userId,
long folderId,
String sourceFileName,
String mimeType,
String title,
String urlTitle,
String description,
String changeLog,
File file,
Date expirationDate,
Date reviewDate,
ServiceContext serviceContext) |
FileEntry |
addFileEntry(String externalReferenceCode,
long userId,
long folderId,
String sourceFileName,
String mimeType,
String title,
String urlTitle,
String description,
String changeLog,
InputStream inputStream,
long size,
Date expirationDate,
Date reviewDate,
ServiceContext serviceContext) |
FileShortcut |
addFileShortcut(long userId,
long folderId,
long toFileEntryId,
ServiceContext serviceContext) |
Folder |
addFolder(String externalReferenceCode,
long userId,
long parentFolderId,
String name,
String description,
ServiceContext serviceContext) |
void |
checkInFileEntry(long userId,
long fileEntryId,
DLVersionNumberIncrease dlVersionNumberIncrease,
String changeLog,
ServiceContext serviceContext) |
void |
checkInFileEntry(long userId,
long fileEntryId,
String lockUuid,
ServiceContext serviceContext) |
FileEntry |
copyFileEntry(long userId,
long groupId,
long fileEntryId,
long destFolderId,
ServiceContext serviceContext) |
void |
deleteAll() |
void |
deleteFileEntry(long fileEntryId) |
void |
deleteFileShortcut(long fileShortcutId) |
void |
deleteFileShortcuts(long toFileEntryId) |
void |
deleteFileVersion(long fileVersionId) |
void |
deleteFolder(long folderId) |
default FileEntry |
fetchFileEntry(long folderId,
String title) |
default FileEntry |
fetchFileEntryByExternalReferenceCode(String externalReferenceCode) |
default Folder |
fetchFolderByExternalReferenceCode(String externalReferenceCode) |
List<FileEntry> |
getFileEntries(long folderId,
int status,
int start,
int end,
OrderByComparator<FileEntry> orderByComparator) |
List<FileEntry> |
getFileEntries(long folderId,
int start,
int end,
OrderByComparator<FileEntry> orderByComparator) |
default List<FileEntry> |
getFileEntries(long folderId,
String[] mimeTypes,
int status,
int start,
int end,
OrderByComparator<FileEntry> orderByComparator) |
List<RepositoryEntry> |
getFileEntriesAndFileShortcuts(long folderId,
int status,
int start,
int end) |
int |
getFileEntriesAndFileShortcutsCount(long folderId,
int status) |
int |
getFileEntriesCount(long folderId) |
int |
getFileEntriesCount(long folderId,
int status) |
default int |
getFileEntriesCount(long folderId,
String[] mimeTypes,
int status) |
FileEntry |
getFileEntry(long fileEntryId) |
FileEntry |
getFileEntry(long folderId,
String title) |
default FileEntry |
getFileEntryByExternalReferenceCode(String externalReferenceCode) |
default FileEntry |
getFileEntryByFileName(long folderId,
String fileName) |
FileEntry |
getFileEntryByUuid(String uuid) |
FileShortcut |
getFileShortcut(long fileShortcutId) |
FileVersion |
getFileVersion(long fileVersionId) |
Folder |
getFolder(long folderId) |
Folder |
getFolder(long parentFolderId,
String name) |
default Folder |
getFolderByExternalReferenceCode(String externalReferenceCode) |
List<Folder> |
getFolders(long parentFolderId,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<Folder> orderByComparator) |
List<Folder> |
getFolders(long parentFolderId,
int status,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<Folder> orderByComparator) |
List<RepositoryEntry> |
getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<?> orderByComparator) |
int |
getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
boolean includeMountFolders) |
int |
getFoldersCount(long parentFolderId,
boolean includeMountfolders) |
int |
getFoldersCount(long parentFolderId,
int status,
boolean includeMountfolders) |
List<FileEntry> |
getRepositoryFileEntries(long userId,
long rootFolderId,
int start,
int end,
OrderByComparator<FileEntry> orderByComparator) |
long |
getRepositoryId() |
FileEntry |
moveFileEntry(long userId,
long fileEntryId,
long newFolderId,
ServiceContext serviceContext) |
Folder |
moveFolder(long userId,
long folderId,
long parentFolderId,
ServiceContext serviceContext) |
void |
revertFileEntry(long userId,
long fileEntryId,
String version,
ServiceContext serviceContext) |
FileEntry |
updateFileEntry(long userId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String urlTitle,
String description,
String changeLog,
DLVersionNumberIncrease dlVersionNumberIncrease,
File file,
Date expirationDate,
Date reviewDate,
ServiceContext serviceContext) |
FileEntry |
updateFileEntry(long userId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String urlTitle,
String description,
String changeLog,
DLVersionNumberIncrease dlVersionNumberIncrease,
InputStream inputStream,
long size,
Date expirationDate,
Date reviewDate,
ServiceContext serviceContext) |
FileShortcut |
updateFileShortcut(long userId,
long fileShortcutId,
long folderId,
long toFileEntryId,
ServiceContext serviceContext) |
void |
updateFileShortcuts(long oldToFileEntryId,
long newToFileEntryId) |
Folder |
updateFolder(long folderId,
long parentFolderId,
String name,
String description,
ServiceContext serviceContext) |
getCapability, isCapabilityProvided
FileEntry addFileEntry(String externalReferenceCode, long userId, long folderId, String sourceFileName, String mimeType, String title, String urlTitle, String description, String changeLog, File file, Date expirationDate, Date reviewDate, ServiceContext serviceContext) throws PortalException
PortalException
FileEntry addFileEntry(String externalReferenceCode, long userId, long folderId, String sourceFileName, String mimeType, String title, String urlTitle, String description, String changeLog, InputStream inputStream, long size, Date expirationDate, Date reviewDate, ServiceContext serviceContext) throws PortalException
PortalException
FileShortcut addFileShortcut(long userId, long folderId, long toFileEntryId, ServiceContext serviceContext) throws PortalException
PortalException
Folder addFolder(String externalReferenceCode, long userId, long parentFolderId, String name, String description, ServiceContext serviceContext) throws PortalException
PortalException
void checkInFileEntry(long userId, long fileEntryId, DLVersionNumberIncrease dlVersionNumberIncrease, String changeLog, ServiceContext serviceContext) throws PortalException
PortalException
void checkInFileEntry(long userId, long fileEntryId, String lockUuid, ServiceContext serviceContext) throws PortalException
PortalException
FileEntry copyFileEntry(long userId, long groupId, long fileEntryId, long destFolderId, ServiceContext serviceContext) throws PortalException
PortalException
void deleteAll() throws PortalException
PortalException
void deleteFileEntry(long fileEntryId) throws PortalException
PortalException
void deleteFileShortcut(long fileShortcutId) throws PortalException
PortalException
void deleteFileShortcuts(long toFileEntryId) throws PortalException
PortalException
void deleteFileVersion(long fileVersionId) throws PortalException
PortalException
void deleteFolder(long folderId) throws PortalException
PortalException
default FileEntry fetchFileEntry(long folderId, String title) throws PortalException
PortalException
default FileEntry fetchFileEntryByExternalReferenceCode(String externalReferenceCode)
default Folder fetchFolderByExternalReferenceCode(String externalReferenceCode)
List<FileEntry> getFileEntries(long folderId, int status, int start, int end, OrderByComparator<FileEntry> orderByComparator) throws PortalException
PortalException
List<FileEntry> getFileEntries(long folderId, int start, int end, OrderByComparator<FileEntry> orderByComparator) throws PortalException
PortalException
default List<FileEntry> getFileEntries(long folderId, String[] mimeTypes, int status, int start, int end, OrderByComparator<FileEntry> orderByComparator) throws PortalException
PortalException
List<RepositoryEntry> getFileEntriesAndFileShortcuts(long folderId, int status, int start, int end) throws PortalException
PortalException
int getFileEntriesAndFileShortcutsCount(long folderId, int status) throws PortalException
PortalException
int getFileEntriesCount(long folderId) throws PortalException
PortalException
int getFileEntriesCount(long folderId, int status) throws PortalException
PortalException
default int getFileEntriesCount(long folderId, String[] mimeTypes, int status) throws PortalException
PortalException
FileEntry getFileEntry(long fileEntryId) throws PortalException
PortalException
FileEntry getFileEntry(long folderId, String title) throws PortalException
PortalException
default FileEntry getFileEntryByExternalReferenceCode(String externalReferenceCode) throws PortalException
PortalException
default FileEntry getFileEntryByFileName(long folderId, String fileName) throws PortalException
PortalException
FileEntry getFileEntryByUuid(String uuid) throws PortalException
PortalException
FileShortcut getFileShortcut(long fileShortcutId) throws PortalException
PortalException
FileVersion getFileVersion(long fileVersionId) throws PortalException
PortalException
Folder getFolder(long folderId) throws PortalException
PortalException
Folder getFolder(long parentFolderId, String name) throws PortalException
PortalException
default Folder getFolderByExternalReferenceCode(String externalReferenceCode) throws PortalException
PortalException
List<Folder> getFolders(long parentFolderId, boolean includeMountFolders, int start, int end, OrderByComparator<Folder> orderByComparator) throws PortalException
PortalException
List<Folder> getFolders(long parentFolderId, int status, boolean includeMountFolders, int start, int end, OrderByComparator<Folder> orderByComparator) throws PortalException
PortalException
List<RepositoryEntry> getFoldersAndFileEntriesAndFileShortcuts(long folderId, int status, boolean includeMountFolders, int start, int end, OrderByComparator<?> orderByComparator) throws PortalException
PortalException
int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId, int status, boolean includeMountFolders) throws PortalException
PortalException
int getFoldersCount(long parentFolderId, boolean includeMountfolders) throws PortalException
PortalException
int getFoldersCount(long parentFolderId, int status, boolean includeMountfolders) throws PortalException
PortalException
List<FileEntry> getRepositoryFileEntries(long userId, long rootFolderId, int start, int end, OrderByComparator<FileEntry> orderByComparator) throws PortalException
PortalException
long getRepositoryId()
FileEntry moveFileEntry(long userId, long fileEntryId, long newFolderId, ServiceContext serviceContext) throws PortalException
PortalException
Folder moveFolder(long userId, long folderId, long parentFolderId, ServiceContext serviceContext) throws PortalException
PortalException
void revertFileEntry(long userId, long fileEntryId, String version, ServiceContext serviceContext) throws PortalException
PortalException
FileEntry updateFileEntry(long userId, long fileEntryId, String sourceFileName, String mimeType, String title, String urlTitle, String description, String changeLog, DLVersionNumberIncrease dlVersionNumberIncrease, File file, Date expirationDate, Date reviewDate, ServiceContext serviceContext) throws PortalException
PortalException
FileEntry updateFileEntry(long userId, long fileEntryId, String sourceFileName, String mimeType, String title, String urlTitle, String description, String changeLog, DLVersionNumberIncrease dlVersionNumberIncrease, InputStream inputStream, long size, Date expirationDate, Date reviewDate, ServiceContext serviceContext) throws PortalException
PortalException
FileShortcut updateFileShortcut(long userId, long fileShortcutId, long folderId, long toFileEntryId, ServiceContext serviceContext) throws PortalException
PortalException
void updateFileShortcuts(long oldToFileEntryId, long newToFileEntryId) throws PortalException
PortalException
Folder updateFolder(long folderId, long parentFolderId, String name, String description, ServiceContext serviceContext) throws PortalException
PortalException