com.liferay.portal.kernel.repository
Interface Repository
- All Superinterfaces:
- CapabilityProvider, DocumentRepository
- All Known Subinterfaces:
- BaseRepository
- All Known Implementing Classes:
- BaseCmisRepository, BaseRepositoryImpl, BaseRepositoryProxyBean, CMISRepositoryHandler
public interface Repository
- extends DocumentRepository
|
Method Summary |
FileEntry |
addFileEntry(long folderId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
File file,
ServiceContext serviceContext)
|
FileEntry |
addFileEntry(long folderId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
InputStream is,
long size,
ServiceContext serviceContext)
|
Folder |
addFolder(long parentFolderId,
String name,
String description,
ServiceContext serviceContext)
|
FileVersion |
cancelCheckOut(long fileEntryId)
|
void |
checkInFileEntry(long fileEntryId,
boolean major,
String changeLog,
ServiceContext serviceContext)
|
void |
checkInFileEntry(long fileEntryId,
String lockUuid)
Deprecated. As of 6.2.0, replaced by checkInFileEntry(long,
String, ServiceContext) |
void |
checkInFileEntry(long fileEntryId,
String lockUuid,
ServiceContext serviceContext)
|
FileEntry |
checkOutFileEntry(long fileEntryId,
ServiceContext serviceContext)
|
FileEntry |
checkOutFileEntry(long fileEntryId,
String owner,
long expirationTime,
ServiceContext serviceContext)
|
FileEntry |
copyFileEntry(long groupId,
long fileEntryId,
long destFolderId,
ServiceContext serviceContext)
|
void |
deleteFileEntry(long fileEntryId)
|
void |
deleteFileEntry(long folderId,
String title)
|
void |
deleteFileVersion(long fileEntryId,
String version)
|
void |
deleteFolder(long folderId)
|
void |
deleteFolder(long parentFolderId,
String name)
|
List<FileEntry> |
getFileEntries(long folderId,
int start,
int end,
OrderByComparator<FileEntry> obc)
|
List<FileEntry> |
getFileEntries(long folderId,
long fileEntryTypeId,
int start,
int end,
OrderByComparator<FileEntry> obc)
|
List<FileEntry> |
getFileEntries(long folderId,
String[] mimeTypes,
int start,
int end,
OrderByComparator<FileEntry> obc)
|
List<Object> |
getFileEntriesAndFileShortcuts(long folderId,
int status,
int start,
int end)
|
int |
getFileEntriesAndFileShortcutsCount(long folderId,
int status)
|
int |
getFileEntriesAndFileShortcutsCount(long folderId,
int status,
String[] mimeTypes)
|
int |
getFileEntriesCount(long folderId)
|
int |
getFileEntriesCount(long folderId,
long fileEntryTypeId)
|
int |
getFileEntriesCount(long folderId,
String[] mimeTypes)
|
FileEntry |
getFileEntry(long fileEntryId)
|
FileEntry |
getFileEntry(long folderId,
String title)
|
FileEntry |
getFileEntryByUuid(String uuid)
|
FileVersion |
getFileVersion(long fileVersionId)
|
Folder |
getFolder(long folderId)
|
Folder |
getFolder(long parentFolderId,
String name)
|
List<Folder> |
getFolders(long parentFolderId,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<Folder> obc)
|
List<Folder> |
getFolders(long parentFolderId,
int status,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<Folder> obc)
|
List<Object> |
getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<?> obc)
|
List<Object> |
getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
String[] mimetypes,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<?> obc)
|
int |
getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
boolean includeMountFolders)
|
int |
getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
String[] mimetypes,
boolean includeMountFolders)
|
int |
getFoldersCount(long parentFolderId,
boolean includeMountfolders)
|
int |
getFoldersCount(long parentFolderId,
int status,
boolean includeMountfolders)
|
int |
getFoldersFileEntriesCount(List<Long> folderIds,
int status)
|
List<Folder> |
getMountFolders(long parentFolderId,
int start,
int end,
OrderByComparator<Folder> obc)
|
int |
getMountFoldersCount(long parentFolderId)
|
List<FileEntry> |
getRepositoryFileEntries(long userId,
long rootFolderId,
int start,
int end,
OrderByComparator<FileEntry> obc)
|
List<FileEntry> |
getRepositoryFileEntries(long userId,
long rootFolderId,
String[] mimeTypes,
int status,
int start,
int end,
OrderByComparator<FileEntry> obc)
|
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 |
lockFileEntry(long fileEntryId)
Deprecated. As of 6.2.0, replaced by checkOutFileEntry(long,
ServiceContext) |
Lock |
lockFileEntry(long fileEntryId,
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,
String owner,
boolean inheritable,
long expirationTime)
|
FileEntry |
moveFileEntry(long fileEntryId,
long newFolderId,
ServiceContext serviceContext)
|
Folder |
moveFolder(long folderId,
long newParentFolderId,
ServiceContext serviceContext)
|
Lock |
refreshFileEntryLock(String lockUuid,
long companyId,
long expirationTime)
|
Lock |
refreshFolderLock(String lockUuid,
long companyId,
long expirationTime)
|
void |
revertFileEntry(long fileEntryId,
String version,
ServiceContext serviceContext)
|
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)
|
FileEntry |
updateFileEntry(long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
File file,
ServiceContext serviceContext)
|
FileEntry |
updateFileEntry(long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
InputStream is,
long size,
ServiceContext serviceContext)
|
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
FileEntry addFileEntry(long folderId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
File file,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
addFileEntry
FileEntry addFileEntry(long folderId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
InputStream is,
long size,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
addFolder
Folder addFolder(long parentFolderId,
String name,
String description,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
cancelCheckOut
FileVersion cancelCheckOut(long fileEntryId)
throws PortalException
- Throws:
PortalException
checkInFileEntry
void checkInFileEntry(long fileEntryId,
boolean major,
String changeLog,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
checkInFileEntry
@Deprecated
void checkInFileEntry(long fileEntryId,
String lockUuid)
throws PortalException
- Deprecated. As of 6.2.0, replaced by
checkInFileEntry(long,
String, ServiceContext)
- Throws:
PortalException
checkInFileEntry
void checkInFileEntry(long fileEntryId,
String lockUuid,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
checkOutFileEntry
FileEntry checkOutFileEntry(long fileEntryId,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
checkOutFileEntry
FileEntry checkOutFileEntry(long fileEntryId,
String owner,
long expirationTime,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
copyFileEntry
FileEntry copyFileEntry(long groupId,
long fileEntryId,
long destFolderId,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
deleteFileEntry
void deleteFileEntry(long fileEntryId)
throws PortalException
- Throws:
PortalException
deleteFileEntry
void deleteFileEntry(long folderId,
String title)
throws PortalException
- Throws:
PortalException
deleteFileVersion
void deleteFileVersion(long fileEntryId,
String version)
throws PortalException
- Throws:
PortalException
deleteFolder
void deleteFolder(long folderId)
throws PortalException
- Throws:
PortalException
deleteFolder
void deleteFolder(long parentFolderId,
String name)
throws PortalException
- Throws:
PortalException
getFileEntries
List<FileEntry> getFileEntries(long folderId,
int start,
int end,
OrderByComparator<FileEntry> obc)
throws PortalException
- Throws:
PortalException
getFileEntries
List<FileEntry> getFileEntries(long folderId,
long fileEntryTypeId,
int start,
int end,
OrderByComparator<FileEntry> obc)
throws PortalException
- Throws:
PortalException
getFileEntries
List<FileEntry> getFileEntries(long folderId,
String[] mimeTypes,
int start,
int end,
OrderByComparator<FileEntry> obc)
throws PortalException
- Throws:
PortalException
getFileEntriesAndFileShortcuts
List<Object> getFileEntriesAndFileShortcuts(long folderId,
int status,
int start,
int end)
throws PortalException
- Throws:
PortalException
getFileEntriesAndFileShortcutsCount
int getFileEntriesAndFileShortcutsCount(long folderId,
int status)
throws PortalException
- Throws:
PortalException
getFileEntriesAndFileShortcutsCount
int getFileEntriesAndFileShortcutsCount(long folderId,
int status,
String[] mimeTypes)
throws PortalException
- Throws:
PortalException
getFileEntriesCount
int getFileEntriesCount(long folderId)
throws PortalException
- Throws:
PortalException
getFileEntriesCount
int getFileEntriesCount(long folderId,
long fileEntryTypeId)
throws PortalException
- Throws:
PortalException
getFileEntriesCount
int getFileEntriesCount(long folderId,
String[] mimeTypes)
throws PortalException
- Throws:
PortalException
getFileEntry
FileEntry getFileEntry(long fileEntryId)
throws PortalException
- Throws:
PortalException
getFileEntry
FileEntry getFileEntry(long folderId,
String title)
throws PortalException
- Throws:
PortalException
getFileEntryByUuid
FileEntry getFileEntryByUuid(String uuid)
throws PortalException
- Throws:
PortalException
getFileVersion
FileVersion getFileVersion(long fileVersionId)
throws PortalException
- Throws:
PortalException
getFolder
Folder getFolder(long folderId)
throws PortalException
- Throws:
PortalException
getFolder
Folder getFolder(long parentFolderId,
String name)
throws PortalException
- Throws:
PortalException
getFolders
List<Folder> getFolders(long parentFolderId,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<Folder> obc)
throws PortalException
- Throws:
PortalException
getFolders
List<Folder> getFolders(long parentFolderId,
int status,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<Folder> obc)
throws PortalException
- Throws:
PortalException
getFoldersAndFileEntriesAndFileShortcuts
List<Object> getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<?> obc)
throws PortalException
- Throws:
PortalException
getFoldersAndFileEntriesAndFileShortcuts
List<Object> getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
String[] mimetypes,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<?> obc)
throws PortalException
- Throws:
PortalException
getFoldersAndFileEntriesAndFileShortcutsCount
int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
boolean includeMountFolders)
throws PortalException
- Throws:
PortalException
getFoldersAndFileEntriesAndFileShortcutsCount
int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
String[] mimetypes,
boolean includeMountFolders)
throws PortalException
- Throws:
PortalException
getFoldersCount
int getFoldersCount(long parentFolderId,
boolean includeMountfolders)
throws PortalException
- Throws:
PortalException
getFoldersCount
int getFoldersCount(long parentFolderId,
int status,
boolean includeMountfolders)
throws PortalException
- Throws:
PortalException
getFoldersFileEntriesCount
int getFoldersFileEntriesCount(List<Long> folderIds,
int status)
throws PortalException
- Throws:
PortalException
getMountFolders
List<Folder> getMountFolders(long parentFolderId,
int start,
int end,
OrderByComparator<Folder> obc)
throws PortalException
- Throws:
PortalException
getMountFoldersCount
int getMountFoldersCount(long parentFolderId)
throws PortalException
- Throws:
PortalException
getRepositoryFileEntries
List<FileEntry> getRepositoryFileEntries(long userId,
long rootFolderId,
int start,
int end,
OrderByComparator<FileEntry> obc)
throws PortalException
- Throws:
PortalException
getRepositoryFileEntries
List<FileEntry> getRepositoryFileEntries(long userId,
long rootFolderId,
String[] mimeTypes,
int status,
int start,
int end,
OrderByComparator<FileEntry> obc)
throws PortalException
- Throws:
PortalException
getRepositoryFileEntriesCount
int getRepositoryFileEntriesCount(long userId,
long rootFolderId)
throws PortalException
- Throws:
PortalException
getRepositoryFileEntriesCount
int getRepositoryFileEntriesCount(long userId,
long rootFolderId,
String[] mimeTypes,
int status)
throws PortalException
- Throws:
PortalException
getSubfolderIds
void getSubfolderIds(List<Long> folderIds,
long folderId)
throws PortalException
- Throws:
PortalException
getSubfolderIds
List<Long> getSubfolderIds(long folderId,
boolean recurse)
throws PortalException
- Throws:
PortalException
lockFileEntry
@Deprecated
Lock lockFileEntry(long fileEntryId)
throws PortalException
- Deprecated. As of 6.2.0, replaced by
checkOutFileEntry(long,
ServiceContext)
- Throws:
PortalException
lockFileEntry
@Deprecated
Lock lockFileEntry(long fileEntryId,
String owner,
long expirationTime)
throws PortalException
- Deprecated. As of 6.2.0, replaced by
checkOutFileEntry(long,
String, long, ServiceContext)
- Throws:
PortalException
lockFolder
Lock lockFolder(long folderId)
throws PortalException
- Throws:
PortalException
lockFolder
Lock lockFolder(long folderId,
String owner,
boolean inheritable,
long expirationTime)
throws PortalException
- Throws:
PortalException
moveFileEntry
FileEntry moveFileEntry(long fileEntryId,
long newFolderId,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
moveFolder
Folder moveFolder(long folderId,
long newParentFolderId,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
refreshFileEntryLock
Lock refreshFileEntryLock(String lockUuid,
long companyId,
long expirationTime)
throws PortalException
- Throws:
PortalException
refreshFolderLock
Lock refreshFolderLock(String lockUuid,
long companyId,
long expirationTime)
throws PortalException
- Throws:
PortalException
revertFileEntry
void revertFileEntry(long fileEntryId,
String version,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
search
Hits search(long creatorUserId,
int status,
int start,
int end)
throws PortalException
- Throws:
PortalException
search
Hits search(long creatorUserId,
long folderId,
String[] mimeTypes,
int status,
int start,
int end)
throws PortalException
- Throws:
PortalException
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,
String lockUuid)
throws PortalException
- Throws:
PortalException
unlockFolder
void unlockFolder(long parentFolderId,
String name,
String lockUuid)
throws PortalException
- Throws:
PortalException
updateFileEntry
FileEntry updateFileEntry(long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
File file,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
updateFileEntry
FileEntry updateFileEntry(long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
InputStream is,
long size,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
updateFolder
Folder updateFolder(long folderId,
String name,
String description,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
verifyFileEntryCheckOut
boolean verifyFileEntryCheckOut(long fileEntryId,
String lockUuid)
throws PortalException
- Throws:
PortalException
verifyFileEntryLock
boolean verifyFileEntryLock(long fileEntryId,
String lockUuid)
throws PortalException
- Throws:
PortalException
verifyInheritableLock
boolean verifyInheritableLock(long folderId,
String lockUuid)
throws PortalException
- Throws:
PortalException