com.liferay.portal.repository.capabilities
Class CapabilityRepository
java.lang.Object
com.liferay.portal.kernel.repository.capabilities.BaseCapabilityProvider
com.liferay.portal.repository.capabilities.BaseCapabilityRepository<Repository>
com.liferay.portal.repository.capabilities.CapabilityRepository
- All Implemented Interfaces:
- CapabilityProvider, DocumentRepository, CapabilityRegistry, Repository
public class CapabilityRepository
- extends BaseCapabilityRepository<Repository>
- implements Repository
|
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. |
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)
|
long |
getRepositoryId()
|
void |
getSubfolderIds(List<Long> folderIds,
long folderId)
|
List<Long> |
getSubfolderIds(long folderId,
boolean recurse)
|
Lock |
lockFileEntry(long fileEntryId)
Deprecated. |
Lock |
lockFileEntry(long fileEntryId,
String owner,
long expirationTime)
Deprecated. |
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CapabilityRepository
public CapabilityRepository(Repository repository,
RepositoryEventTrigger repositoryEventTrigger)
addFileEntry
public FileEntry addFileEntry(long folderId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
File file,
ServiceContext serviceContext)
throws PortalException
- Specified by:
addFileEntry in interface Repository
- Throws:
PortalException
addFileEntry
public FileEntry addFileEntry(long folderId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
InputStream is,
long size,
ServiceContext serviceContext)
throws PortalException
- Specified by:
addFileEntry in interface Repository
- Throws:
PortalException
addFolder
public Folder addFolder(long parentFolderId,
String name,
String description,
ServiceContext serviceContext)
throws PortalException
- Specified by:
addFolder in interface Repository
- Throws:
PortalException
cancelCheckOut
public FileVersion cancelCheckOut(long fileEntryId)
throws PortalException
- Specified by:
cancelCheckOut in interface Repository
- Throws:
PortalException
checkInFileEntry
public void checkInFileEntry(long fileEntryId,
boolean major,
String changeLog,
ServiceContext serviceContext)
throws PortalException
- Specified by:
checkInFileEntry in interface Repository
- Throws:
PortalException
checkInFileEntry
@Deprecated
public void checkInFileEntry(long fileEntryId,
String lockUuid)
throws PortalException
- Deprecated.
- Specified by:
checkInFileEntry in interface Repository
- Throws:
PortalException
checkInFileEntry
public void checkInFileEntry(long fileEntryId,
String lockUuid,
ServiceContext serviceContext)
throws PortalException
- Specified by:
checkInFileEntry in interface Repository
- Throws:
PortalException
checkOutFileEntry
public FileEntry checkOutFileEntry(long fileEntryId,
ServiceContext serviceContext)
throws PortalException
- Specified by:
checkOutFileEntry in interface Repository
- Throws:
PortalException
checkOutFileEntry
public FileEntry checkOutFileEntry(long fileEntryId,
String owner,
long expirationTime,
ServiceContext serviceContext)
throws PortalException
- Specified by:
checkOutFileEntry in interface Repository
- Throws:
PortalException
copyFileEntry
public FileEntry copyFileEntry(long groupId,
long fileEntryId,
long destFolderId,
ServiceContext serviceContext)
throws PortalException
- Specified by:
copyFileEntry in interface Repository
- Throws:
PortalException
deleteFileEntry
public void deleteFileEntry(long fileEntryId)
throws PortalException
- Specified by:
deleteFileEntry in interface Repository
- Throws:
PortalException
deleteFileEntry
public void deleteFileEntry(long folderId,
String title)
throws PortalException
- Specified by:
deleteFileEntry in interface Repository
- Throws:
PortalException
deleteFileVersion
public void deleteFileVersion(long fileEntryId,
String version)
throws PortalException
- Specified by:
deleteFileVersion in interface Repository
- Throws:
PortalException
deleteFolder
public void deleteFolder(long folderId)
throws PortalException
- Specified by:
deleteFolder in interface Repository
- Throws:
PortalException
deleteFolder
public void deleteFolder(long parentFolderId,
String name)
throws PortalException
- Specified by:
deleteFolder in interface Repository
- Throws:
PortalException
getFileEntries
public List<FileEntry> getFileEntries(long folderId,
int start,
int end,
OrderByComparator<FileEntry> obc)
throws PortalException
- Specified by:
getFileEntries in interface Repository
- Throws:
PortalException
getFileEntries
public List<FileEntry> getFileEntries(long folderId,
long fileEntryTypeId,
int start,
int end,
OrderByComparator<FileEntry> obc)
throws PortalException
- Specified by:
getFileEntries in interface Repository
- Throws:
PortalException
getFileEntries
public List<FileEntry> getFileEntries(long folderId,
String[] mimeTypes,
int start,
int end,
OrderByComparator<FileEntry> obc)
throws PortalException
- Specified by:
getFileEntries in interface Repository
- Throws:
PortalException
getFileEntriesAndFileShortcuts
public List<Object> getFileEntriesAndFileShortcuts(long folderId,
int status,
int start,
int end)
throws PortalException
- Specified by:
getFileEntriesAndFileShortcuts in interface Repository
- Throws:
PortalException
getFileEntriesAndFileShortcutsCount
public int getFileEntriesAndFileShortcutsCount(long folderId,
int status)
throws PortalException
- Specified by:
getFileEntriesAndFileShortcutsCount in interface Repository
- Throws:
PortalException
getFileEntriesAndFileShortcutsCount
public int getFileEntriesAndFileShortcutsCount(long folderId,
int status,
String[] mimeTypes)
throws PortalException
- Specified by:
getFileEntriesAndFileShortcutsCount in interface Repository
- Throws:
PortalException
getFileEntriesCount
public int getFileEntriesCount(long folderId)
throws PortalException
- Specified by:
getFileEntriesCount in interface Repository
- Throws:
PortalException
getFileEntriesCount
public int getFileEntriesCount(long folderId,
long fileEntryTypeId)
throws PortalException
- Specified by:
getFileEntriesCount in interface Repository
- Throws:
PortalException
getFileEntriesCount
public int getFileEntriesCount(long folderId,
String[] mimeTypes)
throws PortalException
- Specified by:
getFileEntriesCount in interface Repository
- Throws:
PortalException
getFileEntry
public FileEntry getFileEntry(long fileEntryId)
throws PortalException
- Specified by:
getFileEntry in interface Repository
- Throws:
PortalException
getFileEntry
public FileEntry getFileEntry(long folderId,
String title)
throws PortalException
- Specified by:
getFileEntry in interface Repository
- Throws:
PortalException
getFileEntryByUuid
public FileEntry getFileEntryByUuid(String uuid)
throws PortalException
- Specified by:
getFileEntryByUuid in interface Repository
- Throws:
PortalException
getFileVersion
public FileVersion getFileVersion(long fileVersionId)
throws PortalException
- Specified by:
getFileVersion in interface Repository
- Throws:
PortalException
getFolder
public Folder getFolder(long folderId)
throws PortalException
- Specified by:
getFolder in interface Repository
- Throws:
PortalException
getFolder
public Folder getFolder(long parentFolderId,
String name)
throws PortalException
- Specified by:
getFolder in interface Repository
- Throws:
PortalException
getFolders
public List<Folder> getFolders(long parentFolderId,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<Folder> obc)
throws PortalException
- Specified by:
getFolders in interface Repository
- Throws:
PortalException
getFolders
public List<Folder> getFolders(long parentFolderId,
int status,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<Folder> obc)
throws PortalException
- Specified by:
getFolders in interface Repository
- Throws:
PortalException
getFoldersAndFileEntriesAndFileShortcuts
public List<Object> getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<?> obc)
throws PortalException
- Specified by:
getFoldersAndFileEntriesAndFileShortcuts in interface Repository
- Throws:
PortalException
getFoldersAndFileEntriesAndFileShortcuts
public List<Object> getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
String[] mimetypes,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<?> obc)
throws PortalException
- Specified by:
getFoldersAndFileEntriesAndFileShortcuts in interface Repository
- Throws:
PortalException
getFoldersAndFileEntriesAndFileShortcutsCount
public int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
boolean includeMountFolders)
throws PortalException
- Specified by:
getFoldersAndFileEntriesAndFileShortcutsCount in interface Repository
- Throws:
PortalException
getFoldersAndFileEntriesAndFileShortcutsCount
public int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
String[] mimetypes,
boolean includeMountFolders)
throws PortalException
- Specified by:
getFoldersAndFileEntriesAndFileShortcutsCount in interface Repository
- Throws:
PortalException
getFoldersCount
public int getFoldersCount(long parentFolderId,
boolean includeMountfolders)
throws PortalException
- Specified by:
getFoldersCount in interface Repository
- Throws:
PortalException
getFoldersCount
public int getFoldersCount(long parentFolderId,
int status,
boolean includeMountfolders)
throws PortalException
- Specified by:
getFoldersCount in interface Repository
- Throws:
PortalException
getFoldersFileEntriesCount
public int getFoldersFileEntriesCount(List<Long> folderIds,
int status)
throws PortalException
- Specified by:
getFoldersFileEntriesCount in interface Repository
- Throws:
PortalException
getMountFolders
public List<Folder> getMountFolders(long parentFolderId,
int start,
int end,
OrderByComparator<Folder> obc)
throws PortalException
- Specified by:
getMountFolders in interface Repository
- Throws:
PortalException
getMountFoldersCount
public int getMountFoldersCount(long parentFolderId)
throws PortalException
- Specified by:
getMountFoldersCount in interface Repository
- Throws:
PortalException
getRepositoryFileEntries
public List<FileEntry> getRepositoryFileEntries(long userId,
long rootFolderId,
int start,
int end,
OrderByComparator<FileEntry> obc)
throws PortalException
- Specified by:
getRepositoryFileEntries in interface Repository
- Throws:
PortalException
getRepositoryFileEntries
public List<FileEntry> getRepositoryFileEntries(long userId,
long rootFolderId,
String[] mimeTypes,
int status,
int start,
int end,
OrderByComparator<FileEntry> obc)
throws PortalException
- Specified by:
getRepositoryFileEntries in interface Repository
- Throws:
PortalException
getRepositoryFileEntriesCount
public int getRepositoryFileEntriesCount(long userId,
long rootFolderId)
throws PortalException
- Specified by:
getRepositoryFileEntriesCount in interface Repository
- Throws:
PortalException
getRepositoryFileEntriesCount
public int getRepositoryFileEntriesCount(long userId,
long rootFolderId,
String[] mimeTypes,
int status)
throws PortalException
- Specified by:
getRepositoryFileEntriesCount in interface Repository
- Throws:
PortalException
getRepositoryId
public long getRepositoryId()
- Specified by:
getRepositoryId in interface DocumentRepository- Specified by:
getRepositoryId in class BaseCapabilityRepository<Repository>
getSubfolderIds
public void getSubfolderIds(List<Long> folderIds,
long folderId)
throws PortalException
- Specified by:
getSubfolderIds in interface Repository
- Throws:
PortalException
getSubfolderIds
public List<Long> getSubfolderIds(long folderId,
boolean recurse)
throws PortalException
- Specified by:
getSubfolderIds in interface Repository
- Throws:
PortalException
lockFileEntry
@Deprecated
public Lock lockFileEntry(long fileEntryId)
throws PortalException
- Deprecated.
- Specified by:
lockFileEntry in interface Repository
- Throws:
PortalException
lockFileEntry
@Deprecated
public Lock lockFileEntry(long fileEntryId,
String owner,
long expirationTime)
throws PortalException
- Deprecated.
- Specified by:
lockFileEntry in interface Repository
- Throws:
PortalException
lockFolder
public Lock lockFolder(long folderId)
throws PortalException
- Specified by:
lockFolder in interface Repository
- Throws:
PortalException
lockFolder
public Lock lockFolder(long folderId,
String owner,
boolean inheritable,
long expirationTime)
throws PortalException
- Specified by:
lockFolder in interface Repository
- Throws:
PortalException
moveFileEntry
public FileEntry moveFileEntry(long fileEntryId,
long newFolderId,
ServiceContext serviceContext)
throws PortalException
- Specified by:
moveFileEntry in interface Repository
- Throws:
PortalException
moveFolder
public Folder moveFolder(long folderId,
long newParentFolderId,
ServiceContext serviceContext)
throws PortalException
- Specified by:
moveFolder in interface Repository
- Throws:
PortalException
refreshFileEntryLock
public Lock refreshFileEntryLock(String lockUuid,
long companyId,
long expirationTime)
throws PortalException
- Specified by:
refreshFileEntryLock in interface Repository
- Throws:
PortalException
refreshFolderLock
public Lock refreshFolderLock(String lockUuid,
long companyId,
long expirationTime)
throws PortalException
- Specified by:
refreshFolderLock in interface Repository
- Throws:
PortalException
revertFileEntry
public void revertFileEntry(long fileEntryId,
String version,
ServiceContext serviceContext)
throws PortalException
- Specified by:
revertFileEntry in interface Repository
- Throws:
PortalException
search
public Hits search(long creatorUserId,
int status,
int start,
int end)
throws PortalException
- Specified by:
search in interface Repository
- Throws:
PortalException
search
public Hits search(long creatorUserId,
long folderId,
String[] mimeTypes,
int status,
int start,
int end)
throws PortalException
- Specified by:
search in interface Repository
- Throws:
PortalException
search
public Hits search(SearchContext searchContext)
throws SearchException
- Specified by:
search in interface Repository
- Throws:
SearchException
search
public Hits search(SearchContext searchContext,
Query query)
throws SearchException
- Specified by:
search in interface Repository
- Throws:
SearchException
unlockFolder
public void unlockFolder(long folderId,
String lockUuid)
throws PortalException
- Specified by:
unlockFolder in interface Repository
- Throws:
PortalException
unlockFolder
public void unlockFolder(long parentFolderId,
String name,
String lockUuid)
throws PortalException
- Specified by:
unlockFolder in interface Repository
- Throws:
PortalException
updateFileEntry
public FileEntry updateFileEntry(long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
File file,
ServiceContext serviceContext)
throws PortalException
- Specified by:
updateFileEntry in interface Repository
- Throws:
PortalException
updateFileEntry
public FileEntry updateFileEntry(long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
InputStream is,
long size,
ServiceContext serviceContext)
throws PortalException
- Specified by:
updateFileEntry in interface Repository
- Throws:
PortalException
updateFolder
public Folder updateFolder(long folderId,
String name,
String description,
ServiceContext serviceContext)
throws PortalException
- Specified by:
updateFolder in interface Repository
- Throws:
PortalException
verifyFileEntryCheckOut
public boolean verifyFileEntryCheckOut(long fileEntryId,
String lockUuid)
throws PortalException
- Specified by:
verifyFileEntryCheckOut in interface Repository
- Throws:
PortalException
verifyFileEntryLock
public boolean verifyFileEntryLock(long fileEntryId,
String lockUuid)
throws PortalException
- Specified by:
verifyFileEntryLock in interface Repository
- Throws:
PortalException
verifyInheritableLock
public boolean verifyInheritableLock(long folderId,
String lockUuid)
throws PortalException
- Specified by:
verifyInheritableLock in interface Repository
- Throws:
PortalException