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:
- com.liferay.portal.kernel.repository.Repository
public class LiferayRepository
- extends LiferayRepositoryBase
- implements com.liferay.portal.kernel.repository.Repository
- Author:
- Alexander Chow
|
Constructor Summary |
LiferayRepository(com.liferay.portal.service.RepositoryLocalService repositoryLocalService,
com.liferay.portal.service.RepositoryService repositoryService,
com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService dlAppHelperLocalService,
com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService dlFileEntryLocalService,
com.liferay.portlet.documentlibrary.service.DLFileEntryService dlFileEntryService,
com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService dlFileVersionLocalService,
com.liferay.portlet.documentlibrary.service.DLFileVersionService dlFileVersionService,
com.liferay.portlet.documentlibrary.service.DLFolderLocalService dlFolderLocalService,
com.liferay.portlet.documentlibrary.service.DLFolderService dlFolderService,
long repositoryId)
|
LiferayRepository(com.liferay.portal.service.RepositoryLocalService repositoryLocalService,
com.liferay.portal.service.RepositoryService repositoryService,
com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService dlAppHelperLocalService,
com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService dlFileEntryLocalService,
com.liferay.portlet.documentlibrary.service.DLFileEntryService dlFileEntryService,
com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService dlFileVersionLocalService,
com.liferay.portlet.documentlibrary.service.DLFileVersionService dlFileVersionService,
com.liferay.portlet.documentlibrary.service.DLFolderLocalService dlFolderLocalService,
com.liferay.portlet.documentlibrary.service.DLFolderService dlFolderService,
long folderId,
long fileEntryId,
long fileVersionId)
|
|
Method Summary |
com.liferay.portal.kernel.repository.model.FileEntry |
addFileEntry(long folderId,
java.lang.String sourceFileName,
java.lang.String mimeType,
java.lang.String title,
java.lang.String description,
java.lang.String changeLog,
java.io.File file,
com.liferay.portal.service.ServiceContext serviceContext)
|
com.liferay.portal.kernel.repository.model.FileEntry |
addFileEntry(long folderId,
java.lang.String sourceFileName,
java.lang.String mimeType,
java.lang.String title,
java.lang.String description,
java.lang.String changeLog,
java.io.InputStream is,
long size,
com.liferay.portal.service.ServiceContext serviceContext)
|
com.liferay.portal.kernel.repository.model.Folder |
addFolder(long parentFolderId,
java.lang.String title,
java.lang.String description,
com.liferay.portal.service.ServiceContext serviceContext)
|
void |
cancelCheckOut(long fileEntryId)
|
void |
checkInFileEntry(long fileEntryId,
boolean major,
java.lang.String changeLog,
com.liferay.portal.service.ServiceContext serviceContext)
|
void |
checkInFileEntry(long fileEntryId,
java.lang.String lockUuid)
|
com.liferay.portal.kernel.repository.model.FileEntry |
checkOutFileEntry(long fileEntryId)
|
com.liferay.portal.kernel.repository.model.FileEntry |
checkOutFileEntry(long fileEntryId,
java.lang.String owner,
long expirationTime)
|
com.liferay.portal.kernel.repository.model.FileEntry |
copyFileEntry(long groupId,
long fileEntryId,
long destFolderId,
com.liferay.portal.service.ServiceContext serviceContext)
|
void |
deleteFileEntry(long fileEntryId)
|
void |
deleteFileEntry(long folderId,
java.lang.String title)
|
void |
deleteFolder(long folderId)
|
void |
deleteFolder(long parentFolderId,
java.lang.String title)
|
java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> |
getFileEntries(long folderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> |
getFileEntries(long folderId,
long fileEntryTypeId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> |
getFileEntries(long folderId,
java.lang.String[] mimeTypes,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<java.lang.Object> |
getFileEntriesAndFileShortcuts(long folderId,
int status,
int start,
int end)
|
int |
getFileEntriesAndFileShortcutsCount(long folderId,
int status)
|
int |
getFileEntriesAndFileShortcutsCount(long folderId,
int status,
java.lang.String[] mimeTypes)
|
int |
getFileEntriesCount(long folderId)
|
int |
getFileEntriesCount(long folderId,
long fileEntryTypeId)
|
int |
getFileEntriesCount(long folderId,
java.lang.String[] mimeTypes)
|
com.liferay.portal.kernel.repository.model.FileEntry |
getFileEntry(long fileEntryId)
|
com.liferay.portal.kernel.repository.model.FileEntry |
getFileEntry(long folderId,
java.lang.String title)
|
com.liferay.portal.kernel.repository.model.FileEntry |
getFileEntryByUuid(java.lang.String uuid)
|
com.liferay.portal.model.Lock |
getFileEntryLock(long fileEntryId)
|
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 |
getFolder(long parentFolderId,
java.lang.String title)
|
java.util.List<com.liferay.portal.kernel.repository.model.Folder> |
getFolders(long parentFolderId,
boolean includeMountfolders,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<java.lang.Object> |
getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
boolean includeMountFolders,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<java.lang.Object> |
getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
java.lang.String[] mimeTypes,
boolean includeMountFolders,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
int |
getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
boolean includeMountFolders)
|
int |
getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
java.lang.String[] mimeTypes,
boolean includeMountFolders)
|
int |
getFoldersCount(long parentFolderId)
|
int |
getFoldersCount(long parentFolderId,
boolean includeMountfolders)
|
int |
getFoldersFileEntriesCount(java.util.List<java.lang.Long> folderIds,
int status)
|
java.util.List<com.liferay.portal.kernel.repository.model.Folder> |
getMountFolders(long parentFolderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
int |
getMountFoldersCount(long parentFolderId)
|
java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> |
getRepositoryFileEntries(long userId,
long rootFolderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> |
getRepositoryFileEntries(long userId,
long rootFolderId,
java.lang.String[] mimeTypes,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
int |
getRepositoryFileEntriesCount(long userId,
long rootFolderId)
|
int |
getRepositoryFileEntriesCount(long userId,
long rootFolderId,
java.lang.String[] mimeTypes,
int status)
|
void |
getSubfolderIds(java.util.List<java.lang.Long> folderIds,
long folderId)
|
java.util.List<java.lang.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)
|
com.liferay.portal.model.Lock |
lockFileEntry(long fileEntryId)
|
com.liferay.portal.model.Lock |
lockFileEntry(long fileEntryId,
java.lang.String owner,
long expirationTime)
|
com.liferay.portal.model.Lock |
lockFolder(long folderId)
|
com.liferay.portal.model.Lock |
lockFolder(long folderId,
java.lang.String owner,
boolean inheritable,
long expirationTime)
|
com.liferay.portal.kernel.repository.model.FileEntry |
moveFileEntry(long fileEntryId,
long newFolderId,
com.liferay.portal.service.ServiceContext serviceContext)
|
com.liferay.portal.kernel.repository.model.Folder |
moveFolder(long folderId,
long parentFolderId,
com.liferay.portal.service.ServiceContext serviceContext)
|
com.liferay.portal.model.Lock |
refreshFileEntryLock(java.lang.String lockUuid,
long expirationTime)
|
com.liferay.portal.model.Lock |
refreshFolderLock(java.lang.String lockUuid,
long expirationTime)
|
void |
revertFileEntry(long fileEntryId,
java.lang.String version,
com.liferay.portal.service.ServiceContext serviceContext)
|
com.liferay.portal.kernel.search.Hits |
search(com.liferay.portal.kernel.search.SearchContext searchContext)
|
com.liferay.portal.kernel.search.Hits |
search(com.liferay.portal.kernel.search.SearchContext searchContext,
com.liferay.portal.kernel.search.Query query)
|
void |
unlockFileEntry(long fileEntryId)
|
void |
unlockFileEntry(long fileEntryId,
java.lang.String lockUuid)
|
void |
unlockFolder(long folderId,
java.lang.String lockUuid)
|
void |
unlockFolder(long parentFolderId,
java.lang.String title,
java.lang.String lockUuid)
|
com.liferay.portal.kernel.repository.model.FileEntry |
updateFileEntry(long fileEntryId,
java.lang.String sourceFileName,
java.lang.String mimeType,
java.lang.String title,
java.lang.String description,
java.lang.String changeLog,
boolean majorVersion,
java.io.File file,
com.liferay.portal.service.ServiceContext serviceContext)
|
com.liferay.portal.kernel.repository.model.FileEntry |
updateFileEntry(long fileEntryId,
java.lang.String sourceFileName,
java.lang.String mimeType,
java.lang.String title,
java.lang.String description,
java.lang.String changeLog,
boolean majorVersion,
java.io.InputStream is,
long size,
com.liferay.portal.service.ServiceContext serviceContext)
|
com.liferay.portal.kernel.repository.model.Folder |
updateFolder(long folderId,
java.lang.String title,
java.lang.String description,
com.liferay.portal.service.ServiceContext serviceContext)
|
boolean |
verifyFileEntryCheckOut(long fileEntryId,
java.lang.String lockUuid)
|
boolean |
verifyFileEntryLock(long fileEntryId,
java.lang.String lockUuid)
|
boolean |
verifyInheritableLock(long folderId,
java.lang.String lockUuid)
|
| Methods inherited from class com.liferay.portal.repository.liferayrepository.LiferayRepositoryBase |
addFileEntryResources, 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 |
| Methods inherited from interface com.liferay.portal.kernel.repository.Repository |
getRepositoryId |
LiferayRepository
public LiferayRepository(com.liferay.portal.service.RepositoryLocalService repositoryLocalService,
com.liferay.portal.service.RepositoryService repositoryService,
com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService dlAppHelperLocalService,
com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService dlFileEntryLocalService,
com.liferay.portlet.documentlibrary.service.DLFileEntryService dlFileEntryService,
com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService dlFileVersionLocalService,
com.liferay.portlet.documentlibrary.service.DLFileVersionService dlFileVersionService,
com.liferay.portlet.documentlibrary.service.DLFolderLocalService dlFolderLocalService,
com.liferay.portlet.documentlibrary.service.DLFolderService dlFolderService,
long repositoryId)
LiferayRepository
public LiferayRepository(com.liferay.portal.service.RepositoryLocalService repositoryLocalService,
com.liferay.portal.service.RepositoryService repositoryService,
com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService dlAppHelperLocalService,
com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService dlFileEntryLocalService,
com.liferay.portlet.documentlibrary.service.DLFileEntryService dlFileEntryService,
com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService dlFileVersionLocalService,
com.liferay.portlet.documentlibrary.service.DLFileVersionService dlFileVersionService,
com.liferay.portlet.documentlibrary.service.DLFolderLocalService dlFolderLocalService,
com.liferay.portlet.documentlibrary.service.DLFolderService dlFolderService,
long folderId,
long fileEntryId,
long fileVersionId)
addFileEntry
public com.liferay.portal.kernel.repository.model.FileEntry addFileEntry(long folderId,
java.lang.String sourceFileName,
java.lang.String mimeType,
java.lang.String title,
java.lang.String description,
java.lang.String changeLog,
java.io.File file,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
addFileEntry in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
addFileEntry
public com.liferay.portal.kernel.repository.model.FileEntry addFileEntry(long folderId,
java.lang.String sourceFileName,
java.lang.String mimeType,
java.lang.String title,
java.lang.String description,
java.lang.String changeLog,
java.io.InputStream is,
long size,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
addFileEntry in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
addFolder
public com.liferay.portal.kernel.repository.model.Folder addFolder(long parentFolderId,
java.lang.String title,
java.lang.String description,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
addFolder in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
cancelCheckOut
public void cancelCheckOut(long fileEntryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
cancelCheckOut in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
checkInFileEntry
public void checkInFileEntry(long fileEntryId,
boolean major,
java.lang.String changeLog,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
checkInFileEntry in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
checkInFileEntry
public void checkInFileEntry(long fileEntryId,
java.lang.String lockUuid)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
checkInFileEntry in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
checkOutFileEntry
public com.liferay.portal.kernel.repository.model.FileEntry checkOutFileEntry(long fileEntryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
checkOutFileEntry in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
checkOutFileEntry
public com.liferay.portal.kernel.repository.model.FileEntry checkOutFileEntry(long fileEntryId,
java.lang.String owner,
long expirationTime)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
checkOutFileEntry in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
copyFileEntry
public com.liferay.portal.kernel.repository.model.FileEntry copyFileEntry(long groupId,
long fileEntryId,
long destFolderId,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
copyFileEntry in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
deleteFileEntry
public void deleteFileEntry(long fileEntryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
deleteFileEntry in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
deleteFileEntry
public void deleteFileEntry(long folderId,
java.lang.String title)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
deleteFileEntry in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
deleteFolder
public void deleteFolder(long folderId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
deleteFolder in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
deleteFolder
public void deleteFolder(long parentFolderId,
java.lang.String title)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
deleteFolder in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFileEntries
public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries(long folderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFileEntries in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFileEntries
public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries(long folderId,
long fileEntryTypeId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFileEntries in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFileEntries
public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries(long folderId,
java.lang.String[] mimeTypes,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFileEntries in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFileEntriesAndFileShortcuts
public java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(long folderId,
int status,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFileEntriesAndFileShortcuts in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFileEntriesAndFileShortcutsCount
public int getFileEntriesAndFileShortcutsCount(long folderId,
int status)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFileEntriesAndFileShortcutsCount in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFileEntriesAndFileShortcutsCount
public int getFileEntriesAndFileShortcutsCount(long folderId,
int status,
java.lang.String[] mimeTypes)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFileEntriesAndFileShortcutsCount in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFileEntriesCount
public int getFileEntriesCount(long folderId)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFileEntriesCount in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFileEntriesCount
public int getFileEntriesCount(long folderId,
long fileEntryTypeId)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFileEntriesCount in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFileEntriesCount
public int getFileEntriesCount(long folderId,
java.lang.String[] mimeTypes)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFileEntriesCount in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFileEntry
public com.liferay.portal.kernel.repository.model.FileEntry getFileEntry(long fileEntryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFileEntry in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFileEntry
public com.liferay.portal.kernel.repository.model.FileEntry getFileEntry(long folderId,
java.lang.String title)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFileEntry in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFileEntryByUuid
public com.liferay.portal.kernel.repository.model.FileEntry getFileEntryByUuid(java.lang.String uuid)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFileEntryByUuid in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFileEntryLock
public com.liferay.portal.model.Lock getFileEntryLock(long fileEntryId)
getFileVersion
public com.liferay.portal.kernel.repository.model.FileVersion getFileVersion(long fileVersionId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFileVersion in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFolder
public com.liferay.portal.kernel.repository.model.Folder getFolder(long folderId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFolder in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFolder
public com.liferay.portal.kernel.repository.model.Folder getFolder(long parentFolderId,
java.lang.String title)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFolder in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFolders
public java.util.List<com.liferay.portal.kernel.repository.model.Folder> getFolders(long parentFolderId,
boolean includeMountfolders,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFolders in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFoldersAndFileEntriesAndFileShortcuts
public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
boolean includeMountFolders,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFoldersAndFileEntriesAndFileShortcuts in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFoldersAndFileEntriesAndFileShortcuts
public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
java.lang.String[] mimeTypes,
boolean includeMountFolders,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFoldersAndFileEntriesAndFileShortcuts in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFoldersAndFileEntriesAndFileShortcutsCount
public int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
boolean includeMountFolders)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFoldersAndFileEntriesAndFileShortcutsCount in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFoldersAndFileEntriesAndFileShortcutsCount
public int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
java.lang.String[] mimeTypes,
boolean includeMountFolders)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFoldersAndFileEntriesAndFileShortcutsCount in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFoldersCount
public int getFoldersCount(long parentFolderId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFoldersCount
public int getFoldersCount(long parentFolderId,
boolean includeMountfolders)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFoldersCount in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFoldersFileEntriesCount
public int getFoldersFileEntriesCount(java.util.List<java.lang.Long> folderIds,
int status)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFoldersFileEntriesCount in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.SystemException
getMountFolders
public java.util.List<com.liferay.portal.kernel.repository.model.Folder> getMountFolders(long parentFolderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getMountFolders in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.SystemException
getMountFoldersCount
public int getMountFoldersCount(long parentFolderId)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getMountFoldersCount in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.SystemException
getRepositoryFileEntries
public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getRepositoryFileEntries(long userId,
long rootFolderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getRepositoryFileEntries in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.SystemException
getRepositoryFileEntries
public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getRepositoryFileEntries(long userId,
long rootFolderId,
java.lang.String[] mimeTypes,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getRepositoryFileEntries in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.SystemException
getRepositoryFileEntriesCount
public int getRepositoryFileEntriesCount(long userId,
long rootFolderId)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getRepositoryFileEntriesCount in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.SystemException
getRepositoryFileEntriesCount
public int getRepositoryFileEntriesCount(long userId,
long rootFolderId,
java.lang.String[] mimeTypes,
int status)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getRepositoryFileEntriesCount in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.SystemException
getSubfolderIds
public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
long folderId)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getSubfolderIds in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.SystemException
getSubfolderIds
public java.util.List<java.lang.Long> getSubfolderIds(long folderId,
boolean recurse)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getSubfolderIds in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.SystemException
lockFileEntry
public com.liferay.portal.model.Lock lockFileEntry(long fileEntryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
lockFileEntry in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
lockFileEntry
public com.liferay.portal.model.Lock lockFileEntry(long fileEntryId,
java.lang.String owner,
long expirationTime)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
lockFileEntry in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
lockFolder
public com.liferay.portal.model.Lock lockFolder(long folderId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
lockFolder in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
lockFolder
public com.liferay.portal.model.Lock lockFolder(long folderId,
java.lang.String owner,
boolean inheritable,
long expirationTime)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
lockFolder in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
moveFileEntry
public com.liferay.portal.kernel.repository.model.FileEntry moveFileEntry(long fileEntryId,
long newFolderId,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
moveFileEntry in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
moveFolder
public com.liferay.portal.kernel.repository.model.Folder moveFolder(long folderId,
long parentFolderId,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
moveFolder in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
refreshFileEntryLock
public com.liferay.portal.model.Lock refreshFileEntryLock(java.lang.String lockUuid,
long expirationTime)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
refreshFileEntryLock in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
refreshFolderLock
public com.liferay.portal.model.Lock refreshFolderLock(java.lang.String lockUuid,
long expirationTime)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
refreshFolderLock in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
revertFileEntry
public void revertFileEntry(long fileEntryId,
java.lang.String version,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
revertFileEntry in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
search
public com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.search.SearchContext searchContext)
throws com.liferay.portal.kernel.search.SearchException
- Specified by:
search in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.search.SearchException
search
public com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.search.SearchContext searchContext,
com.liferay.portal.kernel.search.Query query)
throws com.liferay.portal.kernel.search.SearchException
- Specified by:
search in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.search.SearchException
unlockFileEntry
public void unlockFileEntry(long fileEntryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
unlockFileEntry in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
unlockFileEntry
public void unlockFileEntry(long fileEntryId,
java.lang.String lockUuid)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
unlockFileEntry in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
unlockFolder
public void unlockFolder(long folderId,
java.lang.String lockUuid)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
unlockFolder in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
unlockFolder
public void unlockFolder(long parentFolderId,
java.lang.String title,
java.lang.String lockUuid)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
unlockFolder in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
updateFileEntry
public com.liferay.portal.kernel.repository.model.FileEntry updateFileEntry(long fileEntryId,
java.lang.String sourceFileName,
java.lang.String mimeType,
java.lang.String title,
java.lang.String description,
java.lang.String changeLog,
boolean majorVersion,
java.io.File file,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
updateFileEntry in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
updateFileEntry
public com.liferay.portal.kernel.repository.model.FileEntry updateFileEntry(long fileEntryId,
java.lang.String sourceFileName,
java.lang.String mimeType,
java.lang.String title,
java.lang.String description,
java.lang.String changeLog,
boolean majorVersion,
java.io.InputStream is,
long size,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
updateFileEntry in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
updateFolder
public com.liferay.portal.kernel.repository.model.Folder updateFolder(long folderId,
java.lang.String title,
java.lang.String description,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
updateFolder in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
verifyFileEntryCheckOut
public boolean verifyFileEntryCheckOut(long fileEntryId,
java.lang.String lockUuid)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
verifyFileEntryCheckOut in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
verifyFileEntryLock
public boolean verifyFileEntryLock(long fileEntryId,
java.lang.String lockUuid)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
verifyFileEntryLock in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
verifyInheritableLock
public boolean verifyInheritableLock(long folderId,
java.lang.String lockUuid)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
verifyInheritableLock in interface com.liferay.portal.kernel.repository.Repository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
initByFileEntryId
protected void initByFileEntryId(long fileEntryId)
- Specified by:
initByFileEntryId in class LiferayRepositoryBase
initByFileVersionId
protected void initByFileVersionId(long fileVersionId)
- Specified by:
initByFileVersionId in class LiferayRepositoryBase
initByFolderId
protected void initByFolderId(long folderId)
- Specified by:
initByFolderId in class LiferayRepositoryBase
initByRepositoryId
protected void initByRepositoryId(long repositoryId)
- Specified by:
initByRepositoryId in class LiferayRepositoryBase