Interface DocumentRepository
- All Superinterfaces:
CapabilityProvider
- All Known Subinterfaces:
BaseRepository
,LocalRepository
,Repository
- All Known Implementing Classes:
BaseRepositoryImpl
,BaseRepositoryProxyBean
,DefaultLocalRepositoryImpl
,LocalRepositoryProxyBean
- Author:
- Iván Zaera
-
Method Summary
Modifier and TypeMethodDescriptionaddFileEntry
(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, ServiceContext serviceContext) 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, ServiceContext serviceContext) addFileShortcut
(String externalReferenceCode, long userId, long folderId, long toFileEntryId, ServiceContext serviceContext) addFolder
(String externalReferenceCode, long userId, long parentFolderId, String name, String description, ServiceContext serviceContext) void
checkInFileEntry
(long userId, long fileEntryId, DLVersionNumberIncrease dlVersionNumberIncrease, String changeLog, ServiceContext serviceContext) void
checkInFileEntry
(long userId, long fileEntryId, String lockUuid, ServiceContext serviceContext) copyFileEntry
(long userId, long groupId, long fileEntryId, long destFolderId, ServiceContext serviceContext) void
void
deleteFileEntry
(long fileEntryId) void
deleteFileShortcut
(long fileShortcutId) void
deleteFileShortcuts
(long toFileEntryId) void
deleteFileVersion
(long fileVersionId) void
deleteFolder
(long folderId) default FileEntry
fetchFileEntry
(long folderId, String title) default FileEntry
fetchFileEntryByExternalReferenceCode
(String externalReferenceCode) default FileShortcut
fetchFileShortcut
(long fileShortcutId) default FileShortcut
fetchFileShortcutByExternalReferenceCode
(String externalReferenceCode) default Folder
fetchFolderByExternalReferenceCode
(String externalReferenceCode) getFileEntries
(long folderId, int status, int start, int end, OrderByComparator<FileEntry> orderByComparator) getFileEntries
(long folderId, int start, int end, OrderByComparator<FileEntry> orderByComparator) getFileEntries
(long folderId, String[] mimeTypes, int status, int start, int end, OrderByComparator<FileEntry> orderByComparator) 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) default int
getFileEntriesCount
(long folderId, String[] mimeTypes, int status) getFileEntry
(long fileEntryId) getFileEntry
(long folderId, String title) default FileEntry
getFileEntryByExternalReferenceCode
(String externalReferenceCode) default FileEntry
getFileEntryByFileName
(long folderId, String fileName) getFileEntryByUuid
(String uuid) getFileShortcut
(long fileShortcutId) default FileShortcut
getFileShortcutByExternalReferenceCode
(String externalReferenceCode) getFileVersion
(long fileVersionId) getFolder
(long folderId) default Folder
getFolderByExternalReferenceCode
(String externalReferenceCode) getFolders
(long parentFolderId, boolean includeMountFolders, int start, int end, OrderByComparator<Folder> orderByComparator) getFolders
(long parentFolderId, int status, boolean includeMountFolders, int start, int end, OrderByComparator<Folder> orderByComparator) getFoldersAndFileEntriesAndFileShortcuts
(long folderId, int status, boolean includeMountFolders, int start, int end, OrderByComparator<?> orderByComparator) int
getFoldersAndFileEntriesAndFileShortcutsCount
(long folderId, int status, boolean includeMountFolders) int
getFoldersCount
(long parentFolderId, boolean includeMountfolders) int
getFoldersCount
(long parentFolderId, int status, boolean includeMountfolders) getRepositoryFileEntries
(long userId, long rootFolderId, int start, int end, OrderByComparator<FileEntry> orderByComparator) long
moveFileEntry
(long userId, long fileEntryId, long newFolderId, ServiceContext serviceContext) moveFolder
(long userId, long folderId, long parentFolderId, ServiceContext serviceContext) void
revertFileEntry
(long userId, long fileEntryId, String version, ServiceContext serviceContext) updateFileEntry
(long userId, long fileEntryId, String sourceFileName, String mimeType, String title, String urlTitle, String description, String changeLog, DLVersionNumberIncrease dlVersionNumberIncrease, File file, Date displayDate, Date expirationDate, Date reviewDate, ServiceContext serviceContext) updateFileEntry
(long userId, long fileEntryId, String sourceFileName, String mimeType, String title, String urlTitle, String description, String changeLog, DLVersionNumberIncrease dlVersionNumberIncrease, InputStream inputStream, long size, Date displayDate, Date expirationDate, Date reviewDate, ServiceContext serviceContext) updateFileShortcut
(long userId, long fileShortcutId, long folderId, long toFileEntryId, ServiceContext serviceContext) void
updateFileShortcuts
(long oldToFileEntryId, long newToFileEntryId) updateFolder
(long folderId, long parentFolderId, String name, String description, ServiceContext serviceContext) Methods inherited from interface com.liferay.portal.kernel.repository.capabilities.CapabilityProvider
getCapability, isCapabilityProvided
-
Method Details
-
addFileEntry
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, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
addFileEntry
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, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
addFileShortcut
FileShortcut addFileShortcut(String externalReferenceCode, long userId, long folderId, long toFileEntryId, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
addFolder
Folder addFolder(String externalReferenceCode, long userId, long parentFolderId, String name, String description, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
checkInFileEntry
void checkInFileEntry(long userId, long fileEntryId, DLVersionNumberIncrease dlVersionNumberIncrease, String changeLog, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
checkInFileEntry
void checkInFileEntry(long userId, long fileEntryId, String lockUuid, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
copyFileEntry
FileEntry copyFileEntry(long userId, long groupId, long fileEntryId, long destFolderId, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
deleteAll
- Throws:
PortalException
-
deleteFileEntry
- Throws:
PortalException
-
deleteFileShortcut
- Throws:
PortalException
-
deleteFileShortcuts
- Throws:
PortalException
-
deleteFileVersion
- Throws:
PortalException
-
deleteFolder
- Throws:
PortalException
-
fetchFileEntry
- Throws:
PortalException
-
fetchFileEntryByExternalReferenceCode
-
fetchFileShortcut
-
fetchFileShortcutByExternalReferenceCode
-
fetchFolderByExternalReferenceCode
-
getFileEntries
List<FileEntry> getFileEntries(long folderId, int status, int start, int end, OrderByComparator<FileEntry> orderByComparator) throws PortalException - Throws:
PortalException
-
getFileEntries
List<FileEntry> getFileEntries(long folderId, int start, int end, OrderByComparator<FileEntry> orderByComparator) throws PortalException - Throws:
PortalException
-
getFileEntries
default List<FileEntry> getFileEntries(long folderId, String[] mimeTypes, int status, int start, int end, OrderByComparator<FileEntry> orderByComparator) throws PortalException - Throws:
PortalException
-
getFileEntriesAndFileShortcuts
List<RepositoryEntry> getFileEntriesAndFileShortcuts(long folderId, int status, int start, int end) throws PortalException - Throws:
PortalException
-
getFileEntriesAndFileShortcutsCount
- Throws:
PortalException
-
getFileEntriesCount
- Throws:
PortalException
-
getFileEntriesCount
- Throws:
PortalException
-
getFileEntriesCount
default int getFileEntriesCount(long folderId, String[] mimeTypes, int status) throws PortalException - Throws:
PortalException
-
getFileEntry
- Throws:
PortalException
-
getFileEntry
- Throws:
PortalException
-
getFileEntryByExternalReferenceCode
default FileEntry getFileEntryByExternalReferenceCode(String externalReferenceCode) throws PortalException - Throws:
PortalException
-
getFileEntryByFileName
- Throws:
PortalException
-
getFileEntryByUuid
- Throws:
PortalException
-
getFileShortcut
- Throws:
PortalException
-
getFileShortcutByExternalReferenceCode
default FileShortcut getFileShortcutByExternalReferenceCode(String externalReferenceCode) throws PortalException - Throws:
PortalException
-
getFileVersion
- Throws:
PortalException
-
getFolder
- Throws:
PortalException
-
getFolder
- Throws:
PortalException
-
getFolderByExternalReferenceCode
default Folder getFolderByExternalReferenceCode(String externalReferenceCode) throws PortalException - Throws:
PortalException
-
getFolders
List<Folder> getFolders(long parentFolderId, boolean includeMountFolders, int start, int end, OrderByComparator<Folder> orderByComparator) throws PortalException - Throws:
PortalException
-
getFolders
List<Folder> getFolders(long parentFolderId, int status, boolean includeMountFolders, int start, int end, OrderByComparator<Folder> orderByComparator) throws PortalException - Throws:
PortalException
-
getFoldersAndFileEntriesAndFileShortcuts
List<RepositoryEntry> getFoldersAndFileEntriesAndFileShortcuts(long folderId, int status, boolean includeMountFolders, int start, int end, OrderByComparator<?> orderByComparator) throws PortalException - Throws:
PortalException
-
getFoldersAndFileEntriesAndFileShortcutsCount
int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId, int status, boolean includeMountFolders) throws PortalException - Throws:
PortalException
-
getFoldersCount
- Throws:
PortalException
-
getFoldersCount
int getFoldersCount(long parentFolderId, int status, boolean includeMountfolders) throws PortalException - Throws:
PortalException
-
getRepositoryFileEntries
List<FileEntry> getRepositoryFileEntries(long userId, long rootFolderId, int start, int end, OrderByComparator<FileEntry> orderByComparator) throws PortalException - Throws:
PortalException
-
getRepositoryId
long getRepositoryId() -
moveFileEntry
FileEntry moveFileEntry(long userId, long fileEntryId, long newFolderId, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
moveFolder
Folder moveFolder(long userId, long folderId, long parentFolderId, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
revertFileEntry
void revertFileEntry(long userId, long fileEntryId, String version, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
updateFileEntry
FileEntry updateFileEntry(long userId, long fileEntryId, String sourceFileName, String mimeType, String title, String urlTitle, String description, String changeLog, DLVersionNumberIncrease dlVersionNumberIncrease, File file, Date displayDate, Date expirationDate, Date reviewDate, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
updateFileEntry
FileEntry updateFileEntry(long userId, long fileEntryId, String sourceFileName, String mimeType, String title, String urlTitle, String description, String changeLog, DLVersionNumberIncrease dlVersionNumberIncrease, InputStream inputStream, long size, Date displayDate, Date expirationDate, Date reviewDate, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
updateFileShortcut
FileShortcut updateFileShortcut(long userId, long fileShortcutId, long folderId, long toFileEntryId, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
updateFileShortcuts
- Throws:
PortalException
-
updateFolder
Folder updateFolder(long folderId, long parentFolderId, String name, String description, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-