public class LiferayRepository extends LiferayRepositoryBase implements com.liferay.portal.kernel.repository.Repository
dlAppHelperLocalService, dlFileEntryLocalService, dlFileEntryService, dlFileEntryTypeLocalService, dlFileShortcutLocalService, dlFileShortcutService, dlFileVersionLocalService, dlFileVersionService, dlFolderLocalService, dlFolderService, repositoryLocalService, repositoryService, resourceLocalService| Constructor and Description |
|---|
LiferayRepository(com.liferay.portal.kernel.service.RepositoryLocalService repositoryLocalService,
com.liferay.portal.kernel.service.RepositoryService repositoryService,
com.liferay.document.library.kernel.service.DLAppHelperLocalService dlAppHelperLocalService,
com.liferay.document.library.kernel.service.DLFileEntryLocalService dlFileEntryLocalService,
com.liferay.document.library.kernel.service.DLFileEntryService dlFileEntryService,
com.liferay.document.library.kernel.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService,
com.liferay.document.library.kernel.service.DLFileShortcutLocalService dlFileShortcutLocalService,
com.liferay.document.library.kernel.service.DLFileShortcutService dlFileShortcutService,
com.liferay.document.library.kernel.service.DLFileVersionLocalService dlFileVersionLocalService,
com.liferay.document.library.kernel.service.DLFileVersionService dlFileVersionService,
com.liferay.document.library.kernel.service.DLFolderLocalService dlFolderLocalService,
com.liferay.document.library.kernel.service.DLFolderService dlFolderService,
com.liferay.portal.kernel.service.ResourceLocalService resourceLocalService,
long groupId,
long repositoryId,
long dlFolderId) |
| Modifier and Type | Method and Description |
|---|---|
com.liferay.portal.kernel.repository.model.FileEntry |
addFileEntry(long userId,
long folderId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
File file,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.portal.kernel.repository.model.FileEntry |
addFileEntry(long userId,
long folderId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
InputStream is,
long size,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.portal.kernel.repository.model.FileShortcut |
addFileShortcut(long userId,
long folderId,
long toFileEntryId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.portal.kernel.repository.model.Folder |
addFolder(long userId,
long parentFolderId,
String name,
String description,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.portal.kernel.repository.model.FileVersion |
cancelCheckOut(long fileEntryId) |
void |
checkInFileEntry(long userId,
long fileEntryId,
boolean majorVersion,
String changeLog,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of Judson (7.1.x), replaced by
checkInFileEntry(long, long, DLVersionNumberIncrease,
String, ServiceContext) |
void |
checkInFileEntry(long userId,
long fileEntryId,
com.liferay.document.library.kernel.model.DLVersionNumberIncrease dlVersionNumberIncrease,
String changeLog,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
checkInFileEntry(long userId,
long fileEntryId,
String lockUuid,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.portal.kernel.repository.model.FileEntry |
checkOutFileEntry(long fileEntryId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.portal.kernel.repository.model.FileEntry |
checkOutFileEntry(long fileEntryId,
String owner,
long expirationTime,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.portal.kernel.repository.model.FileEntry |
copyFileEntry(long userId,
long groupId,
long fileEntryId,
long destFolderId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
deleteAll() |
void |
deleteFileEntry(long fileEntryId) |
void |
deleteFileEntry(long folderId,
String title) |
void |
deleteFileShortcut(long fileShortcutId) |
void |
deleteFileShortcuts(long toFileEntryId) |
void |
deleteFileVersion(long fileVersionId) |
void |
deleteFileVersion(long fileEntryId,
String version) |
void |
deleteFolder(long folderId) |
void |
deleteFolder(long parentFolderId,
String name) |
List<com.liferay.portal.kernel.repository.model.FileEntry> |
getFileEntries(long folderId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> obc) |
List<com.liferay.portal.kernel.repository.model.FileEntry> |
getFileEntries(long folderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> obc) |
List<com.liferay.portal.kernel.repository.model.FileEntry> |
getFileEntries(long folderId,
long fileEntryTypeId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> obc) |
List<com.liferay.portal.kernel.repository.model.FileEntry> |
getFileEntries(long folderId,
String[] mimeTypes,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> obc) |
List<com.liferay.portal.kernel.repository.model.FileEntry> |
getFileEntries(long folderId,
String[] mimeTypes,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> obc) |
List<com.liferay.portal.kernel.repository.model.RepositoryEntry> |
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,
int status) |
int |
getFileEntriesCount(long folderId,
long fileEntryTypeId) |
int |
getFileEntriesCount(long folderId,
String[] mimeTypes) |
int |
getFileEntriesCount(long folderId,
String[] mimeTypes,
int status) |
com.liferay.portal.kernel.repository.model.FileEntry |
getFileEntry(long fileEntryId) |
com.liferay.portal.kernel.repository.model.FileEntry |
getFileEntry(long folderId,
String title) |
com.liferay.portal.kernel.repository.model.FileEntry |
getFileEntryByUuid(String uuid) |
com.liferay.portal.kernel.lock.Lock |
getFileEntryLock(long fileEntryId) |
com.liferay.portal.kernel.repository.model.FileShortcut |
getFileShortcut(long fileShortcutId) |
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,
String name) |
List<com.liferay.portal.kernel.repository.model.Folder> |
getFolders(long parentFolderId,
boolean includeMountfolders,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.Folder> obc) |
List<com.liferay.portal.kernel.repository.model.Folder> |
getFolders(long parentFolderId,
int status,
boolean includeMountfolders,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.Folder> obc) |
List<com.liferay.portal.kernel.repository.model.RepositoryEntry> |
getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
boolean includeMountFolders,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<?> obc) |
List<com.liferay.portal.kernel.repository.model.RepositoryEntry> |
getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
String[] mimeTypes,
boolean includeMountFolders,
boolean includeOwner,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<?> obc) |
List<com.liferay.portal.kernel.repository.model.RepositoryEntry> |
getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
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,
String[] mimeTypes,
boolean includeMountFolders) |
int |
getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
String[] mimeTypes,
boolean includeMountFolders,
boolean includeOwner) |
int |
getFoldersCount(long parentFolderId,
boolean includeMountfolders) |
int |
getFoldersCount(long parentFolderId,
int status,
boolean includeMountfolders) |
int |
getFoldersFileEntriesCount(List<Long> folderIds,
int status) |
List<com.liferay.portal.kernel.repository.model.Folder> |
getMountFolders(long parentFolderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.Folder> obc) |
int |
getMountFoldersCount(long parentFolderId) |
List<com.liferay.portal.kernel.repository.model.FileEntry> |
getRepositoryFileEntries(long userId,
long rootFolderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> obc) |
List<com.liferay.portal.kernel.repository.model.FileEntry> |
getRepositoryFileEntries(long userId,
long rootFolderId,
String[] mimeTypes,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> 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) |
com.liferay.portal.kernel.lock.Lock |
lockFolder(long folderId) |
com.liferay.portal.kernel.lock.Lock |
lockFolder(long folderId,
String owner,
boolean inheritable,
long expirationTime) |
com.liferay.portal.kernel.repository.model.FileEntry |
moveFileEntry(long userId,
long fileEntryId,
long newFolderId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.portal.kernel.repository.model.Folder |
moveFolder(long userId,
long folderId,
long parentFolderId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.portal.kernel.lock.Lock |
refreshFileEntryLock(String lockUuid,
long companyId,
long expirationTime) |
com.liferay.portal.kernel.lock.Lock |
refreshFolderLock(String lockUuid,
long companyId,
long expirationTime) |
void |
revertFileEntry(long userId,
long fileEntryId,
String version,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.portal.kernel.search.Hits |
search(long creatorUserId,
int status,
int start,
int end) |
com.liferay.portal.kernel.search.Hits |
search(long creatorUserId,
long folderId,
String[] mimeTypes,
int status,
int start,
int end) |
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 |
unlockFolder(long folderId,
String lockUuid) |
void |
unlockFolder(long parentFolderId,
String name,
String lockUuid) |
com.liferay.portal.kernel.repository.model.FileEntry |
updateFileEntry(long userId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
File file,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of Judson (7.1.x), replaced by
updateFileEntry(long, long, String, String, String, String,
String, DLVersionNumberIncrease, File, ServiceContext) |
com.liferay.portal.kernel.repository.model.FileEntry |
updateFileEntry(long userId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
InputStream is,
long size,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of Judson (7.1.x), replaced by
updateFileEntry(long, long, String, String, String, String,
String, DLVersionNumberIncrease, InputStream, long,
ServiceContext) |
com.liferay.portal.kernel.repository.model.FileEntry |
updateFileEntry(long userId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
com.liferay.document.library.kernel.model.DLVersionNumberIncrease dlVersionNumberIncrease,
File file,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.portal.kernel.repository.model.FileEntry |
updateFileEntry(long userId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
com.liferay.document.library.kernel.model.DLVersionNumberIncrease dlVersionNumberIncrease,
InputStream is,
long size,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.portal.kernel.repository.model.FileShortcut |
updateFileShortcut(long userId,
long fileShortcutId,
long folderId,
long toFileEntryId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
updateFileShortcuts(long oldToFileEntryId,
long newToFileEntryId) |
com.liferay.portal.kernel.repository.model.Folder |
updateFolder(long folderId,
long parentFolderId,
String name,
String description,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.portal.kernel.repository.model.Folder |
updateFolder(long folderId,
String name,
String description,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
boolean |
verifyFileEntryCheckOut(long fileEntryId,
String lockUuid) |
boolean |
verifyFileEntryLock(long fileEntryId,
String lockUuid) |
boolean |
verifyInheritableLock(long folderId,
String lockUuid) |
getCapability, getDDMFormValuesMap, getDefaultFileEntryTypeId, getGroupId, getLongList, getRepositoryId, isCapabilityProvided, isDefaultRepository, toFolderId, toFolderIdsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic LiferayRepository(com.liferay.portal.kernel.service.RepositoryLocalService repositoryLocalService,
com.liferay.portal.kernel.service.RepositoryService repositoryService,
com.liferay.document.library.kernel.service.DLAppHelperLocalService dlAppHelperLocalService,
com.liferay.document.library.kernel.service.DLFileEntryLocalService dlFileEntryLocalService,
com.liferay.document.library.kernel.service.DLFileEntryService dlFileEntryService,
com.liferay.document.library.kernel.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService,
com.liferay.document.library.kernel.service.DLFileShortcutLocalService dlFileShortcutLocalService,
com.liferay.document.library.kernel.service.DLFileShortcutService dlFileShortcutService,
com.liferay.document.library.kernel.service.DLFileVersionLocalService dlFileVersionLocalService,
com.liferay.document.library.kernel.service.DLFileVersionService dlFileVersionService,
com.liferay.document.library.kernel.service.DLFolderLocalService dlFolderLocalService,
com.liferay.document.library.kernel.service.DLFolderService dlFolderService,
com.liferay.portal.kernel.service.ResourceLocalService resourceLocalService,
long groupId,
long repositoryId,
long dlFolderId)
public com.liferay.portal.kernel.repository.model.FileEntry addFileEntry(long userId,
long folderId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
File file,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
addFileEntry in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry addFileEntry(long userId,
long folderId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
InputStream is,
long size,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
addFileEntry in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.FileShortcut addFileShortcut(long userId,
long folderId,
long toFileEntryId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
addFileShortcut in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.Folder addFolder(long userId,
long parentFolderId,
String name,
String description,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
addFolder in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.FileVersion cancelCheckOut(long fileEntryId)
throws com.liferay.portal.kernel.exception.PortalException
cancelCheckOut in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalException@Deprecated
public void checkInFileEntry(long userId,
long fileEntryId,
boolean majorVersion,
String changeLog,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
checkInFileEntry(long, long, DLVersionNumberIncrease,
String, ServiceContext)checkInFileEntry in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic void checkInFileEntry(long userId,
long fileEntryId,
com.liferay.document.library.kernel.model.DLVersionNumberIncrease dlVersionNumberIncrease,
String changeLog,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
checkInFileEntry in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic void checkInFileEntry(long userId,
long fileEntryId,
String lockUuid,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
checkInFileEntry in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry checkOutFileEntry(long fileEntryId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
checkOutFileEntry in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry checkOutFileEntry(long fileEntryId,
String owner,
long expirationTime,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
checkOutFileEntry in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry copyFileEntry(long userId,
long groupId,
long fileEntryId,
long destFolderId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
copyFileEntry in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic void deleteAll()
deleteAll in interface com.liferay.portal.kernel.repository.DocumentRepositorypublic void deleteFileEntry(long fileEntryId)
throws com.liferay.portal.kernel.exception.PortalException
deleteFileEntry in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic void deleteFileEntry(long folderId,
String title)
throws com.liferay.portal.kernel.exception.PortalException
deleteFileEntry in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic void deleteFileShortcut(long fileShortcutId)
throws com.liferay.portal.kernel.exception.PortalException
deleteFileShortcut in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic void deleteFileShortcuts(long toFileEntryId)
throws com.liferay.portal.kernel.exception.PortalException
deleteFileShortcuts in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic void deleteFileVersion(long fileVersionId)
throws com.liferay.portal.kernel.exception.PortalException
deleteFileVersion in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic void deleteFileVersion(long fileEntryId,
String version)
throws com.liferay.portal.kernel.exception.PortalException
deleteFileVersion in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic void deleteFolder(long folderId)
throws com.liferay.portal.kernel.exception.PortalException
deleteFolder in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic void deleteFolder(long parentFolderId,
String name)
throws com.liferay.portal.kernel.exception.PortalException
deleteFolder in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries(long folderId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> obc)
throws com.liferay.portal.kernel.exception.PortalException
getFileEntries in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries(long folderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> obc)
throws com.liferay.portal.kernel.exception.PortalException
getFileEntries in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries(long folderId,
long fileEntryTypeId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> obc)
throws com.liferay.portal.kernel.exception.PortalException
getFileEntries in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries(long folderId,
String[] mimeTypes,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> obc)
throws com.liferay.portal.kernel.exception.PortalException
getFileEntries in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries(long folderId,
String[] mimeTypes,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> obc)
throws com.liferay.portal.kernel.exception.PortalException
getFileEntries in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.repository.model.RepositoryEntry> getFileEntriesAndFileShortcuts(long folderId,
int status,
int start,
int end)
throws com.liferay.portal.kernel.exception.PortalException
getFileEntriesAndFileShortcuts in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic int getFileEntriesAndFileShortcutsCount(long folderId,
int status)
throws com.liferay.portal.kernel.exception.PortalException
getFileEntriesAndFileShortcutsCount in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic int getFileEntriesAndFileShortcutsCount(long folderId,
int status,
String[] mimeTypes)
throws com.liferay.portal.kernel.exception.PortalException
getFileEntriesAndFileShortcutsCount in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic int getFileEntriesCount(long folderId)
getFileEntriesCount in interface com.liferay.portal.kernel.repository.DocumentRepositorypublic int getFileEntriesCount(long folderId,
int status)
getFileEntriesCount in interface com.liferay.portal.kernel.repository.DocumentRepositorypublic int getFileEntriesCount(long folderId,
long fileEntryTypeId)
getFileEntriesCount in interface com.liferay.portal.kernel.repository.Repositorypublic int getFileEntriesCount(long folderId,
String[] mimeTypes)
getFileEntriesCount in interface com.liferay.portal.kernel.repository.Repositorypublic int getFileEntriesCount(long folderId,
String[] mimeTypes,
int status)
throws com.liferay.portal.kernel.exception.PortalException
getFileEntriesCount in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry getFileEntry(long fileEntryId)
throws com.liferay.portal.kernel.exception.PortalException
getFileEntry in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry getFileEntry(long folderId,
String title)
throws com.liferay.portal.kernel.exception.PortalException
getFileEntry in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry getFileEntryByUuid(String uuid)
throws com.liferay.portal.kernel.exception.PortalException
getFileEntryByUuid in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.lock.Lock getFileEntryLock(long fileEntryId)
public com.liferay.portal.kernel.repository.model.FileShortcut getFileShortcut(long fileShortcutId)
throws com.liferay.portal.kernel.exception.PortalException
getFileShortcut in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.FileVersion getFileVersion(long fileVersionId)
throws com.liferay.portal.kernel.exception.PortalException
getFileVersion in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.Folder getFolder(long folderId)
throws com.liferay.portal.kernel.exception.PortalException
getFolder in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.Folder getFolder(long parentFolderId,
String name)
throws com.liferay.portal.kernel.exception.PortalException
getFolder in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.repository.model.Folder> getFolders(long parentFolderId,
boolean includeMountfolders,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.Folder> obc)
throws com.liferay.portal.kernel.exception.PortalException
getFolders in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.repository.model.Folder> getFolders(long parentFolderId,
int status,
boolean includeMountfolders,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.Folder> obc)
throws com.liferay.portal.kernel.exception.PortalException
getFolders in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.repository.model.RepositoryEntry> getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
boolean includeMountFolders,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<?> obc)
throws com.liferay.portal.kernel.exception.PortalException
getFoldersAndFileEntriesAndFileShortcuts in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.repository.model.RepositoryEntry> getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
String[] mimeTypes,
boolean includeMountFolders,
boolean includeOwner,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<?> obc)
throws com.liferay.portal.kernel.exception.PortalException
getFoldersAndFileEntriesAndFileShortcuts in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.repository.model.RepositoryEntry> getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
String[] mimeTypes,
boolean includeMountFolders,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<?> obc)
throws com.liferay.portal.kernel.exception.PortalException
getFoldersAndFileEntriesAndFileShortcuts in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
boolean includeMountFolders)
throws com.liferay.portal.kernel.exception.PortalException
getFoldersAndFileEntriesAndFileShortcutsCount in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
String[] mimeTypes,
boolean includeMountFolders)
throws com.liferay.portal.kernel.exception.PortalException
getFoldersAndFileEntriesAndFileShortcutsCount in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
String[] mimeTypes,
boolean includeMountFolders,
boolean includeOwner)
throws com.liferay.portal.kernel.exception.PortalException
getFoldersAndFileEntriesAndFileShortcutsCount in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic int getFoldersCount(long parentFolderId,
boolean includeMountfolders)
throws com.liferay.portal.kernel.exception.PortalException
getFoldersCount in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic int getFoldersCount(long parentFolderId,
int status,
boolean includeMountfolders)
throws com.liferay.portal.kernel.exception.PortalException
getFoldersCount in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic int getFoldersFileEntriesCount(List<Long> folderIds,
int status)
getFoldersFileEntriesCount in interface com.liferay.portal.kernel.repository.Repositorypublic List<com.liferay.portal.kernel.repository.model.Folder> getMountFolders(long parentFolderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.Folder> obc)
throws com.liferay.portal.kernel.exception.PortalException
getMountFolders in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic int getMountFoldersCount(long parentFolderId)
throws com.liferay.portal.kernel.exception.PortalException
getMountFoldersCount in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.repository.model.FileEntry> getRepositoryFileEntries(long userId,
long rootFolderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> obc)
throws com.liferay.portal.kernel.exception.PortalException
getRepositoryFileEntries in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.repository.model.FileEntry> getRepositoryFileEntries(long userId,
long rootFolderId,
String[] mimeTypes,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> obc)
throws com.liferay.portal.kernel.exception.PortalException
getRepositoryFileEntries in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic int getRepositoryFileEntriesCount(long userId,
long rootFolderId)
throws com.liferay.portal.kernel.exception.PortalException
getRepositoryFileEntriesCount in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic int getRepositoryFileEntriesCount(long userId,
long rootFolderId,
String[] mimeTypes,
int status)
throws com.liferay.portal.kernel.exception.PortalException
getRepositoryFileEntriesCount in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic void getSubfolderIds(List<Long> folderIds,
long folderId)
throws com.liferay.portal.kernel.exception.PortalException
getSubfolderIds in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic List<Long> getSubfolderIds(long folderId,
boolean recurse)
throws com.liferay.portal.kernel.exception.PortalException
getSubfolderIds in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.lock.Lock lockFolder(long folderId)
throws com.liferay.portal.kernel.exception.PortalException
lockFolder in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.lock.Lock lockFolder(long folderId,
String owner,
boolean inheritable,
long expirationTime)
throws com.liferay.portal.kernel.exception.PortalException
lockFolder in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry moveFileEntry(long userId,
long fileEntryId,
long newFolderId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
moveFileEntry in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.Folder moveFolder(long userId,
long folderId,
long parentFolderId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
moveFolder in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.lock.Lock refreshFileEntryLock(String lockUuid,
long companyId,
long expirationTime)
throws com.liferay.portal.kernel.exception.PortalException
refreshFileEntryLock in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.lock.Lock refreshFolderLock(String lockUuid,
long companyId,
long expirationTime)
throws com.liferay.portal.kernel.exception.PortalException
refreshFolderLock in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic void revertFileEntry(long userId,
long fileEntryId,
String version,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
revertFileEntry in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.search.Hits search(long creatorUserId,
int status,
int start,
int end)
throws com.liferay.portal.kernel.exception.PortalException
search in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.search.Hits search(long creatorUserId,
long folderId,
String[] mimeTypes,
int status,
int start,
int end)
throws com.liferay.portal.kernel.exception.PortalException
search in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.search.SearchContext searchContext)
throws com.liferay.portal.kernel.search.SearchException
search in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.search.SearchExceptionpublic 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
search in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.search.SearchExceptionpublic void unlockFolder(long folderId,
String lockUuid)
throws com.liferay.portal.kernel.exception.PortalException
unlockFolder in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic void unlockFolder(long parentFolderId,
String name,
String lockUuid)
throws com.liferay.portal.kernel.exception.PortalException
unlockFolder in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalException@Deprecated
public com.liferay.portal.kernel.repository.model.FileEntry updateFileEntry(long userId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
File file,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
updateFileEntry(long, long, String, String, String, String,
String, DLVersionNumberIncrease, File, ServiceContext)updateFileEntry in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalException@Deprecated
public com.liferay.portal.kernel.repository.model.FileEntry updateFileEntry(long userId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
InputStream is,
long size,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
updateFileEntry(long, long, String, String, String, String,
String, DLVersionNumberIncrease, InputStream, long,
ServiceContext)updateFileEntry in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry updateFileEntry(long userId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
com.liferay.document.library.kernel.model.DLVersionNumberIncrease dlVersionNumberIncrease,
File file,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
updateFileEntry in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry updateFileEntry(long userId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
com.liferay.document.library.kernel.model.DLVersionNumberIncrease dlVersionNumberIncrease,
InputStream is,
long size,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
updateFileEntry in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.FileShortcut updateFileShortcut(long userId,
long fileShortcutId,
long folderId,
long toFileEntryId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
updateFileShortcut in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic void updateFileShortcuts(long oldToFileEntryId,
long newToFileEntryId)
throws com.liferay.portal.kernel.exception.PortalException
updateFileShortcuts in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.Folder updateFolder(long folderId,
long parentFolderId,
String name,
String description,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
updateFolder in interface com.liferay.portal.kernel.repository.DocumentRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.Folder updateFolder(long folderId,
String name,
String description,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
updateFolder in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic boolean verifyFileEntryCheckOut(long fileEntryId,
String lockUuid)
throws com.liferay.portal.kernel.exception.PortalException
verifyFileEntryCheckOut in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic boolean verifyFileEntryLock(long fileEntryId,
String lockUuid)
throws com.liferay.portal.kernel.exception.PortalException
verifyFileEntryLock in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalExceptionpublic boolean verifyInheritableLock(long folderId,
String lockUuid)
throws com.liferay.portal.kernel.exception.PortalException
verifyInheritableLock in interface com.liferay.portal.kernel.repository.Repositorycom.liferay.portal.kernel.exception.PortalException