com.liferay.portal.repository.liferayrepository
Class LiferayRepository
java.lang.Object
com.liferay.portal.repository.liferayrepository.util.LiferayBase
com.liferay.portal.repository.liferayrepository.LiferayRepositoryBase
com.liferay.portal.repository.liferayrepository.LiferayRepository
- All Implemented Interfaces:
- Repository
public class LiferayRepository
- extends LiferayRepositoryBase
- implements Repository
Fields inherited from class com.liferay.portal.repository.liferayrepository.LiferayRepositoryBase |
dlAppHelperLocalService, dlFileEntryLocalService, dlFileEntryService, dlFileEntryTypeLocalService, dlFileVersionLocalService, dlFileVersionService, dlFolderLocalService, dlFolderService, repositoryLocalService, repositoryService, resourceLocalService |
Constructor Summary |
LiferayRepository(RepositoryLocalService repositoryLocalService,
RepositoryService repositoryService,
DLAppHelperLocalService dlAppHelperLocalService,
DLFileEntryLocalService dlFileEntryLocalService,
DLFileEntryService dlFileEntryService,
DLFileEntryTypeLocalService dlFileEntryTypeLocalService,
DLFileVersionLocalService dlFileVersionLocalService,
DLFileVersionService dlFileVersionService,
DLFolderLocalService dlFolderLocalService,
DLFolderService dlFolderService,
ResourceLocalService resourceLocalService,
long repositoryId)
|
LiferayRepository(RepositoryLocalService repositoryLocalService,
RepositoryService repositoryService,
DLAppHelperLocalService dlAppHelperLocalService,
DLFileEntryLocalService dlFileEntryLocalService,
DLFileEntryService dlFileEntryService,
DLFileEntryTypeLocalService dlFileEntryTypeLocalService,
DLFileVersionLocalService dlFileVersionLocalService,
DLFileVersionService dlFileVersionService,
DLFolderLocalService dlFolderLocalService,
DLFolderService dlFolderService,
ResourceLocalService resourceLocalService,
long folderId,
long fileEntryId,
long fileVersionId)
|
Method Summary |
FileEntry |
addFileEntry(long folderId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
File file,
ServiceContext serviceContext)
|
FileEntry |
addFileEntry(long folderId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
InputStream is,
long size,
ServiceContext serviceContext)
|
Folder |
addFolder(long parentFolderId,
String title,
String description,
ServiceContext serviceContext)
|
FileVersion |
cancelCheckOut(long fileEntryId)
|
void |
checkInFileEntry(long fileEntryId,
boolean major,
String changeLog,
ServiceContext serviceContext)
|
void |
checkInFileEntry(long fileEntryId,
String lockUuid)
Deprecated. As of 6.2.0, replaced by checkInFileEntry(long,
String, ServiceContext) |
void |
checkInFileEntry(long fileEntryId,
String lockUuid,
ServiceContext serviceContext)
|
FileEntry |
checkOutFileEntry(long fileEntryId,
ServiceContext serviceContext)
|
FileEntry |
checkOutFileEntry(long fileEntryId,
String owner,
long expirationTime,
ServiceContext serviceContext)
|
FileEntry |
copyFileEntry(long groupId,
long fileEntryId,
long destFolderId,
ServiceContext serviceContext)
|
void |
deleteFileEntry(long fileEntryId)
|
void |
deleteFileEntry(long folderId,
String title)
|
void |
deleteFileVersion(long fileEntryId,
String version)
|
void |
deleteFolder(long folderId)
|
void |
deleteFolder(long parentFolderId,
String title)
|
List<FileEntry> |
getFileEntries(long folderId,
int start,
int end,
OrderByComparator obc)
|
List<FileEntry> |
getFileEntries(long folderId,
long fileEntryTypeId,
int start,
int end,
OrderByComparator obc)
|
List<FileEntry> |
getFileEntries(long folderId,
String[] mimeTypes,
int start,
int end,
OrderByComparator obc)
|
List<Object> |
getFileEntriesAndFileShortcuts(long folderId,
int status,
int start,
int end)
|
int |
getFileEntriesAndFileShortcutsCount(long folderId,
int status)
|
int |
getFileEntriesAndFileShortcutsCount(long folderId,
int status,
String[] mimeTypes)
|
int |
getFileEntriesCount(long folderId)
|
int |
getFileEntriesCount(long folderId,
long fileEntryTypeId)
|
int |
getFileEntriesCount(long folderId,
String[] mimeTypes)
|
FileEntry |
getFileEntry(long fileEntryId)
|
FileEntry |
getFileEntry(long folderId,
String title)
|
FileEntry |
getFileEntryByUuid(String uuid)
|
Lock |
getFileEntryLock(long fileEntryId)
|
FileVersion |
getFileVersion(long fileVersionId)
|
Folder |
getFolder(long folderId)
|
Folder |
getFolder(long parentFolderId,
String title)
|
List<Folder> |
getFolders(long parentFolderId,
boolean includeMountfolders,
int start,
int end,
OrderByComparator obc)
|
List<Folder> |
getFolders(long parentFolderId,
int status,
boolean includeMountfolders,
int start,
int end,
OrderByComparator obc)
|
List<Object> |
getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
boolean includeMountFolders,
int start,
int end,
OrderByComparator obc)
|
List<Object> |
getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
String[] mimeTypes,
boolean includeMountFolders,
int start,
int end,
OrderByComparator obc)
|
int |
getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
boolean includeMountFolders)
|
int |
getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
String[] mimeTypes,
boolean includeMountFolders)
|
int |
getFoldersCount(long parentFolderId,
boolean includeMountfolders)
|
int |
getFoldersCount(long parentFolderId,
int status,
boolean includeMountfolders)
|
int |
getFoldersFileEntriesCount(List<Long> folderIds,
int status)
|
List<Folder> |
getMountFolders(long parentFolderId,
int start,
int end,
OrderByComparator obc)
|
int |
getMountFoldersCount(long parentFolderId)
|
List<FileEntry> |
getRepositoryFileEntries(long userId,
long rootFolderId,
int start,
int end,
OrderByComparator obc)
|
List<FileEntry> |
getRepositoryFileEntries(long userId,
long rootFolderId,
String[] mimeTypes,
int status,
int start,
int end,
OrderByComparator obc)
|
int |
getRepositoryFileEntriesCount(long userId,
long rootFolderId)
|
int |
getRepositoryFileEntriesCount(long userId,
long rootFolderId,
String[] mimeTypes,
int status)
|
void |
getSubfolderIds(List<Long> folderIds,
long folderId)
|
List<Long> |
getSubfolderIds(long folderId,
boolean recurse)
|
protected void |
initByFileEntryId(long fileEntryId)
|
protected void |
initByFileVersionId(long fileVersionId)
|
protected void |
initByFolderId(long folderId)
|
protected void |
initByRepositoryId(long repositoryId)
|
Lock |
lockFileEntry(long fileEntryId)
Deprecated. As of 6.2.0, replaced by checkOutFileEntry(long,
ServiceContext) |
Lock |
lockFileEntry(long fileEntryId,
String owner,
long expirationTime)
Deprecated. As of 6.2.0, replaced by checkOutFileEntry(long,
String, long, ServiceContext) |
Lock |
lockFolder(long folderId)
|
Lock |
lockFolder(long folderId,
String owner,
boolean inheritable,
long expirationTime)
|
FileEntry |
moveFileEntry(long fileEntryId,
long newFolderId,
ServiceContext serviceContext)
|
Folder |
moveFolder(long folderId,
long parentFolderId,
ServiceContext serviceContext)
|
Lock |
refreshFileEntryLock(String lockUuid,
long companyId,
long expirationTime)
|
Lock |
refreshFolderLock(String lockUuid,
long companyId,
long expirationTime)
|
void |
revertFileEntry(long fileEntryId,
String version,
ServiceContext serviceContext)
|
Hits |
search(long creatorUserId,
int status,
int start,
int end)
|
Hits |
search(long creatorUserId,
long folderId,
String[] mimeTypes,
int status,
int start,
int end)
|
Hits |
search(SearchContext searchContext)
|
Hits |
search(SearchContext searchContext,
Query query)
|
void |
unlockFolder(long folderId,
String lockUuid)
|
void |
unlockFolder(long parentFolderId,
String title,
String lockUuid)
|
FileEntry |
updateFileEntry(long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
File file,
ServiceContext serviceContext)
|
FileEntry |
updateFileEntry(long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
InputStream is,
long size,
ServiceContext serviceContext)
|
Folder |
updateFolder(long folderId,
String title,
String description,
ServiceContext serviceContext)
|
boolean |
verifyFileEntryCheckOut(long fileEntryId,
String lockUuid)
|
boolean |
verifyFileEntryLock(long fileEntryId,
String lockUuid)
|
boolean |
verifyInheritableLock(long folderId,
String lockUuid)
|
Methods inherited from class com.liferay.portal.repository.liferayrepository.LiferayRepositoryBase |
addFileEntryResources, getDefaultFileEntryTypeId, getFieldsMap, getGroupId, getLongList, getRepositoryId, isDefaultRepository, setDlFolderId, setGroupId, setRepositoryId, toFolderId, toFolderIds |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LiferayRepository
public LiferayRepository(RepositoryLocalService repositoryLocalService,
RepositoryService repositoryService,
DLAppHelperLocalService dlAppHelperLocalService,
DLFileEntryLocalService dlFileEntryLocalService,
DLFileEntryService dlFileEntryService,
DLFileEntryTypeLocalService dlFileEntryTypeLocalService,
DLFileVersionLocalService dlFileVersionLocalService,
DLFileVersionService dlFileVersionService,
DLFolderLocalService dlFolderLocalService,
DLFolderService dlFolderService,
ResourceLocalService resourceLocalService,
long repositoryId)
LiferayRepository
public LiferayRepository(RepositoryLocalService repositoryLocalService,
RepositoryService repositoryService,
DLAppHelperLocalService dlAppHelperLocalService,
DLFileEntryLocalService dlFileEntryLocalService,
DLFileEntryService dlFileEntryService,
DLFileEntryTypeLocalService dlFileEntryTypeLocalService,
DLFileVersionLocalService dlFileVersionLocalService,
DLFileVersionService dlFileVersionService,
DLFolderLocalService dlFolderLocalService,
DLFolderService dlFolderService,
ResourceLocalService resourceLocalService,
long folderId,
long fileEntryId,
long fileVersionId)
throws PrincipalException
- Throws:
PrincipalException
addFileEntry
public FileEntry addFileEntry(long folderId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
File file,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Specified by:
addFileEntry
in interface Repository
- Throws:
PortalException
SystemException
addFileEntry
public FileEntry addFileEntry(long folderId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
InputStream is,
long size,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Specified by:
addFileEntry
in interface Repository
- Throws:
PortalException
SystemException
addFolder
public Folder addFolder(long parentFolderId,
String title,
String description,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Specified by:
addFolder
in interface Repository
- Throws:
PortalException
SystemException
cancelCheckOut
public FileVersion cancelCheckOut(long fileEntryId)
throws PortalException,
SystemException
- Specified by:
cancelCheckOut
in interface Repository
- Throws:
PortalException
SystemException
checkInFileEntry
public void checkInFileEntry(long fileEntryId,
boolean major,
String changeLog,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Specified by:
checkInFileEntry
in interface Repository
- Throws:
PortalException
SystemException
checkInFileEntry
public void checkInFileEntry(long fileEntryId,
String lockUuid)
throws PortalException,
SystemException
- Deprecated. As of 6.2.0, replaced by
checkInFileEntry(long,
String, ServiceContext)
- Specified by:
checkInFileEntry
in interface Repository
- Throws:
PortalException
SystemException
checkInFileEntry
public void checkInFileEntry(long fileEntryId,
String lockUuid,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Specified by:
checkInFileEntry
in interface Repository
- Throws:
PortalException
SystemException
checkOutFileEntry
public FileEntry checkOutFileEntry(long fileEntryId,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Specified by:
checkOutFileEntry
in interface Repository
- Throws:
PortalException
SystemException
checkOutFileEntry
public FileEntry checkOutFileEntry(long fileEntryId,
String owner,
long expirationTime,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Specified by:
checkOutFileEntry
in interface Repository
- Throws:
PortalException
SystemException
copyFileEntry
public FileEntry copyFileEntry(long groupId,
long fileEntryId,
long destFolderId,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Specified by:
copyFileEntry
in interface Repository
- Throws:
PortalException
SystemException
deleteFileEntry
public void deleteFileEntry(long fileEntryId)
throws PortalException,
SystemException
- Specified by:
deleteFileEntry
in interface Repository
- Throws:
PortalException
SystemException
deleteFileEntry
public void deleteFileEntry(long folderId,
String title)
throws PortalException,
SystemException
- Specified by:
deleteFileEntry
in interface Repository
- Throws:
PortalException
SystemException
deleteFileVersion
public void deleteFileVersion(long fileEntryId,
String version)
throws PortalException,
SystemException
- Specified by:
deleteFileVersion
in interface Repository
- Throws:
PortalException
SystemException
deleteFolder
public void deleteFolder(long folderId)
throws PortalException,
SystemException
- Specified by:
deleteFolder
in interface Repository
- Throws:
PortalException
SystemException
deleteFolder
public void deleteFolder(long parentFolderId,
String title)
throws PortalException,
SystemException
- Specified by:
deleteFolder
in interface Repository
- Throws:
PortalException
SystemException
getFileEntries
public List<FileEntry> getFileEntries(long folderId,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Specified by:
getFileEntries
in interface Repository
- Throws:
PortalException
SystemException
getFileEntries
public List<FileEntry> getFileEntries(long folderId,
long fileEntryTypeId,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Specified by:
getFileEntries
in interface Repository
- Throws:
PortalException
SystemException
getFileEntries
public List<FileEntry> getFileEntries(long folderId,
String[] mimeTypes,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Specified by:
getFileEntries
in interface Repository
- Throws:
PortalException
SystemException
getFileEntriesAndFileShortcuts
public List<Object> getFileEntriesAndFileShortcuts(long folderId,
int status,
int start,
int end)
throws PortalException,
SystemException
- Specified by:
getFileEntriesAndFileShortcuts
in interface Repository
- Throws:
PortalException
SystemException
getFileEntriesAndFileShortcutsCount
public int getFileEntriesAndFileShortcutsCount(long folderId,
int status)
throws PortalException,
SystemException
- Specified by:
getFileEntriesAndFileShortcutsCount
in interface Repository
- Throws:
PortalException
SystemException
getFileEntriesAndFileShortcutsCount
public int getFileEntriesAndFileShortcutsCount(long folderId,
int status,
String[] mimeTypes)
throws PortalException,
SystemException
- Specified by:
getFileEntriesAndFileShortcutsCount
in interface Repository
- Throws:
PortalException
SystemException
getFileEntriesCount
public int getFileEntriesCount(long folderId)
throws SystemException
- Specified by:
getFileEntriesCount
in interface Repository
- Throws:
SystemException
getFileEntriesCount
public int getFileEntriesCount(long folderId,
long fileEntryTypeId)
throws SystemException
- Specified by:
getFileEntriesCount
in interface Repository
- Throws:
SystemException
getFileEntriesCount
public int getFileEntriesCount(long folderId,
String[] mimeTypes)
throws SystemException
- Specified by:
getFileEntriesCount
in interface Repository
- Throws:
SystemException
getFileEntry
public FileEntry getFileEntry(long fileEntryId)
throws PortalException,
SystemException
- Specified by:
getFileEntry
in interface Repository
- Throws:
PortalException
SystemException
getFileEntry
public FileEntry getFileEntry(long folderId,
String title)
throws PortalException,
SystemException
- Specified by:
getFileEntry
in interface Repository
- Throws:
PortalException
SystemException
getFileEntryByUuid
public FileEntry getFileEntryByUuid(String uuid)
throws PortalException,
SystemException
- Specified by:
getFileEntryByUuid
in interface Repository
- Throws:
PortalException
SystemException
getFileEntryLock
public Lock getFileEntryLock(long fileEntryId)
getFileVersion
public FileVersion getFileVersion(long fileVersionId)
throws PortalException,
SystemException
- Specified by:
getFileVersion
in interface Repository
- Throws:
PortalException
SystemException
getFolder
public Folder getFolder(long folderId)
throws PortalException,
SystemException
- Specified by:
getFolder
in interface Repository
- Throws:
PortalException
SystemException
getFolder
public Folder getFolder(long parentFolderId,
String title)
throws PortalException,
SystemException
- Specified by:
getFolder
in interface Repository
- Throws:
PortalException
SystemException
getFolders
public List<Folder> getFolders(long parentFolderId,
boolean includeMountfolders,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Specified by:
getFolders
in interface Repository
- Throws:
PortalException
SystemException
getFolders
public List<Folder> getFolders(long parentFolderId,
int status,
boolean includeMountfolders,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Specified by:
getFolders
in interface Repository
- Throws:
PortalException
SystemException
getFoldersAndFileEntriesAndFileShortcuts
public List<Object> getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
boolean includeMountFolders,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Specified by:
getFoldersAndFileEntriesAndFileShortcuts
in interface Repository
- Throws:
PortalException
SystemException
getFoldersAndFileEntriesAndFileShortcuts
public List<Object> getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
String[] mimeTypes,
boolean includeMountFolders,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Specified by:
getFoldersAndFileEntriesAndFileShortcuts
in interface Repository
- Throws:
PortalException
SystemException
getFoldersAndFileEntriesAndFileShortcutsCount
public int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
boolean includeMountFolders)
throws PortalException,
SystemException
- Specified by:
getFoldersAndFileEntriesAndFileShortcutsCount
in interface Repository
- Throws:
PortalException
SystemException
getFoldersAndFileEntriesAndFileShortcutsCount
public int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
String[] mimeTypes,
boolean includeMountFolders)
throws PortalException,
SystemException
- Specified by:
getFoldersAndFileEntriesAndFileShortcutsCount
in interface Repository
- Throws:
PortalException
SystemException
getFoldersCount
public int getFoldersCount(long parentFolderId,
boolean includeMountfolders)
throws PortalException,
SystemException
- Specified by:
getFoldersCount
in interface Repository
- Throws:
PortalException
SystemException
getFoldersCount
public int getFoldersCount(long parentFolderId,
int status,
boolean includeMountfolders)
throws PortalException,
SystemException
- Specified by:
getFoldersCount
in interface Repository
- Throws:
PortalException
SystemException
getFoldersFileEntriesCount
public int getFoldersFileEntriesCount(List<Long> folderIds,
int status)
throws SystemException
- Specified by:
getFoldersFileEntriesCount
in interface Repository
- Throws:
SystemException
getMountFolders
public List<Folder> getMountFolders(long parentFolderId,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Specified by:
getMountFolders
in interface Repository
- Throws:
PortalException
SystemException
getMountFoldersCount
public int getMountFoldersCount(long parentFolderId)
throws PortalException,
SystemException
- Specified by:
getMountFoldersCount
in interface Repository
- Throws:
PortalException
SystemException
getRepositoryFileEntries
public List<FileEntry> getRepositoryFileEntries(long userId,
long rootFolderId,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Specified by:
getRepositoryFileEntries
in interface Repository
- Throws:
PortalException
SystemException
getRepositoryFileEntries
public List<FileEntry> getRepositoryFileEntries(long userId,
long rootFolderId,
String[] mimeTypes,
int status,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Specified by:
getRepositoryFileEntries
in interface Repository
- Throws:
PortalException
SystemException
getRepositoryFileEntriesCount
public int getRepositoryFileEntriesCount(long userId,
long rootFolderId)
throws PortalException,
SystemException
- Specified by:
getRepositoryFileEntriesCount
in interface Repository
- Throws:
PortalException
SystemException
getRepositoryFileEntriesCount
public int getRepositoryFileEntriesCount(long userId,
long rootFolderId,
String[] mimeTypes,
int status)
throws PortalException,
SystemException
- Specified by:
getRepositoryFileEntriesCount
in interface Repository
- Throws:
PortalException
SystemException
getSubfolderIds
public void getSubfolderIds(List<Long> folderIds,
long folderId)
throws PortalException,
SystemException
- Specified by:
getSubfolderIds
in interface Repository
- Throws:
PortalException
SystemException
getSubfolderIds
public List<Long> getSubfolderIds(long folderId,
boolean recurse)
throws PortalException,
SystemException
- Specified by:
getSubfolderIds
in interface Repository
- Throws:
PortalException
SystemException
lockFileEntry
public Lock lockFileEntry(long fileEntryId)
throws PortalException,
SystemException
- Deprecated. As of 6.2.0, replaced by
checkOutFileEntry(long,
ServiceContext)
- Specified by:
lockFileEntry
in interface Repository
- Throws:
PortalException
SystemException
lockFileEntry
public Lock lockFileEntry(long fileEntryId,
String owner,
long expirationTime)
throws PortalException,
SystemException
- Deprecated. As of 6.2.0, replaced by
checkOutFileEntry(long,
String, long, ServiceContext)
- Specified by:
lockFileEntry
in interface Repository
- Throws:
PortalException
SystemException
lockFolder
public Lock lockFolder(long folderId)
throws PortalException,
SystemException
- Specified by:
lockFolder
in interface Repository
- Throws:
PortalException
SystemException
lockFolder
public Lock lockFolder(long folderId,
String owner,
boolean inheritable,
long expirationTime)
throws PortalException,
SystemException
- Specified by:
lockFolder
in interface Repository
- Throws:
PortalException
SystemException
moveFileEntry
public FileEntry moveFileEntry(long fileEntryId,
long newFolderId,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Specified by:
moveFileEntry
in interface Repository
- Throws:
PortalException
SystemException
moveFolder
public Folder moveFolder(long folderId,
long parentFolderId,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Specified by:
moveFolder
in interface Repository
- Throws:
PortalException
SystemException
refreshFileEntryLock
public Lock refreshFileEntryLock(String lockUuid,
long companyId,
long expirationTime)
throws PortalException,
SystemException
- Specified by:
refreshFileEntryLock
in interface Repository
- Throws:
PortalException
SystemException
refreshFolderLock
public Lock refreshFolderLock(String lockUuid,
long companyId,
long expirationTime)
throws PortalException,
SystemException
- Specified by:
refreshFolderLock
in interface Repository
- Throws:
PortalException
SystemException
revertFileEntry
public void revertFileEntry(long fileEntryId,
String version,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Specified by:
revertFileEntry
in interface Repository
- Throws:
PortalException
SystemException
search
public Hits search(long creatorUserId,
int status,
int start,
int end)
throws PortalException,
SystemException
- Specified by:
search
in interface Repository
- Throws:
PortalException
SystemException
search
public Hits search(long creatorUserId,
long folderId,
String[] mimeTypes,
int status,
int start,
int end)
throws PortalException,
SystemException
- Specified by:
search
in interface Repository
- Throws:
PortalException
SystemException
search
public Hits search(SearchContext searchContext)
throws SearchException
- Specified by:
search
in interface Repository
- Throws:
SearchException
search
public Hits search(SearchContext searchContext,
Query query)
throws SearchException
- Specified by:
search
in interface Repository
- Throws:
SearchException
unlockFolder
public void unlockFolder(long folderId,
String lockUuid)
throws PortalException,
SystemException
- Specified by:
unlockFolder
in interface Repository
- Throws:
PortalException
SystemException
unlockFolder
public void unlockFolder(long parentFolderId,
String title,
String lockUuid)
throws PortalException,
SystemException
- Specified by:
unlockFolder
in interface Repository
- Throws:
PortalException
SystemException
updateFileEntry
public FileEntry updateFileEntry(long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
File file,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Specified by:
updateFileEntry
in interface Repository
- Throws:
PortalException
SystemException
updateFileEntry
public FileEntry updateFileEntry(long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
InputStream is,
long size,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Specified by:
updateFileEntry
in interface Repository
- Throws:
PortalException
SystemException
updateFolder
public Folder updateFolder(long folderId,
String title,
String description,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Specified by:
updateFolder
in interface Repository
- Throws:
PortalException
SystemException
verifyFileEntryCheckOut
public boolean verifyFileEntryCheckOut(long fileEntryId,
String lockUuid)
throws PortalException,
SystemException
- Specified by:
verifyFileEntryCheckOut
in interface Repository
- Throws:
PortalException
SystemException
verifyFileEntryLock
public boolean verifyFileEntryLock(long fileEntryId,
String lockUuid)
throws PortalException,
SystemException
- Specified by:
verifyFileEntryLock
in interface Repository
- Throws:
PortalException
SystemException
verifyInheritableLock
public boolean verifyInheritableLock(long folderId,
String lockUuid)
throws PortalException,
SystemException
- Specified by:
verifyInheritableLock
in interface Repository
- Throws:
PortalException
SystemException
initByFileEntryId
protected void initByFileEntryId(long fileEntryId)
throws PrincipalException
- Specified by:
initByFileEntryId
in class LiferayRepositoryBase
- Throws:
PrincipalException
initByFileVersionId
protected void initByFileVersionId(long fileVersionId)
throws PrincipalException
- Specified by:
initByFileVersionId
in class LiferayRepositoryBase
- Throws:
PrincipalException
initByFolderId
protected void initByFolderId(long folderId)
throws PrincipalException
- Specified by:
initByFolderId
in class LiferayRepositoryBase
- Throws:
PrincipalException
initByRepositoryId
protected void initByRepositoryId(long repositoryId)
- Specified by:
initByRepositoryId
in class LiferayRepositoryBase