com.liferay.portal.kernel.repository
Interface Repository
- All Known Subinterfaces:
- BaseRepository
- All Known Implementing Classes:
- BaseCmisRepository, BaseRepositoryImpl, BaseRepositoryProxyBean, CMISRepositoryHandler
public interface Repository
- Author:
- Alexander Chow
|
Method Summary |
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)
|
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<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 |
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. checkOutFileEntry(long, ServiceContext) |
Lock |
lockFileEntry(long fileEntryId,
java.lang.String owner,
long expirationTime)
Deprecated. 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 expirationTime)
|
Lock |
refreshFolderLock(java.lang.String lockUuid,
long expirationTime)
|
void |
revertFileEntry(long fileEntryId,
java.lang.String version,
ServiceContext serviceContext)
|
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)
|
addFileEntry
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
- Throws:
PortalException
SystemException
addFileEntry
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)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addFolder
Folder addFolder(long parentFolderId,
java.lang.String title,
java.lang.String description,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
cancelCheckOut
FileVersion cancelCheckOut(long fileEntryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
checkInFileEntry
void checkInFileEntry(long fileEntryId,
boolean major,
java.lang.String changeLog,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
checkInFileEntry
void checkInFileEntry(long fileEntryId,
java.lang.String lockUuid)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
checkOutFileEntry
FileEntry checkOutFileEntry(long fileEntryId,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
checkOutFileEntry
FileEntry checkOutFileEntry(long fileEntryId,
java.lang.String owner,
long expirationTime,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
copyFileEntry
FileEntry copyFileEntry(long groupId,
long fileEntryId,
long destFolderId,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteFileEntry
void deleteFileEntry(long fileEntryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteFileEntry
void deleteFileEntry(long folderId,
java.lang.String title)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteFileVersion
void deleteFileVersion(long fileEntryId,
java.lang.String version)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteFolder
void deleteFolder(long folderId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteFolder
void deleteFolder(long parentFolderId,
java.lang.String title)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFileEntries
java.util.List<FileEntry> getFileEntries(long folderId,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getFileEntries
java.util.List<FileEntry> getFileEntries(long folderId,
long fileEntryTypeId,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getFileEntries
java.util.List<FileEntry> getFileEntries(long folderId,
java.lang.String[] mimeTypes,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFileEntriesAndFileShortcuts
java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(long folderId,
int status,
int start,
int end)
throws SystemException
- Throws:
SystemException
getFileEntriesAndFileShortcutsCount
int getFileEntriesAndFileShortcutsCount(long folderId,
int status)
throws SystemException
- Throws:
SystemException
getFileEntriesAndFileShortcutsCount
int getFileEntriesAndFileShortcutsCount(long folderId,
int status,
java.lang.String[] mimeTypes)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFileEntriesCount
int getFileEntriesCount(long folderId)
throws SystemException
- Throws:
SystemException
getFileEntriesCount
int getFileEntriesCount(long folderId,
long fileEntryTypeId)
throws SystemException
- Throws:
SystemException
getFileEntriesCount
int getFileEntriesCount(long folderId,
java.lang.String[] mimeTypes)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFileEntry
FileEntry getFileEntry(long fileEntryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFileEntry
FileEntry getFileEntry(long folderId,
java.lang.String title)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFileEntryByUuid
FileEntry getFileEntryByUuid(java.lang.String uuid)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFileVersion
FileVersion getFileVersion(long fileVersionId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFolder
Folder getFolder(long folderId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFolder
Folder getFolder(long parentFolderId,
java.lang.String title)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFolders
java.util.List<Folder> getFolders(long parentFolderId,
boolean includeMountFolders,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFoldersAndFileEntriesAndFileShortcuts
java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
boolean includeMountFolders,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getFoldersAndFileEntriesAndFileShortcuts
java.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
- Throws:
PortalException
SystemException
getFoldersAndFileEntriesAndFileShortcutsCount
int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
boolean includeMountFolders)
throws SystemException
- Throws:
SystemException
getFoldersAndFileEntriesAndFileShortcutsCount
int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
java.lang.String[] mimetypes,
boolean includeMountFolders)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFoldersCount
int getFoldersCount(long parentFolderId,
boolean includeMountfolders)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFoldersFileEntriesCount
int getFoldersFileEntriesCount(java.util.List<java.lang.Long> folderIds,
int status)
throws SystemException
- Throws:
SystemException
getMountFolders
java.util.List<Folder> getMountFolders(long parentFolderId,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getMountFoldersCount
int getMountFoldersCount(long parentFolderId)
throws SystemException
- Throws:
SystemException
getRepositoryFileEntries
java.util.List<FileEntry> getRepositoryFileEntries(long userId,
long rootFolderId,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getRepositoryFileEntries
java.util.List<FileEntry> getRepositoryFileEntries(long userId,
long rootFolderId,
java.lang.String[] mimeTypes,
int status,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getRepositoryFileEntriesCount
int getRepositoryFileEntriesCount(long userId,
long rootFolderId)
throws SystemException
- Throws:
SystemException
getRepositoryFileEntriesCount
int getRepositoryFileEntriesCount(long userId,
long rootFolderId,
java.lang.String[] mimeTypes,
int status)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getRepositoryId
long getRepositoryId()
getSubfolderIds
void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
long folderId)
throws SystemException
- Throws:
SystemException
getSubfolderIds
java.util.List<java.lang.Long> getSubfolderIds(long folderId,
boolean recurse)
throws SystemException
- Throws:
SystemException
lockFileEntry
Lock lockFileEntry(long fileEntryId)
throws PortalException,
SystemException
- Deprecated.
checkOutFileEntry(long, ServiceContext)
- Throws:
PortalException
SystemException
lockFileEntry
Lock lockFileEntry(long fileEntryId,
java.lang.String owner,
long expirationTime)
throws PortalException,
SystemException
- Deprecated.
checkOutFileEntry(long, String, long,
ServiceContext)
- Throws:
PortalException
SystemException
lockFolder
Lock lockFolder(long folderId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
lockFolder
Lock lockFolder(long folderId,
java.lang.String owner,
boolean inheritable,
long expirationTime)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
moveFileEntry
FileEntry moveFileEntry(long fileEntryId,
long newFolderId,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
moveFolder
Folder moveFolder(long folderId,
long newParentFolderId,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
refreshFileEntryLock
Lock refreshFileEntryLock(java.lang.String lockUuid,
long expirationTime)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
refreshFolderLock
Lock refreshFolderLock(java.lang.String lockUuid,
long expirationTime)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
revertFileEntry
void revertFileEntry(long fileEntryId,
java.lang.String version,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
search
Hits search(SearchContext searchContext)
throws SearchException
- Throws:
SearchException
search
Hits search(SearchContext searchContext,
Query query)
throws SearchException
- Throws:
SearchException
unlockFolder
void unlockFolder(long folderId,
java.lang.String lockUuid)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
unlockFolder
void unlockFolder(long parentFolderId,
java.lang.String title,
java.lang.String lockUuid)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateFileEntry
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)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateFileEntry
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)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateFolder
Folder updateFolder(long folderId,
java.lang.String title,
java.lang.String description,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
verifyFileEntryCheckOut
boolean verifyFileEntryCheckOut(long fileEntryId,
java.lang.String lockUuid)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
verifyFileEntryLock
boolean verifyFileEntryLock(long fileEntryId,
java.lang.String lockUuid)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
verifyInheritableLock
boolean verifyInheritableLock(long folderId,
java.lang.String lockUuid)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException