Class LocalRepositoryProxyBean
Object
com.liferay.portal.kernel.repository.proxy.RepositoryModelProxyBean
com.liferay.portal.kernel.repository.proxy.LocalRepositoryProxyBean
- All Implemented Interfaces:
CapabilityProvider,DocumentRepository,LocalRepository
- Author:
- Mika Koivisto
-
Constructor Summary
ConstructorsConstructorDescriptionLocalRepositoryProxyBean(LocalRepository localRepository, ClassLoader classLoader) -
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) voidcheckInFileEntry(long userId, long fileEntryId, DLVersionNumberIncrease dlVersionNumberIncrease, String changeLog, ServiceContext serviceContext) voidcheckInFileEntry(long userId, long fileEntryId, String lockUuid, ServiceContext serviceContext) copyFileEntry(long userId, long groupId, long fileEntryId, long destFolderId, ServiceContext serviceContext) voidvoiddeleteFileEntry(long fileEntryId) voiddeleteFileShortcut(long fileShortcutId) voiddeleteFileShortcuts(long toFileEntryId) voiddeleteFileVersion(long fileVersionId) voiddeleteFolder(long folderId) fetchFileEntry(long folderId, String title) <T extends Capability>
TgetCapability(Class<T> capabilityClass) getFileEntries(long folderId, int status, int start, int end, OrderByComparator<FileEntry> orderByComparator) getFileEntries(long folderId, int start, int end, OrderByComparator<FileEntry> orderByComparator) getFileEntriesAndFileShortcuts(long folderId, int status, int start, int end) intgetFileEntriesAndFileShortcutsCount(long folderId, int status) intgetFileEntriesCount(long folderId) intgetFileEntriesCount(long folderId, int status) getFileEntry(long fileEntryId) getFileEntry(long folderId, String title) getFileEntryByFileName(long folderId, String fileName) getFileEntryByUuid(String uuid) getFileShortcut(long fileShortcutId) getFileVersion(long fileVersionId) getFolder(long folderId) 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) intgetFoldersAndFileEntriesAndFileShortcutsCount(long folderId, int status, boolean includeMountFolders) intgetFoldersCount(long parentFolderId, boolean includeMountfolders) intgetFoldersCount(long parentFolderId, int status, boolean includeMountfolders) getRepositoryFileEntries(long userId, long rootFolderId, int start, int end, OrderByComparator<FileEntry> orderByComparator) long<T extends Capability>
booleanisCapabilityProvided(Class<T> capabilityClass) moveFileEntry(long userId, long fileEntryId, long newFolderId, ServiceContext serviceContext) moveFolder(long userId, long folderId, long parentFolderId, ServiceContext serviceContext) voidrevertFileEntry(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) voidupdateFileShortcuts(long oldToFileEntryId, long newToFileEntryId) updateFolder(long folderId, long parentFolderId, String name, String description, ServiceContext serviceContext) Methods inherited from class com.liferay.portal.kernel.repository.proxy.RepositoryModelProxyBean
newFileEntryProxyBean, newFileShortcutProxyBean, newFileVersionProxyBean, newFolderProxyBean, newLocalRepositoryProxyBean, newProxyBean, newProxyInstance, toFileEntryProxyBeans, toFileVersionProxyBeans, toFolderProxyBeans, toObjectProxyBeansMethods 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, getFileEntries, getFileEntriesCount, getFileEntryByExternalReferenceCode, getFileShortcutByExternalReferenceCode, getFolderByExternalReferenceCode
-
Constructor Details
-
LocalRepositoryProxyBean
-
-
Method Details
-
addFileEntry
public 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 - Specified by:
addFileEntryin interfaceDocumentRepository- Throws:
PortalException
-
addFileEntry
public 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 - Specified by:
addFileEntryin interfaceDocumentRepository- Throws:
PortalException
-
addFileShortcut
public FileShortcut addFileShortcut(String externalReferenceCode, long userId, long folderId, long toFileEntryId, ServiceContext serviceContext) throws PortalException - Specified by:
addFileShortcutin interfaceDocumentRepository- Throws:
PortalException
-
addFolder
public Folder addFolder(String externalReferenceCode, long userId, long parentFolderId, String name, String description, ServiceContext serviceContext) throws PortalException - Specified by:
addFolderin interfaceDocumentRepository- Throws:
PortalException
-
checkInFileEntry
public void checkInFileEntry(long userId, long fileEntryId, DLVersionNumberIncrease dlVersionNumberIncrease, String changeLog, ServiceContext serviceContext) throws PortalException - Specified by:
checkInFileEntryin interfaceDocumentRepository- Throws:
PortalException
-
checkInFileEntry
public void checkInFileEntry(long userId, long fileEntryId, String lockUuid, ServiceContext serviceContext) throws PortalException - Specified by:
checkInFileEntryin interfaceDocumentRepository- Throws:
PortalException
-
copyFileEntry
public FileEntry copyFileEntry(long userId, long groupId, long fileEntryId, long destFolderId, ServiceContext serviceContext) throws PortalException - Specified by:
copyFileEntryin interfaceDocumentRepository- Throws:
PortalException
-
deleteAll
- Specified by:
deleteAllin interfaceDocumentRepository- Throws:
PortalException
-
deleteFileEntry
- Specified by:
deleteFileEntryin interfaceDocumentRepository- Throws:
PortalException
-
deleteFileShortcut
- Specified by:
deleteFileShortcutin interfaceDocumentRepository- Throws:
PortalException
-
deleteFileShortcuts
- Specified by:
deleteFileShortcutsin interfaceDocumentRepository- Throws:
PortalException
-
deleteFileVersion
- Specified by:
deleteFileVersionin interfaceDocumentRepository- Throws:
PortalException
-
deleteFolder
- Specified by:
deleteFolderin interfaceDocumentRepository- Throws:
PortalException
-
fetchFileEntry
- Specified by:
fetchFileEntryin interfaceDocumentRepository- Throws:
PortalException
-
getCapability
- Specified by:
getCapabilityin interfaceCapabilityProvider
-
getFileEntries
public List<FileEntry> getFileEntries(long folderId, int status, int start, int end, OrderByComparator<FileEntry> orderByComparator) throws PortalException - Specified by:
getFileEntriesin interfaceDocumentRepository- Throws:
PortalException
-
getFileEntries
public List<FileEntry> getFileEntries(long folderId, int start, int end, OrderByComparator<FileEntry> orderByComparator) throws PortalException - Specified by:
getFileEntriesin interfaceDocumentRepository- Throws:
PortalException
-
getFileEntriesAndFileShortcuts
public List<RepositoryEntry> getFileEntriesAndFileShortcuts(long folderId, int status, int start, int end) throws PortalException - Specified by:
getFileEntriesAndFileShortcutsin interfaceDocumentRepository- Throws:
PortalException
-
getFileEntriesAndFileShortcutsCount
- Specified by:
getFileEntriesAndFileShortcutsCountin interfaceDocumentRepository- Throws:
PortalException
-
getFileEntriesCount
- Specified by:
getFileEntriesCountin interfaceDocumentRepository- Throws:
PortalException
-
getFileEntriesCount
- Specified by:
getFileEntriesCountin interfaceDocumentRepository- Throws:
PortalException
-
getFileEntry
- Specified by:
getFileEntryin interfaceDocumentRepository- Throws:
PortalException
-
getFileEntry
- Specified by:
getFileEntryin interfaceDocumentRepository- Throws:
PortalException
-
getFileEntryByFileName
- Specified by:
getFileEntryByFileNamein interfaceDocumentRepository- Throws:
PortalException
-
getFileEntryByUuid
- Specified by:
getFileEntryByUuidin interfaceDocumentRepository- Throws:
PortalException
-
getFileShortcut
- Specified by:
getFileShortcutin interfaceDocumentRepository- Throws:
PortalException
-
getFileVersion
- Specified by:
getFileVersionin interfaceDocumentRepository- Throws:
PortalException
-
getFolder
- Specified by:
getFolderin interfaceDocumentRepository- Throws:
PortalException
-
getFolder
- Specified by:
getFolderin interfaceDocumentRepository- Throws:
PortalException
-
getFolders
public List<Folder> getFolders(long parentFolderId, boolean includeMountFolders, int start, int end, OrderByComparator<Folder> orderByComparator) throws PortalException - Specified by:
getFoldersin interfaceDocumentRepository- Throws:
PortalException
-
getFolders
public List<Folder> getFolders(long parentFolderId, int status, boolean includeMountFolders, int start, int end, OrderByComparator<Folder> orderByComparator) throws PortalException - Specified by:
getFoldersin interfaceDocumentRepository- Throws:
PortalException
-
getFoldersAndFileEntriesAndFileShortcuts
public List<RepositoryEntry> getFoldersAndFileEntriesAndFileShortcuts(long folderId, int status, boolean includeMountFolders, int start, int end, OrderByComparator<?> orderByComparator) throws PortalException - Specified by:
getFoldersAndFileEntriesAndFileShortcutsin interfaceDocumentRepository- Throws:
PortalException
-
getFoldersAndFileEntriesAndFileShortcutsCount
public int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId, int status, boolean includeMountFolders) throws PortalException - Specified by:
getFoldersAndFileEntriesAndFileShortcutsCountin interfaceDocumentRepository- Throws:
PortalException
-
getFoldersCount
- Specified by:
getFoldersCountin interfaceDocumentRepository- Throws:
PortalException
-
getFoldersCount
public int getFoldersCount(long parentFolderId, int status, boolean includeMountfolders) throws PortalException - Specified by:
getFoldersCountin interfaceDocumentRepository- Throws:
PortalException
-
getRepositoryFileEntries
public List<FileEntry> getRepositoryFileEntries(long userId, long rootFolderId, int start, int end, OrderByComparator<FileEntry> orderByComparator) throws PortalException - Specified by:
getRepositoryFileEntriesin interfaceDocumentRepository- Throws:
PortalException
-
getRepositoryId
public long getRepositoryId()- Specified by:
getRepositoryIdin interfaceDocumentRepository
-
isCapabilityProvided
- Specified by:
isCapabilityProvidedin interfaceCapabilityProvider
-
moveFileEntry
public FileEntry moveFileEntry(long userId, long fileEntryId, long newFolderId, ServiceContext serviceContext) throws PortalException - Specified by:
moveFileEntryin interfaceDocumentRepository- Throws:
PortalException
-
moveFolder
public Folder moveFolder(long userId, long folderId, long parentFolderId, ServiceContext serviceContext) throws PortalException - Specified by:
moveFolderin interfaceDocumentRepository- Throws:
PortalException
-
revertFileEntry
public void revertFileEntry(long userId, long fileEntryId, String version, ServiceContext serviceContext) throws PortalException - Specified by:
revertFileEntryin interfaceDocumentRepository- Throws:
PortalException
-
updateFileEntry
public 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 - Specified by:
updateFileEntryin interfaceDocumentRepository- Throws:
PortalException
-
updateFileEntry
public 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 - Specified by:
updateFileEntryin interfaceDocumentRepository- Throws:
PortalException
-
updateFileShortcut
public FileShortcut updateFileShortcut(long userId, long fileShortcutId, long folderId, long toFileEntryId, ServiceContext serviceContext) throws PortalException - Specified by:
updateFileShortcutin interfaceDocumentRepository- Throws:
PortalException
-
updateFileShortcuts
public void updateFileShortcuts(long oldToFileEntryId, long newToFileEntryId) throws PortalException - Specified by:
updateFileShortcutsin interfaceDocumentRepository- Throws:
PortalException
-
updateFolder
public Folder updateFolder(long folderId, long parentFolderId, String name, String description, ServiceContext serviceContext) throws PortalException - Specified by:
updateFolderin interfaceDocumentRepository- Throws:
PortalException
-