Class LocalRepositoryWrapper
Object
com.liferay.portal.repository.util.LocalRepositoryWrapper
- All Implemented Interfaces:
com.liferay.portal.kernel.repository.capabilities.CapabilityProvider
,com.liferay.portal.kernel.repository.DocumentRepository
,com.liferay.portal.kernel.repository.LocalRepository
- Direct Known Subclasses:
LiferayProcessorLocalRepositoryWrapper
,LiferayWorkflowLocalRepositoryWrapper
,ModelValidatorLocalRepositoryWrapper
public class LocalRepositoryWrapper
extends Object
implements com.liferay.portal.kernel.repository.LocalRepository
- Author:
- Adolfo Pérez
-
Constructor Summary
ConstructorsConstructorDescriptionLocalRepositoryWrapper
(com.liferay.portal.kernel.repository.LocalRepository localRepository) -
Method Summary
Modifier and TypeMethodDescriptioncom.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) 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) com.liferay.portal.kernel.repository.model.FileShortcut
addFileShortcut
(String externalReferenceCode, long userId, long folderId, long toFileEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) 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) void
checkInFileEntry
(long userId, long fileEntryId, com.liferay.document.library.kernel.model.DLVersionNumberIncrease dlVersionNumberIncrease, String changeLog, com.liferay.portal.kernel.service.ServiceContext serviceContext) void
checkInFileEntry
(long userId, long fileEntryId, String lockUuid, com.liferay.portal.kernel.service.ServiceContext serviceContext) com.liferay.portal.kernel.repository.model.FileEntry
copyFileEntry
(long userId, long groupId, long fileEntryId, long destFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) void
void
deleteFileEntry
(long fileEntryId) void
deleteFileShortcut
(long fileShortcutId) void
deleteFileShortcuts
(long toFileEntryId) void
deleteFileVersion
(long fileVersionId) void
deleteFolder
(long folderId) com.liferay.portal.kernel.repository.model.FileEntry
fetchFileEntry
(long folderId, String title) com.liferay.portal.kernel.repository.model.FileEntry
fetchFileEntryByExternalReferenceCode
(String externalReferenceCode) com.liferay.portal.kernel.repository.model.FileShortcut
fetchFileShortcut
(long fileShortcutId) com.liferay.portal.kernel.repository.model.FileShortcut
fetchFileShortcutByExternalReferenceCode
(String externalReferenceCode) com.liferay.portal.kernel.repository.model.Folder
fetchFolderByExternalReferenceCode
(String externalReferenceCode) <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, 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.RepositoryEntry>
getFileEntriesAndFileShortcuts
(long folderId, int status, int start, int end) int
getFileEntriesAndFileShortcutsCount
(long folderId, int status) int
getFileEntriesCount
(long folderId) int
getFileEntriesCount
(long folderId, int status) int
getFileEntriesCount
(long folderId, String[] mimeTypes, int status) com.liferay.portal.kernel.repository.model.FileEntry
getFileEntry
(long fileEntryId) com.liferay.portal.kernel.repository.model.FileEntry
getFileEntry
(long folderId, String title) com.liferay.portal.kernel.repository.model.FileEntry
getFileEntryByExternalReferenceCode
(String externalReferenceCode) com.liferay.portal.kernel.repository.model.FileEntry
getFileEntryByFileName
(long folderId, String fileName) com.liferay.portal.kernel.repository.model.FileEntry
getFileEntryByUuid
(String uuid) com.liferay.portal.kernel.repository.model.FileShortcut
getFileShortcut
(long fileShortcutId) com.liferay.portal.kernel.repository.model.FileShortcut
getFileShortcutByExternalReferenceCode
(String externalReferenceCode) com.liferay.portal.kernel.repository.model.FileVersion
getFileVersion
(long fileVersionId) com.liferay.portal.kernel.repository.model.Folder
getFolder
(long folderId) com.liferay.portal.kernel.repository.model.Folder
com.liferay.portal.kernel.repository.model.Folder
getFolderByExternalReferenceCode
(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) int
getFoldersAndFileEntriesAndFileShortcutsCount
(long folderId, int status, boolean includeMountFolders) int
getFoldersCount
(long parentFolderId, boolean includeMountfolders) int
getFoldersCount
(long parentFolderId, int status, boolean includeMountfolders) 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) long
<T extends com.liferay.portal.kernel.repository.capabilities.Capability>
booleanisCapabilityProvided
(Class<T> capabilityClass) com.liferay.portal.kernel.repository.model.FileEntry
moveFileEntry
(long userId, long fileEntryId, long newFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) com.liferay.portal.kernel.repository.model.Folder
moveFolder
(long userId, long folderId, long parentFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) void
revertFileEntry
(long userId, long fileEntryId, String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) void
setLocalRepository
(com.liferay.portal.kernel.repository.LocalRepository localRepository) 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) 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) com.liferay.portal.kernel.repository.model.FileShortcut
updateFileShortcut
(long userId, long fileShortcutId, long folderId, long toFileEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) void
updateFileShortcuts
(long oldToFileEntryId, long newToFileEntryId) com.liferay.portal.kernel.repository.model.Folder
updateFolder
(long folderId, long parentFolderId, String name, String description, com.liferay.portal.kernel.service.ServiceContext serviceContext)
-
Constructor Details
-
LocalRepositoryWrapper
public LocalRepositoryWrapper(com.liferay.portal.kernel.repository.LocalRepository localRepository)
-
-
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:
addFileEntry
in 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:
addFileEntry
in 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:
addFileShortcut
in 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:
addFolder
in interfacecom.liferay.portal.kernel.repository.DocumentRepository
- 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:
checkInFileEntry
in 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:
checkInFileEntry
in interfacecom.liferay.portal.kernel.repository.DocumentRepository
- 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:
copyFileEntry
in 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:
deleteAll
in 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:
deleteFileEntry
in interfacecom.liferay.portal.kernel.repository.DocumentRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteFileShortcut
public void deleteFileShortcut(long fileShortcutId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteFileShortcut
in 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:
deleteFileShortcuts
in 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:
deleteFileVersion
in interfacecom.liferay.portal.kernel.repository.DocumentRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteFolder
public void deleteFolder(long folderId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteFolder
in interfacecom.liferay.portal.kernel.repository.DocumentRepository
- 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:
fetchFileEntry
in interfacecom.liferay.portal.kernel.repository.DocumentRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchFileEntryByExternalReferenceCode
public com.liferay.portal.kernel.repository.model.FileEntry fetchFileEntryByExternalReferenceCode(String externalReferenceCode) - Specified by:
fetchFileEntryByExternalReferenceCode
in interfacecom.liferay.portal.kernel.repository.DocumentRepository
-
fetchFileShortcut
public com.liferay.portal.kernel.repository.model.FileShortcut fetchFileShortcut(long fileShortcutId) - Specified by:
fetchFileShortcut
in interfacecom.liferay.portal.kernel.repository.DocumentRepository
-
fetchFileShortcutByExternalReferenceCode
public com.liferay.portal.kernel.repository.model.FileShortcut fetchFileShortcutByExternalReferenceCode(String externalReferenceCode) - Specified by:
fetchFileShortcutByExternalReferenceCode
in interfacecom.liferay.portal.kernel.repository.DocumentRepository
-
fetchFolderByExternalReferenceCode
public com.liferay.portal.kernel.repository.model.Folder fetchFolderByExternalReferenceCode(String externalReferenceCode) - Specified by:
fetchFolderByExternalReferenceCode
in interfacecom.liferay.portal.kernel.repository.DocumentRepository
-
getCapability
public <T extends com.liferay.portal.kernel.repository.capabilities.Capability> T getCapability(Class<T> capabilityClass) - Specified by:
getCapability
in 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:
getFileEntries
in 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:
getFileEntries
in 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 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:
getFileEntries
in interfacecom.liferay.portal.kernel.repository.DocumentRepository
- 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:
getFileEntriesAndFileShortcuts
in 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:
getFileEntriesAndFileShortcutsCount
in interfacecom.liferay.portal.kernel.repository.DocumentRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFileEntriesCount
public int getFileEntriesCount(long folderId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFileEntriesCount
in 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:
getFileEntriesCount
in interfacecom.liferay.portal.kernel.repository.DocumentRepository
- 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:
getFileEntriesCount
in 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:
getFileEntry
in 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:
getFileEntry
in 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:
getFileEntryByExternalReferenceCode
in 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:
getFileEntryByFileName
in 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:
getFileEntryByUuid
in 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:
getFileShortcut
in 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:
getFileShortcutByExternalReferenceCode
in 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:
getFileVersion
in 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:
getFolder
in 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:
getFolder
in 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:
getFolderByExternalReferenceCode
in 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:
getFolders
in 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:
getFolders
in 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:
getFoldersAndFileEntriesAndFileShortcuts
in interfacecom.liferay.portal.kernel.repository.DocumentRepository
- 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:
getFoldersAndFileEntriesAndFileShortcutsCount
in interfacecom.liferay.portal.kernel.repository.DocumentRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFoldersCount
public int getFoldersCount(long parentFolderId, boolean includeMountfolders) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFoldersCount
in 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:
getFoldersCount
in 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, 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:
getRepositoryFileEntries
in interfacecom.liferay.portal.kernel.repository.DocumentRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getRepositoryId
public long getRepositoryId()- Specified by:
getRepositoryId
in interfacecom.liferay.portal.kernel.repository.DocumentRepository
-
isCapabilityProvided
public <T extends com.liferay.portal.kernel.repository.capabilities.Capability> boolean isCapabilityProvided(Class<T> capabilityClass) - Specified by:
isCapabilityProvided
in interfacecom.liferay.portal.kernel.repository.capabilities.CapabilityProvider
-
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:
moveFileEntry
in 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:
moveFolder
in interfacecom.liferay.portal.kernel.repository.DocumentRepository
- 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:
revertFileEntry
in interfacecom.liferay.portal.kernel.repository.DocumentRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
setLocalRepository
public void setLocalRepository(com.liferay.portal.kernel.repository.LocalRepository localRepository) -
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:
updateFileEntry
in 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:
updateFileEntry
in 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:
updateFileShortcut
in 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:
updateFileShortcuts
in 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:
updateFolder
in interfacecom.liferay.portal.kernel.repository.DocumentRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
-