Class RepositoryWrapper
Object
com.liferay.portal.repository.util.RepositoryWrapper
- All Implemented Interfaces:
com.liferay.portal.kernel.repository.capabilities.CapabilityProvider,com.liferay.portal.kernel.repository.DocumentRepository,com.liferay.portal.kernel.repository.Repository
- Direct Known Subclasses:
LiferayProcessorRepositoryWrapper,LiferayWorkflowRepositoryWrapper,ModelValidatorRepositoryWrapper
public class RepositoryWrapper
extends Object
implements com.liferay.portal.kernel.repository.Repository
- Author:
- Adolfo Pérez
-
Constructor Summary
ConstructorsConstructorDescriptionRepositoryWrapper(com.liferay.portal.kernel.repository.Repository repository) -
Method Summary
Modifier and TypeMethodDescriptioncom.liferay.portal.kernel.repository.model.FileEntryaddFileEntry(String externalReferenceCode, long userId, long folderId, String sourceFileName, String mimeType, String title, String urlTitle, String description, String changeLog, File file, Date displayDate, Date expirationDate, Date reviewDate, com.liferay.portal.kernel.service.ServiceContext serviceContext) com.liferay.portal.kernel.repository.model.FileEntryaddFileEntry(String externalReferenceCode, long userId, long folderId, String sourceFileName, String mimeType, String title, String urlTitle, String description, String changeLog, InputStream inputStream, long size, Date displayDate, Date expirationDate, Date reviewDate, com.liferay.portal.kernel.service.ServiceContext serviceContext) com.liferay.portal.kernel.repository.model.FileShortcutaddFileShortcut(String externalReferenceCode, long userId, long folderId, long toFileEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) com.liferay.portal.kernel.repository.model.FolderaddFolder(String externalReferenceCode, long userId, long parentFolderId, String name, String description, com.liferay.portal.kernel.service.ServiceContext serviceContext) com.liferay.portal.kernel.repository.model.FileVersioncancelCheckOut(long fileEntryId) voidcheckInFileEntry(long userId, long fileEntryId, com.liferay.document.library.kernel.model.DLVersionNumberIncrease dlVersionNumberIncrease, String changeLog, com.liferay.portal.kernel.service.ServiceContext serviceContext) voidcheckInFileEntry(long userId, long fileEntryId, String lockUuid, com.liferay.portal.kernel.service.ServiceContext serviceContext) com.liferay.portal.kernel.repository.model.FileEntrycheckOutFileEntry(long fileEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) com.liferay.portal.kernel.repository.model.FileEntrycheckOutFileEntry(long fileEntryId, String owner, long expirationTime, com.liferay.portal.kernel.service.ServiceContext serviceContext) com.liferay.portal.kernel.repository.model.FileEntrycopyFileEntry(long userId, long groupId, long fileEntryId, long destFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) voidvoiddeleteFileEntry(long fileEntryId) voiddeleteFileEntry(long folderId, String title) voiddeleteFileShortcut(long fileShortcutId) voiddeleteFileShortcuts(long toFileEntryId) voiddeleteFileVersion(long fileVersionId) voiddeleteFileVersion(long fileEntryId, String version) voiddeleteFolder(long folderId) voiddeleteFolder(long parentFolderId, String name) com.liferay.portal.kernel.repository.model.FileEntryfetchFileEntry(long folderId, String title) <T extends com.liferay.portal.kernel.repository.capabilities.Capability>
TgetCapability(Class<T> capabilityClass) List<com.liferay.portal.kernel.repository.model.FileEntry>getFileEntries(long folderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> orderByComparator) List<com.liferay.portal.kernel.repository.model.FileEntry>getFileEntries(long folderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> orderByComparator) List<com.liferay.portal.kernel.repository.model.FileEntry>getFileEntries(long folderId, long fileEntryTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> orderByComparator) List<com.liferay.portal.kernel.repository.model.FileEntry>getFileEntries(long folderId, String[] mimeTypes, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> orderByComparator) List<com.liferay.portal.kernel.repository.model.FileEntry>getFileEntries(long folderId, String[] mimeTypes, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> orderByComparator) List<com.liferay.portal.kernel.repository.model.RepositoryEntry>getFileEntriesAndFileShortcuts(long folderId, int status, int start, int end) intgetFileEntriesAndFileShortcutsCount(long folderId, int status) intgetFileEntriesAndFileShortcutsCount(long folderId, int status, String[] mimeTypes) intgetFileEntriesCount(long folderId) intgetFileEntriesCount(long folderId, int status) intgetFileEntriesCount(long folderId, long fileEntryTypeId) intgetFileEntriesCount(long folderId, String[] mimeTypes) intgetFileEntriesCount(long folderId, String[] mimeTypes, int status) com.liferay.portal.kernel.repository.model.FileEntrygetFileEntry(long fileEntryId) com.liferay.portal.kernel.repository.model.FileEntrygetFileEntry(long folderId, String title) com.liferay.portal.kernel.repository.model.FileEntrygetFileEntryByExternalReferenceCode(String externalReferenceCode) com.liferay.portal.kernel.repository.model.FileEntrygetFileEntryByFileName(long folderId, String fileName) com.liferay.portal.kernel.repository.model.FileEntrygetFileEntryByUuid(String uuid) com.liferay.portal.kernel.repository.model.FileShortcutgetFileShortcut(long fileShortcutId) com.liferay.portal.kernel.repository.model.FileShortcutgetFileShortcutByExternalReferenceCode(String externalReferenceCode) com.liferay.portal.kernel.repository.model.FileVersiongetFileVersion(long fileVersionId) com.liferay.portal.kernel.repository.model.FoldergetFolder(long folderId) com.liferay.portal.kernel.repository.model.Foldercom.liferay.portal.kernel.repository.model.FoldergetFolderByExternalReferenceCode(String externalReferenceCode) List<com.liferay.portal.kernel.repository.model.Folder>getFolders(long parentFolderId, boolean includeMountFolders, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.Folder> orderByComparator) List<com.liferay.portal.kernel.repository.model.Folder>getFolders(long parentFolderId, int status, boolean includeMountFolders, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.Folder> orderByComparator) List<com.liferay.portal.kernel.repository.model.RepositoryEntry>getFoldersAndFileEntriesAndFileShortcuts(long folderId, int status, boolean includeMountFolders, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator) List<com.liferay.portal.kernel.repository.model.RepositoryEntry>getFoldersAndFileEntriesAndFileShortcuts(long folderId, int status, String[] mimeTypes, boolean includeMountFolders, boolean includeOwner, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator) List<com.liferay.portal.kernel.repository.model.RepositoryEntry>getFoldersAndFileEntriesAndFileShortcuts(long folderId, int status, String[] mimeTypes, boolean includeMountFolders, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator) intgetFoldersAndFileEntriesAndFileShortcutsCount(long folderId, int status, boolean includeMountFolders) intgetFoldersAndFileEntriesAndFileShortcutsCount(long folderId, int status, String[] mimeTypes, boolean includeMountFolders) intgetFoldersAndFileEntriesAndFileShortcutsCount(long folderId, int status, String[] mimeTypes, boolean includeMountFolders, boolean includeOwner) intgetFoldersCount(long parentFolderId, boolean includeMountfolders) intgetFoldersCount(long parentFolderId, int status, boolean includeMountfolders) intgetFoldersFileEntriesCount(List<Long> folderIds, int status) List<com.liferay.portal.kernel.repository.model.Folder>getMountFolders(long parentFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.Folder> orderByComparator) intgetMountFoldersCount(long parentFolderId) List<com.liferay.portal.kernel.repository.model.FileEntry>getRepositoryFileEntries(long userId, long rootFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> orderByComparator) List<com.liferay.portal.kernel.repository.model.FileEntry>getRepositoryFileEntries(long userId, long rootFolderId, String[] mimeTypes, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> orderByComparator) intgetRepositoryFileEntriesCount(long userId, long rootFolderId) intgetRepositoryFileEntriesCount(long userId, long rootFolderId, String[] mimeTypes, int status) List<com.liferay.portal.kernel.repository.model.FileShortcut>getRepositoryFileShortcuts(long groupId) longgetSubfolderIds(long folderId, boolean recurse) voidgetSubfolderIds(List<Long> folderIds, long folderId) <T extends com.liferay.portal.kernel.repository.capabilities.Capability>
booleanisCapabilityProvided(Class<T> capabilityClass) com.liferay.portal.kernel.lock.LocklockFolder(long folderId) com.liferay.portal.kernel.lock.LocklockFolder(long folderId, String owner, boolean inheritable, long expirationTime) com.liferay.portal.kernel.repository.model.FileEntrymoveFileEntry(long userId, long fileEntryId, long newFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) com.liferay.portal.kernel.repository.model.FoldermoveFolder(long userId, long folderId, long parentFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) com.liferay.portal.kernel.lock.LockrefreshFileEntryLock(String lockUuid, long companyId, long expirationTime) com.liferay.portal.kernel.lock.LockrefreshFolderLock(String lockUuid, long companyId, long expirationTime) voidrevertFileEntry(long userId, long fileEntryId, String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) com.liferay.portal.kernel.search.Hitssearch(long creatorUserId, int status, int start, int end) com.liferay.portal.kernel.search.Hitscom.liferay.portal.kernel.search.Hitssearch(com.liferay.portal.kernel.search.SearchContext searchContext) com.liferay.portal.kernel.search.Hitssearch(com.liferay.portal.kernel.search.SearchContext searchContext, com.liferay.portal.kernel.search.Query query) voidsetRepository(com.liferay.portal.kernel.repository.Repository repository) voidunlockFolder(long folderId, String lockUuid) voidunlockFolder(long parentFolderId, String name, String lockUuid) com.liferay.portal.kernel.repository.model.FileEntryupdateFileEntry(long userId, long fileEntryId, String sourceFileName, String mimeType, String title, String urlTitle, String description, String changeLog, com.liferay.document.library.kernel.model.DLVersionNumberIncrease dlVersionNumberIncrease, File file, Date displayDate, Date expirationDate, Date reviewDate, com.liferay.portal.kernel.service.ServiceContext serviceContext) com.liferay.portal.kernel.repository.model.FileEntryupdateFileEntry(long userId, long fileEntryId, String sourceFileName, String mimeType, String title, String urlTitle, String description, String changeLog, com.liferay.document.library.kernel.model.DLVersionNumberIncrease dlVersionNumberIncrease, InputStream inputStream, long size, Date displayDate, Date expirationDate, Date reviewDate, com.liferay.portal.kernel.service.ServiceContext serviceContext) com.liferay.portal.kernel.repository.model.FileShortcutupdateFileShortcut(long userId, long fileShortcutId, long folderId, long toFileEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) voidupdateFileShortcuts(long oldToFileEntryId, long newToFileEntryId) com.liferay.portal.kernel.repository.model.FolderupdateFolder(long folderId, long parentFolderId, String name, String description, com.liferay.portal.kernel.service.ServiceContext serviceContext) com.liferay.portal.kernel.repository.model.FolderupdateFolder(long folderId, String name, String description, com.liferay.portal.kernel.service.ServiceContext serviceContext) booleanverifyFileEntryCheckOut(long fileEntryId, String lockUuid) booleanverifyFileEntryLock(long fileEntryId, String lockUuid) booleanverifyInheritableLock(long folderId, String lockUuid) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.repository.DocumentRepository
fetchFileEntryByExternalReferenceCode, fetchFileShortcut, fetchFileShortcutByExternalReferenceCode, fetchFolderByExternalReferenceCode
-
Constructor Details
-
RepositoryWrapper
public RepositoryWrapper(com.liferay.portal.kernel.repository.Repository repository)
-
-
Method Details
-
addFileEntry
public com.liferay.portal.kernel.repository.model.FileEntry addFileEntry(String externalReferenceCode, long userId, long folderId, String sourceFileName, String mimeType, String title, String urlTitle, String description, String changeLog, File file, Date displayDate, Date expirationDate, Date reviewDate, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addFileEntryin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addFileEntry
public com.liferay.portal.kernel.repository.model.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 displayDate, Date expirationDate, Date reviewDate, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addFileEntryin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addFileShortcut
public com.liferay.portal.kernel.repository.model.FileShortcut addFileShortcut(String externalReferenceCode, long userId, long folderId, long toFileEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addFileShortcutin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addFolder
public com.liferay.portal.kernel.repository.model.Folder addFolder(String externalReferenceCode, long userId, long parentFolderId, String name, String description, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addFolderin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
cancelCheckOut
public com.liferay.portal.kernel.repository.model.FileVersion cancelCheckOut(long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
cancelCheckOutin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
checkInFileEntry
public void checkInFileEntry(long userId, long fileEntryId, com.liferay.document.library.kernel.model.DLVersionNumberIncrease dlVersionNumberIncrease, String changeLog, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
checkInFileEntryin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
checkInFileEntry
public void checkInFileEntry(long userId, long fileEntryId, String lockUuid, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
checkInFileEntryin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
checkOutFileEntry
public com.liferay.portal.kernel.repository.model.FileEntry checkOutFileEntry(long fileEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
checkOutFileEntryin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
checkOutFileEntry
public com.liferay.portal.kernel.repository.model.FileEntry checkOutFileEntry(long fileEntryId, String owner, long expirationTime, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
checkOutFileEntryin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
copyFileEntry
public com.liferay.portal.kernel.repository.model.FileEntry copyFileEntry(long userId, long groupId, long fileEntryId, long destFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
copyFileEntryin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteAll
public void deleteAll() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
deleteAllin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteFileEntry
public void deleteFileEntry(long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteFileEntryin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteFileEntry
public void deleteFileEntry(long folderId, String title) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteFileEntryin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteFileShortcut
public void deleteFileShortcut(long fileShortcutId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteFileShortcutin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteFileShortcuts
public void deleteFileShortcuts(long toFileEntryId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteFileShortcutsin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteFileVersion
public void deleteFileVersion(long fileVersionId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteFileVersionin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteFileVersion
public void deleteFileVersion(long fileEntryId, String version) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteFileVersionin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteFolder
public void deleteFolder(long folderId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteFolderin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteFolder
public void deleteFolder(long parentFolderId, String name) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteFolderin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchFileEntry
public com.liferay.portal.kernel.repository.model.FileEntry fetchFileEntry(long folderId, String title) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
fetchFileEntryin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCapability
public <T extends com.liferay.portal.kernel.repository.capabilities.Capability> T getCapability(Class<T> capabilityClass) - Specified by:
getCapabilityin interfacecom.liferay.portal.kernel.repository.capabilities.CapabilityProvider
-
getFileEntries
public List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries(long folderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFileEntriesin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFileEntries
public List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries(long folderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFileEntriesin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFileEntries
public List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries(long folderId, long fileEntryTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFileEntriesin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFileEntries
public List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries(long folderId, String[] mimeTypes, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFileEntriesin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFileEntries
public List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries(long folderId, String[] mimeTypes, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFileEntriesin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFileEntriesAndFileShortcuts
public List<com.liferay.portal.kernel.repository.model.RepositoryEntry> getFileEntriesAndFileShortcuts(long folderId, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFileEntriesAndFileShortcutsin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFileEntriesAndFileShortcutsCount
public int getFileEntriesAndFileShortcutsCount(long folderId, int status) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFileEntriesAndFileShortcutsCountin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFileEntriesAndFileShortcutsCount
public int getFileEntriesAndFileShortcutsCount(long folderId, int status, String[] mimeTypes) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFileEntriesAndFileShortcutsCountin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFileEntriesCount
public int getFileEntriesCount(long folderId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFileEntriesCountin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFileEntriesCount
public int getFileEntriesCount(long folderId, int status) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFileEntriesCountin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFileEntriesCount
public int getFileEntriesCount(long folderId, long fileEntryTypeId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFileEntriesCountin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFileEntriesCount
public int getFileEntriesCount(long folderId, String[] mimeTypes) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFileEntriesCountin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFileEntriesCount
public int getFileEntriesCount(long folderId, String[] mimeTypes, int status) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFileEntriesCountin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFileEntry
public com.liferay.portal.kernel.repository.model.FileEntry getFileEntry(long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFileEntryin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFileEntry
public com.liferay.portal.kernel.repository.model.FileEntry getFileEntry(long folderId, String title) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFileEntryin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFileEntryByExternalReferenceCode
public com.liferay.portal.kernel.repository.model.FileEntry getFileEntryByExternalReferenceCode(String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFileEntryByExternalReferenceCodein interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFileEntryByFileName
public com.liferay.portal.kernel.repository.model.FileEntry getFileEntryByFileName(long folderId, String fileName) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFileEntryByFileNamein interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFileEntryByUuid
public com.liferay.portal.kernel.repository.model.FileEntry getFileEntryByUuid(String uuid) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFileEntryByUuidin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFileShortcut
public com.liferay.portal.kernel.repository.model.FileShortcut getFileShortcut(long fileShortcutId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFileShortcutin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFileShortcutByExternalReferenceCode
public com.liferay.portal.kernel.repository.model.FileShortcut getFileShortcutByExternalReferenceCode(String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFileShortcutByExternalReferenceCodein interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFileVersion
public com.liferay.portal.kernel.repository.model.FileVersion getFileVersion(long fileVersionId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFileVersionin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFolder
public com.liferay.portal.kernel.repository.model.Folder getFolder(long folderId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFolderin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFolder
public com.liferay.portal.kernel.repository.model.Folder getFolder(long parentFolderId, String name) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFolderin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFolderByExternalReferenceCode
public com.liferay.portal.kernel.repository.model.Folder getFolderByExternalReferenceCode(String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFolderByExternalReferenceCodein interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFolders
public List<com.liferay.portal.kernel.repository.model.Folder> getFolders(long parentFolderId, boolean includeMountFolders, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.Folder> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFoldersin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFolders
public List<com.liferay.portal.kernel.repository.model.Folder> getFolders(long parentFolderId, int status, boolean includeMountFolders, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.Folder> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFoldersin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFoldersAndFileEntriesAndFileShortcuts
public List<com.liferay.portal.kernel.repository.model.RepositoryEntry> getFoldersAndFileEntriesAndFileShortcuts(long folderId, int status, boolean includeMountFolders, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFoldersAndFileEntriesAndFileShortcutsin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFoldersAndFileEntriesAndFileShortcuts
public List<com.liferay.portal.kernel.repository.model.RepositoryEntry> getFoldersAndFileEntriesAndFileShortcuts(long folderId, int status, String[] mimeTypes, boolean includeMountFolders, boolean includeOwner, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFoldersAndFileEntriesAndFileShortcutsin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFoldersAndFileEntriesAndFileShortcuts
public List<com.liferay.portal.kernel.repository.model.RepositoryEntry> getFoldersAndFileEntriesAndFileShortcuts(long folderId, int status, String[] mimeTypes, boolean includeMountFolders, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFoldersAndFileEntriesAndFileShortcutsin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFoldersAndFileEntriesAndFileShortcutsCount
public int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId, int status, boolean includeMountFolders) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFoldersAndFileEntriesAndFileShortcutsCountin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFoldersAndFileEntriesAndFileShortcutsCount
public int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId, int status, String[] mimeTypes, boolean includeMountFolders) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFoldersAndFileEntriesAndFileShortcutsCountin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFoldersAndFileEntriesAndFileShortcutsCount
public int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId, int status, String[] mimeTypes, boolean includeMountFolders, boolean includeOwner) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFoldersAndFileEntriesAndFileShortcutsCountin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFoldersCount
public int getFoldersCount(long parentFolderId, boolean includeMountfolders) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFoldersCountin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFoldersCount
public int getFoldersCount(long parentFolderId, int status, boolean includeMountfolders) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFoldersCountin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFoldersFileEntriesCount
public int getFoldersFileEntriesCount(List<Long> folderIds, int status) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFoldersFileEntriesCountin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getMountFolders
public List<com.liferay.portal.kernel.repository.model.Folder> getMountFolders(long parentFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.Folder> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getMountFoldersin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getMountFoldersCount
public int getMountFoldersCount(long parentFolderId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getMountFoldersCountin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getRepositoryFileEntries
public List<com.liferay.portal.kernel.repository.model.FileEntry> getRepositoryFileEntries(long userId, long rootFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getRepositoryFileEntriesin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getRepositoryFileEntries
public List<com.liferay.portal.kernel.repository.model.FileEntry> getRepositoryFileEntries(long userId, long rootFolderId, String[] mimeTypes, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getRepositoryFileEntriesin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getRepositoryFileEntriesCount
public int getRepositoryFileEntriesCount(long userId, long rootFolderId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getRepositoryFileEntriesCountin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getRepositoryFileEntriesCount
public int getRepositoryFileEntriesCount(long userId, long rootFolderId, String[] mimeTypes, int status) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getRepositoryFileEntriesCountin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getRepositoryFileShortcuts
public List<com.liferay.portal.kernel.repository.model.FileShortcut> getRepositoryFileShortcuts(long groupId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getRepositoryFileShortcutsin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getRepositoryId
public long getRepositoryId()- Specified by:
getRepositoryIdin interfacecom.liferay.portal.kernel.repository.DocumentRepository
-
getSubfolderIds
public void getSubfolderIds(List<Long> folderIds, long folderId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getSubfolderIdsin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getSubfolderIds
public List<Long> getSubfolderIds(long folderId, boolean recurse) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getSubfolderIdsin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
isCapabilityProvided
public <T extends com.liferay.portal.kernel.repository.capabilities.Capability> boolean isCapabilityProvided(Class<T> capabilityClass) - Specified by:
isCapabilityProvidedin interfacecom.liferay.portal.kernel.repository.capabilities.CapabilityProvider
-
lockFolder
public com.liferay.portal.kernel.lock.Lock lockFolder(long folderId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
lockFolderin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
lockFolder
public com.liferay.portal.kernel.lock.Lock lockFolder(long folderId, String owner, boolean inheritable, long expirationTime) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
lockFolderin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveFileEntry
public com.liferay.portal.kernel.repository.model.FileEntry moveFileEntry(long userId, long fileEntryId, long newFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
moveFileEntryin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveFolder
public com.liferay.portal.kernel.repository.model.Folder moveFolder(long userId, long folderId, long parentFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
moveFolderin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
refreshFileEntryLock
public com.liferay.portal.kernel.lock.Lock refreshFileEntryLock(String lockUuid, long companyId, long expirationTime) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
refreshFileEntryLockin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
refreshFolderLock
public com.liferay.portal.kernel.lock.Lock refreshFolderLock(String lockUuid, long companyId, long expirationTime) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
refreshFolderLockin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
revertFileEntry
public void revertFileEntry(long userId, long fileEntryId, String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
revertFileEntryin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
search
public com.liferay.portal.kernel.search.Hits search(long creatorUserId, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
searchin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
search
public com.liferay.portal.kernel.search.Hits search(long creatorUserId, long folderId, String[] mimeTypes, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
searchin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
search
public com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.search.SearchContext searchContext) throws com.liferay.portal.kernel.search.SearchException - Specified by:
searchin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.search.SearchException
-
search
public com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.search.SearchContext searchContext, com.liferay.portal.kernel.search.Query query) throws com.liferay.portal.kernel.search.SearchException - Specified by:
searchin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.search.SearchException
-
setRepository
public void setRepository(com.liferay.portal.kernel.repository.Repository repository) -
unlockFolder
public void unlockFolder(long folderId, String lockUuid) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
unlockFolderin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
unlockFolder
public void unlockFolder(long parentFolderId, String name, String lockUuid) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
unlockFolderin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateFileEntry
public com.liferay.portal.kernel.repository.model.FileEntry updateFileEntry(long userId, long fileEntryId, String sourceFileName, String mimeType, String title, String urlTitle, String description, String changeLog, com.liferay.document.library.kernel.model.DLVersionNumberIncrease dlVersionNumberIncrease, File file, Date displayDate, Date expirationDate, Date reviewDate, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateFileEntryin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateFileEntry
public com.liferay.portal.kernel.repository.model.FileEntry updateFileEntry(long userId, long fileEntryId, String sourceFileName, String mimeType, String title, String urlTitle, String description, String changeLog, com.liferay.document.library.kernel.model.DLVersionNumberIncrease dlVersionNumberIncrease, InputStream inputStream, long size, Date displayDate, Date expirationDate, Date reviewDate, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateFileEntryin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateFileShortcut
public com.liferay.portal.kernel.repository.model.FileShortcut updateFileShortcut(long userId, long fileShortcutId, long folderId, long toFileEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateFileShortcutin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateFileShortcuts
public void updateFileShortcuts(long oldToFileEntryId, long newToFileEntryId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateFileShortcutsin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateFolder
public com.liferay.portal.kernel.repository.model.Folder updateFolder(long folderId, long parentFolderId, String name, String description, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateFolderin interfacecom.liferay.portal.kernel.repository.DocumentRepository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateFolder
public com.liferay.portal.kernel.repository.model.Folder updateFolder(long folderId, String name, String description, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateFolderin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
verifyFileEntryCheckOut
public boolean verifyFileEntryCheckOut(long fileEntryId, String lockUuid) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
verifyFileEntryCheckOutin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
verifyFileEntryLock
public boolean verifyFileEntryLock(long fileEntryId, String lockUuid) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
verifyFileEntryLockin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-
verifyInheritableLock
public boolean verifyInheritableLock(long folderId, String lockUuid) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
verifyInheritableLockin interfacecom.liferay.portal.kernel.repository.Repository- Throws:
com.liferay.portal.kernel.exception.PortalException
-