com.liferay.portal.repository.proxy
Class LocalRepositoryProxyBean
java.lang.Object
com.liferay.portal.repository.proxy.RepositoryModelProxyBean
com.liferay.portal.repository.proxy.LocalRepositoryProxyBean
- All Implemented Interfaces:
- CapabilityProvider, DocumentRepository, LocalRepository
public class LocalRepositoryProxyBean
- extends RepositoryModelProxyBean
- implements LocalRepository
|
Method Summary |
FileEntry |
addFileEntry(long userId,
long folderId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
File file,
ServiceContext serviceContext)
|
FileEntry |
addFileEntry(long userId,
long folderId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
InputStream is,
long size,
ServiceContext serviceContext)
|
FileShortcut |
addFileShortcut(long userId,
long folderId,
long toFileEntryId,
ServiceContext serviceContext)
|
Folder |
addFolder(long userId,
long parentFolderId,
String name,
String description,
ServiceContext serviceContext)
|
void |
checkInFileEntry(long userId,
long fileEntryId,
boolean major,
String changeLog,
ServiceContext serviceContext)
|
void |
checkInFileEntry(long userId,
long fileEntryId,
String lockUuid,
ServiceContext serviceContext)
|
FileEntry |
copyFileEntry(long userId,
long groupId,
long fileEntryId,
long destFolderId,
ServiceContext serviceContext)
|
void |
deleteAll()
|
void |
deleteFileEntry(long fileEntryId)
|
void |
deleteFileShortcut(long fileShortcutId)
|
void |
deleteFileShortcuts(long toFileEntryId)
|
void |
deleteFolder(long folderId)
|
|
getCapability(Class<T> capabilityClass)
|
List<FileEntry> |
getFileEntries(long folderId,
int status,
int start,
int end,
OrderByComparator<FileEntry> obc)
|
List<FileEntry> |
getFileEntries(long folderId,
int start,
int end,
OrderByComparator<FileEntry> obc)
|
List<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)
|
FileEntry |
getFileEntry(long fileEntryId)
|
FileEntry |
getFileEntry(long folderId,
String title)
|
FileEntry |
getFileEntryByUuid(String uuid)
|
FileShortcut |
getFileShortcut(long fileShortcutId)
|
FileVersion |
getFileVersion(long fileVersionId)
|
Folder |
getFolder(long folderId)
|
Folder |
getFolder(long parentFolderId,
String name)
|
List<Folder> |
getFolders(long parentFolderId,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<Folder> obc)
|
List<Folder> |
getFolders(long parentFolderId,
int status,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<Folder> obc)
|
List<RepositoryEntry> |
getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<?> obc)
|
int |
getFoldersCount(long parentFolderId,
boolean includeMountfolders)
|
int |
getFoldersCount(long parentFolderId,
int status,
boolean includeMountfolders)
|
List<FileEntry> |
getRepositoryFileEntries(long userId,
long rootFolderId,
int start,
int end,
OrderByComparator<FileEntry> obc)
|
long |
getRepositoryId()
|
|
isCapabilityProvided(Class<T> capabilityClass)
|
FileEntry |
moveFileEntry(long userId,
long fileEntryId,
long newFolderId,
ServiceContext serviceContext)
|
Folder |
moveFolder(long userId,
long folderId,
long parentFolderId,
ServiceContext serviceContext)
|
void |
revertFileEntry(long userId,
long fileEntryId,
String version,
ServiceContext serviceContext)
|
void |
updateAsset(long userId,
FileEntry fileEntry,
FileVersion fileVersion,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds)
Deprecated. As of 7.0.0, with no direct replacement |
FileEntry |
updateFileEntry(long userId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
File file,
ServiceContext serviceContext)
|
FileEntry |
updateFileEntry(long userId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
InputStream is,
long size,
ServiceContext serviceContext)
|
FileShortcut |
updateFileShortcut(long userId,
long fileShortcutId,
long folderId,
long toFileEntryId,
ServiceContext serviceContext)
|
void |
updateFileShortcuts(long oldToFileEntryId,
long newToFileEntryId)
|
Folder |
updateFolder(long folderId,
long parentFolderId,
String name,
String description,
ServiceContext serviceContext)
|
| Methods inherited from class com.liferay.portal.repository.proxy.RepositoryModelProxyBean |
newFileEntryProxyBean, newFileShortcutProxyBean, newFileVersionProxyBean, newFolderProxyBean, newLocalRepositoryProxyBean, newProxyBean, newProxyInstance, toFileEntryProxyBeans, toFileVersionProxyBeans, toFolderProxyBeans, toObjectProxyBeans |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalRepositoryProxyBean
public LocalRepositoryProxyBean(LocalRepository localRepository,
ClassLoader classLoader)
addFileEntry
public FileEntry addFileEntry(long userId,
long folderId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
File file,
ServiceContext serviceContext)
throws PortalException
- Specified by:
addFileEntry in interface DocumentRepository
- Throws:
PortalException
addFileEntry
public FileEntry addFileEntry(long userId,
long folderId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
InputStream is,
long size,
ServiceContext serviceContext)
throws PortalException
- Specified by:
addFileEntry in interface DocumentRepository
- Throws:
PortalException
addFileShortcut
public FileShortcut addFileShortcut(long userId,
long folderId,
long toFileEntryId,
ServiceContext serviceContext)
throws PortalException
- Specified by:
addFileShortcut in interface DocumentRepository
- Throws:
PortalException
addFolder
public Folder addFolder(long userId,
long parentFolderId,
String name,
String description,
ServiceContext serviceContext)
throws PortalException
- Specified by:
addFolder in interface DocumentRepository
- Throws:
PortalException
checkInFileEntry
public void checkInFileEntry(long userId,
long fileEntryId,
boolean major,
String changeLog,
ServiceContext serviceContext)
throws PortalException
- Specified by:
checkInFileEntry in interface DocumentRepository
- Throws:
PortalException
checkInFileEntry
public void checkInFileEntry(long userId,
long fileEntryId,
String lockUuid,
ServiceContext serviceContext)
throws PortalException
- Specified by:
checkInFileEntry in interface DocumentRepository
- Throws:
PortalException
copyFileEntry
public FileEntry copyFileEntry(long userId,
long groupId,
long fileEntryId,
long destFolderId,
ServiceContext serviceContext)
throws PortalException
- Specified by:
copyFileEntry in interface DocumentRepository
- Throws:
PortalException
deleteAll
public void deleteAll()
throws PortalException
- Specified by:
deleteAll in interface DocumentRepository
- Throws:
PortalException
deleteFileEntry
public void deleteFileEntry(long fileEntryId)
throws PortalException
- Specified by:
deleteFileEntry in interface DocumentRepository
- Throws:
PortalException
deleteFileShortcut
public void deleteFileShortcut(long fileShortcutId)
throws PortalException
- Specified by:
deleteFileShortcut in interface DocumentRepository
- Throws:
PortalException
deleteFileShortcuts
public void deleteFileShortcuts(long toFileEntryId)
throws PortalException
- Specified by:
deleteFileShortcuts in interface DocumentRepository
- Throws:
PortalException
deleteFolder
public void deleteFolder(long folderId)
throws PortalException
- Specified by:
deleteFolder in interface DocumentRepository
- Throws:
PortalException
getCapability
public <T extends Capability> T getCapability(Class<T> capabilityClass)
- Specified by:
getCapability in interface CapabilityProvider
getFileEntries
public List<FileEntry> getFileEntries(long folderId,
int status,
int start,
int end,
OrderByComparator<FileEntry> obc)
throws PortalException
- Specified by:
getFileEntries in interface DocumentRepository
- Throws:
PortalException
getFileEntries
public List<FileEntry> getFileEntries(long folderId,
int start,
int end,
OrderByComparator<FileEntry> obc)
throws PortalException
- Specified by:
getFileEntries in interface DocumentRepository
- Throws:
PortalException
getFileEntriesAndFileShortcuts
public List<RepositoryEntry> getFileEntriesAndFileShortcuts(long folderId,
int status,
int start,
int end)
throws PortalException
- Specified by:
getFileEntriesAndFileShortcuts in interface DocumentRepository
- Throws:
PortalException
getFileEntriesAndFileShortcutsCount
public int getFileEntriesAndFileShortcutsCount(long folderId,
int status)
throws PortalException
- Specified by:
getFileEntriesAndFileShortcutsCount in interface DocumentRepository
- Throws:
PortalException
getFileEntriesCount
public int getFileEntriesCount(long folderId)
throws PortalException
- Specified by:
getFileEntriesCount in interface DocumentRepository
- Throws:
PortalException
getFileEntriesCount
public int getFileEntriesCount(long folderId,
int status)
throws PortalException
- Specified by:
getFileEntriesCount in interface DocumentRepository
- Throws:
PortalException
getFileEntry
public FileEntry getFileEntry(long fileEntryId)
throws PortalException
- Specified by:
getFileEntry in interface DocumentRepository
- Throws:
PortalException
getFileEntry
public FileEntry getFileEntry(long folderId,
String title)
throws PortalException
- Specified by:
getFileEntry in interface DocumentRepository
- Throws:
PortalException
getFileEntryByUuid
public FileEntry getFileEntryByUuid(String uuid)
throws PortalException
- Specified by:
getFileEntryByUuid in interface DocumentRepository
- Throws:
PortalException
getFileShortcut
public FileShortcut getFileShortcut(long fileShortcutId)
throws PortalException
- Specified by:
getFileShortcut in interface DocumentRepository
- Throws:
PortalException
getFileVersion
public FileVersion getFileVersion(long fileVersionId)
throws PortalException
- Specified by:
getFileVersion in interface DocumentRepository
- Throws:
PortalException
getFolder
public Folder getFolder(long folderId)
throws PortalException
- Specified by:
getFolder in interface DocumentRepository
- Throws:
PortalException
getFolder
public Folder getFolder(long parentFolderId,
String name)
throws PortalException
- Specified by:
getFolder in interface DocumentRepository
- Throws:
PortalException
getFolders
public List<Folder> getFolders(long parentFolderId,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<Folder> obc)
throws PortalException
- Specified by:
getFolders in interface DocumentRepository
- Throws:
PortalException
getFolders
public List<Folder> getFolders(long parentFolderId,
int status,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<Folder> obc)
throws PortalException
- Specified by:
getFolders in interface DocumentRepository
- Throws:
PortalException
getFoldersAndFileEntriesAndFileShortcuts
public List<RepositoryEntry> getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<?> obc)
throws PortalException
- Specified by:
getFoldersAndFileEntriesAndFileShortcuts in interface DocumentRepository
- Throws:
PortalException
getFoldersCount
public int getFoldersCount(long parentFolderId,
boolean includeMountfolders)
throws PortalException
- Specified by:
getFoldersCount in interface DocumentRepository
- Throws:
PortalException
getFoldersCount
public int getFoldersCount(long parentFolderId,
int status,
boolean includeMountfolders)
throws PortalException
- Specified by:
getFoldersCount in interface DocumentRepository
- Throws:
PortalException
getRepositoryFileEntries
public List<FileEntry> getRepositoryFileEntries(long userId,
long rootFolderId,
int start,
int end,
OrderByComparator<FileEntry> obc)
throws PortalException
- Specified by:
getRepositoryFileEntries in interface DocumentRepository
- Throws:
PortalException
getRepositoryId
public long getRepositoryId()
- Specified by:
getRepositoryId in interface DocumentRepository
isCapabilityProvided
public <T extends Capability> boolean isCapabilityProvided(Class<T> capabilityClass)
- Specified by:
isCapabilityProvided in interface CapabilityProvider
moveFileEntry
public FileEntry moveFileEntry(long userId,
long fileEntryId,
long newFolderId,
ServiceContext serviceContext)
throws PortalException
- Specified by:
moveFileEntry in interface DocumentRepository
- Throws:
PortalException
moveFolder
public Folder moveFolder(long userId,
long folderId,
long parentFolderId,
ServiceContext serviceContext)
throws PortalException
- Specified by:
moveFolder in interface DocumentRepository
- Throws:
PortalException
revertFileEntry
public void revertFileEntry(long userId,
long fileEntryId,
String version,
ServiceContext serviceContext)
throws PortalException
- Specified by:
revertFileEntry in interface DocumentRepository
- Throws:
PortalException
updateAsset
@Deprecated
public void updateAsset(long userId,
FileEntry fileEntry,
FileVersion fileVersion,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds)
throws PortalException
- Deprecated. As of 7.0.0, with no direct replacement
- Specified by:
updateAsset in interface LocalRepository
- Throws:
PortalException
updateFileEntry
public FileEntry updateFileEntry(long userId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
File file,
ServiceContext serviceContext)
throws PortalException
- Specified by:
updateFileEntry in interface DocumentRepository
- Throws:
PortalException
updateFileEntry
public FileEntry updateFileEntry(long userId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
InputStream is,
long size,
ServiceContext serviceContext)
throws PortalException
- Specified by:
updateFileEntry in interface DocumentRepository
- Throws:
PortalException
updateFileShortcut
public FileShortcut updateFileShortcut(long userId,
long fileShortcutId,
long folderId,
long toFileEntryId,
ServiceContext serviceContext)
throws PortalException
- Specified by:
updateFileShortcut in interface DocumentRepository
- Throws:
PortalException
updateFileShortcuts
public void updateFileShortcuts(long oldToFileEntryId,
long newToFileEntryId)
throws PortalException
- Specified by:
updateFileShortcuts in interface DocumentRepository
- Throws:
PortalException
updateFolder
public Folder updateFolder(long folderId,
long parentFolderId,
String name,
String description,
ServiceContext serviceContext)
throws PortalException
- Specified by:
updateFolder in interface DocumentRepository
- Throws:
PortalException