public interface Repository
| Modifier and Type | Method and Description |
|---|---|
FileEntry |
addFileEntry(long folderId,
java.lang.String sourceFileName,
java.lang.String mimeType,
java.lang.String title,
java.lang.String description,
java.lang.String changeLog,
java.io.File file,
ServiceContext serviceContext) |
FileEntry |
addFileEntry(long folderId,
java.lang.String sourceFileName,
java.lang.String mimeType,
java.lang.String title,
java.lang.String description,
java.lang.String changeLog,
java.io.InputStream is,
long size,
ServiceContext serviceContext) |
Folder |
addFolder(long parentFolderId,
java.lang.String title,
java.lang.String description,
ServiceContext serviceContext) |
FileVersion |
cancelCheckOut(long fileEntryId) |
void |
checkInFileEntry(long fileEntryId,
boolean major,
java.lang.String changeLog,
ServiceContext serviceContext) |
void |
checkInFileEntry(long fileEntryId,
java.lang.String lockUuid)
Deprecated.
As of 6.2.0, replaced by
checkInFileEntry(long,
String, ServiceContext) |
void |
checkInFileEntry(long fileEntryId,
java.lang.String lockUuid,
ServiceContext serviceContext) |
FileEntry |
checkOutFileEntry(long fileEntryId,
ServiceContext serviceContext) |
FileEntry |
checkOutFileEntry(long fileEntryId,
java.lang.String owner,
long expirationTime,
ServiceContext serviceContext) |
FileEntry |
copyFileEntry(long groupId,
long fileEntryId,
long destFolderId,
ServiceContext serviceContext) |
void |
deleteFileEntry(long fileEntryId) |
void |
deleteFileEntry(long folderId,
java.lang.String title) |
void |
deleteFileVersion(long fileEntryId,
java.lang.String version) |
void |
deleteFolder(long folderId) |
void |
deleteFolder(long parentFolderId,
java.lang.String title) |
java.util.List<FileEntry> |
getFileEntries(long folderId,
int start,
int end,
OrderByComparator obc) |
java.util.List<FileEntry> |
getFileEntries(long folderId,
long fileEntryTypeId,
int start,
int end,
OrderByComparator obc) |
java.util.List<FileEntry> |
getFileEntries(long folderId,
java.lang.String[] mimeTypes,
int start,
int end,
OrderByComparator obc) |
java.util.List<java.lang.Object> |
getFileEntriesAndFileShortcuts(long folderId,
int status,
int start,
int end) |
int |
getFileEntriesAndFileShortcutsCount(long folderId,
int status) |
int |
getFileEntriesAndFileShortcutsCount(long folderId,
int status,
java.lang.String[] mimeTypes) |
int |
getFileEntriesCount(long folderId) |
int |
getFileEntriesCount(long folderId,
long fileEntryTypeId) |
int |
getFileEntriesCount(long folderId,
java.lang.String[] mimeTypes) |
FileEntry |
getFileEntry(long fileEntryId) |
FileEntry |
getFileEntry(long folderId,
java.lang.String title) |
FileEntry |
getFileEntryByUuid(java.lang.String uuid) |
FileVersion |
getFileVersion(long fileVersionId) |
Folder |
getFolder(long folderId) |
Folder |
getFolder(long parentFolderId,
java.lang.String title) |
java.util.List<Folder> |
getFolders(long parentFolderId,
boolean includeMountFolders,
int start,
int end,
OrderByComparator obc) |
java.util.List<Folder> |
getFolders(long parentFolderId,
int status,
boolean includeMountFolders,
int start,
int end,
OrderByComparator obc) |
java.util.List<java.lang.Object> |
getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
boolean includeMountFolders,
int start,
int end,
OrderByComparator obc) |
java.util.List<java.lang.Object> |
getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
java.lang.String[] mimetypes,
boolean includeMountFolders,
int start,
int end,
OrderByComparator obc) |
int |
getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
boolean includeMountFolders) |
int |
getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
java.lang.String[] mimetypes,
boolean includeMountFolders) |
int |
getFoldersCount(long parentFolderId,
boolean includeMountfolders) |
int |
getFoldersCount(long parentFolderId,
int status,
boolean includeMountfolders) |
int |
getFoldersFileEntriesCount(java.util.List<java.lang.Long> folderIds,
int status) |
java.util.List<Folder> |
getMountFolders(long parentFolderId,
int start,
int end,
OrderByComparator obc) |
int |
getMountFoldersCount(long parentFolderId) |
java.util.List<FileEntry> |
getRepositoryFileEntries(long userId,
long rootFolderId,
int start,
int end,
OrderByComparator obc) |
java.util.List<FileEntry> |
getRepositoryFileEntries(long userId,
long rootFolderId,
java.lang.String[] mimeTypes,
int status,
int start,
int end,
OrderByComparator obc) |
int |
getRepositoryFileEntriesCount(long userId,
long rootFolderId) |
int |
getRepositoryFileEntriesCount(long userId,
long rootFolderId,
java.lang.String[] mimeTypes,
int status) |
long |
getRepositoryId() |
void |
getSubfolderIds(java.util.List<java.lang.Long> folderIds,
long folderId) |
java.util.List<java.lang.Long> |
getSubfolderIds(long folderId,
boolean recurse) |
Lock |
lockFileEntry(long fileEntryId)
Deprecated.
As of 6.2.0, replaced by
checkOutFileEntry(long,
ServiceContext) |
Lock |
lockFileEntry(long fileEntryId,
java.lang.String owner,
long expirationTime)
Deprecated.
As of 6.2.0, replaced by
checkOutFileEntry(long,
String, long, ServiceContext) |
Lock |
lockFolder(long folderId) |
Lock |
lockFolder(long folderId,
java.lang.String owner,
boolean inheritable,
long expirationTime) |
FileEntry |
moveFileEntry(long fileEntryId,
long newFolderId,
ServiceContext serviceContext) |
Folder |
moveFolder(long folderId,
long newParentFolderId,
ServiceContext serviceContext) |
Lock |
refreshFileEntryLock(java.lang.String lockUuid,
long companyId,
long expirationTime) |
Lock |
refreshFolderLock(java.lang.String lockUuid,
long companyId,
long expirationTime) |
void |
revertFileEntry(long fileEntryId,
java.lang.String version,
ServiceContext serviceContext) |
Hits |
search(long creatorUserId,
int status,
int start,
int end) |
Hits |
search(long creatorUserId,
long folderId,
java.lang.String[] mimeTypes,
int status,
int start,
int end) |
Hits |
search(SearchContext searchContext) |
Hits |
search(SearchContext searchContext,
Query query) |
void |
unlockFolder(long folderId,
java.lang.String lockUuid) |
void |
unlockFolder(long parentFolderId,
java.lang.String title,
java.lang.String lockUuid) |
FileEntry |
updateFileEntry(long fileEntryId,
java.lang.String sourceFileName,
java.lang.String mimeType,
java.lang.String title,
java.lang.String description,
java.lang.String changeLog,
boolean majorVersion,
java.io.File file,
ServiceContext serviceContext) |
FileEntry |
updateFileEntry(long fileEntryId,
java.lang.String sourceFileName,
java.lang.String mimeType,
java.lang.String title,
java.lang.String description,
java.lang.String changeLog,
boolean majorVersion,
java.io.InputStream is,
long size,
ServiceContext serviceContext) |
Folder |
updateFolder(long folderId,
java.lang.String title,
java.lang.String description,
ServiceContext serviceContext) |
boolean |
verifyFileEntryCheckOut(long fileEntryId,
java.lang.String lockUuid) |
boolean |
verifyFileEntryLock(long fileEntryId,
java.lang.String lockUuid) |
boolean |
verifyInheritableLock(long folderId,
java.lang.String lockUuid) |
FileEntry addFileEntry(long folderId, java.lang.String sourceFileName, java.lang.String mimeType, java.lang.String title, java.lang.String description, java.lang.String changeLog, java.io.File file, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionFileEntry addFileEntry(long folderId, java.lang.String sourceFileName, java.lang.String mimeType, java.lang.String title, java.lang.String description, java.lang.String changeLog, java.io.InputStream is, long size, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionFolder addFolder(long parentFolderId, java.lang.String title, java.lang.String description, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionFileVersion cancelCheckOut(long fileEntryId) throws PortalException, SystemException
PortalExceptionSystemExceptionvoid checkInFileEntry(long fileEntryId,
boolean major,
java.lang.String changeLog,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalExceptionSystemExceptionvoid checkInFileEntry(long fileEntryId,
java.lang.String lockUuid)
throws PortalException,
SystemException
checkInFileEntry(long,
String, ServiceContext)PortalExceptionSystemExceptionvoid checkInFileEntry(long fileEntryId,
java.lang.String lockUuid,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalExceptionSystemExceptionFileEntry checkOutFileEntry(long fileEntryId, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionFileEntry checkOutFileEntry(long fileEntryId, java.lang.String owner, long expirationTime, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionFileEntry copyFileEntry(long groupId, long fileEntryId, long destFolderId, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionvoid deleteFileEntry(long fileEntryId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionvoid deleteFileEntry(long folderId,
java.lang.String title)
throws PortalException,
SystemException
PortalExceptionSystemExceptionvoid deleteFileVersion(long fileEntryId,
java.lang.String version)
throws PortalException,
SystemException
PortalExceptionSystemExceptionvoid deleteFolder(long folderId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionvoid deleteFolder(long parentFolderId,
java.lang.String title)
throws PortalException,
SystemException
PortalExceptionSystemExceptionjava.util.List<FileEntry> getFileEntries(long folderId, int start, int end, OrderByComparator obc) throws PortalException, SystemException
PortalExceptionSystemExceptionjava.util.List<FileEntry> getFileEntries(long folderId, long fileEntryTypeId, int start, int end, OrderByComparator obc) throws PortalException, SystemException
PortalExceptionSystemExceptionjava.util.List<FileEntry> getFileEntries(long folderId, java.lang.String[] mimeTypes, int start, int end, OrderByComparator obc) throws PortalException, SystemException
PortalExceptionSystemExceptionjava.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(long folderId,
int status,
int start,
int end)
throws PortalException,
SystemException
PortalExceptionSystemExceptionint getFileEntriesAndFileShortcutsCount(long folderId,
int status)
throws PortalException,
SystemException
PortalExceptionSystemExceptionint getFileEntriesAndFileShortcutsCount(long folderId,
int status,
java.lang.String[] mimeTypes)
throws PortalException,
SystemException
PortalExceptionSystemExceptionint getFileEntriesCount(long folderId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionint getFileEntriesCount(long folderId,
long fileEntryTypeId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionint getFileEntriesCount(long folderId,
java.lang.String[] mimeTypes)
throws PortalException,
SystemException
PortalExceptionSystemExceptionFileEntry getFileEntry(long fileEntryId) throws PortalException, SystemException
PortalExceptionSystemExceptionFileEntry getFileEntry(long folderId, java.lang.String title) throws PortalException, SystemException
PortalExceptionSystemExceptionFileEntry getFileEntryByUuid(java.lang.String uuid) throws PortalException, SystemException
PortalExceptionSystemExceptionFileVersion getFileVersion(long fileVersionId) throws PortalException, SystemException
PortalExceptionSystemExceptionFolder getFolder(long folderId) throws PortalException, SystemException
PortalExceptionSystemExceptionFolder getFolder(long parentFolderId, java.lang.String title) throws PortalException, SystemException
PortalExceptionSystemExceptionjava.util.List<Folder> getFolders(long parentFolderId, boolean includeMountFolders, int start, int end, OrderByComparator obc) throws PortalException, SystemException
PortalExceptionSystemExceptionjava.util.List<Folder> getFolders(long parentFolderId, int status, boolean includeMountFolders, int start, int end, OrderByComparator obc) throws PortalException, SystemException
PortalExceptionSystemExceptionjava.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
boolean includeMountFolders,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
PortalExceptionSystemExceptionjava.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
java.lang.String[] mimetypes,
boolean includeMountFolders,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
PortalExceptionSystemExceptionint getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
boolean includeMountFolders)
throws PortalException,
SystemException
PortalExceptionSystemExceptionint getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
java.lang.String[] mimetypes,
boolean includeMountFolders)
throws PortalException,
SystemException
PortalExceptionSystemExceptionint getFoldersCount(long parentFolderId,
boolean includeMountfolders)
throws PortalException,
SystemException
PortalExceptionSystemExceptionint getFoldersCount(long parentFolderId,
int status,
boolean includeMountfolders)
throws PortalException,
SystemException
PortalExceptionSystemExceptionint getFoldersFileEntriesCount(java.util.List<java.lang.Long> folderIds,
int status)
throws PortalException,
SystemException
PortalExceptionSystemExceptionjava.util.List<Folder> getMountFolders(long parentFolderId, int start, int end, OrderByComparator obc) throws PortalException, SystemException
PortalExceptionSystemExceptionint getMountFoldersCount(long parentFolderId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionjava.util.List<FileEntry> getRepositoryFileEntries(long userId, long rootFolderId, int start, int end, OrderByComparator obc) throws PortalException, SystemException
PortalExceptionSystemExceptionjava.util.List<FileEntry> getRepositoryFileEntries(long userId, long rootFolderId, java.lang.String[] mimeTypes, int status, int start, int end, OrderByComparator obc) throws PortalException, SystemException
PortalExceptionSystemExceptionint getRepositoryFileEntriesCount(long userId,
long rootFolderId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionint getRepositoryFileEntriesCount(long userId,
long rootFolderId,
java.lang.String[] mimeTypes,
int status)
throws PortalException,
SystemException
PortalExceptionSystemExceptionlong getRepositoryId()
void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
long folderId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionjava.util.List<java.lang.Long> getSubfolderIds(long folderId,
boolean recurse)
throws PortalException,
SystemException
PortalExceptionSystemExceptionLock lockFileEntry(long fileEntryId) throws PortalException, SystemException
checkOutFileEntry(long,
ServiceContext)PortalExceptionSystemExceptionLock lockFileEntry(long fileEntryId, java.lang.String owner, long expirationTime) throws PortalException, SystemException
checkOutFileEntry(long,
String, long, ServiceContext)PortalExceptionSystemExceptionLock lockFolder(long folderId) throws PortalException, SystemException
PortalExceptionSystemExceptionLock lockFolder(long folderId, java.lang.String owner, boolean inheritable, long expirationTime) throws PortalException, SystemException
PortalExceptionSystemExceptionFileEntry moveFileEntry(long fileEntryId, long newFolderId, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionFolder moveFolder(long folderId, long newParentFolderId, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionLock refreshFileEntryLock(java.lang.String lockUuid, long companyId, long expirationTime) throws PortalException, SystemException
PortalExceptionSystemExceptionLock refreshFolderLock(java.lang.String lockUuid, long companyId, long expirationTime) throws PortalException, SystemException
PortalExceptionSystemExceptionvoid revertFileEntry(long fileEntryId,
java.lang.String version,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalExceptionSystemExceptionHits search(long creatorUserId, int status, int start, int end) throws PortalException, SystemException
PortalExceptionSystemExceptionHits search(long creatorUserId, long folderId, java.lang.String[] mimeTypes, int status, int start, int end) throws PortalException, SystemException
PortalExceptionSystemExceptionHits search(SearchContext searchContext) throws SearchException
SearchExceptionHits search(SearchContext searchContext, Query query) throws SearchException
SearchExceptionvoid unlockFolder(long folderId,
java.lang.String lockUuid)
throws PortalException,
SystemException
PortalExceptionSystemExceptionvoid unlockFolder(long parentFolderId,
java.lang.String title,
java.lang.String lockUuid)
throws PortalException,
SystemException
PortalExceptionSystemExceptionFileEntry updateFileEntry(long fileEntryId, java.lang.String sourceFileName, java.lang.String mimeType, java.lang.String title, java.lang.String description, java.lang.String changeLog, boolean majorVersion, java.io.File file, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionFileEntry updateFileEntry(long fileEntryId, java.lang.String sourceFileName, java.lang.String mimeType, java.lang.String title, java.lang.String description, java.lang.String changeLog, boolean majorVersion, java.io.InputStream is, long size, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionFolder updateFolder(long folderId, java.lang.String title, java.lang.String description, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionboolean verifyFileEntryCheckOut(long fileEntryId,
java.lang.String lockUuid)
throws PortalException,
SystemException
PortalExceptionSystemExceptionboolean verifyFileEntryLock(long fileEntryId,
java.lang.String lockUuid)
throws PortalException,
SystemException
PortalExceptionSystemExceptionboolean verifyInheritableLock(long folderId,
java.lang.String lockUuid)
throws PortalException,
SystemException
PortalExceptionSystemException