public abstract class CMISRepositoryHandler extends BaseRepositoryImpl implements Capability
assetEntryLocalService, companyLocalService, dlAppHelperLocalService, dlFolderLocalService, repositoryEntryLocalService, userLocalService
Constructor and Description |
---|
CMISRepositoryHandler() |
Modifier and Type | Method and Description |
---|---|
FileEntry |
addFileEntry(long userId,
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,
ServiceContext serviceContext) |
FileShortcut |
addFileShortcut(long userId,
long folderId,
long toFileEntryId,
ServiceContext serviceContext) |
Folder |
addFolder(long userId,
long parentFolderId,
java.lang.String name,
java.lang.String description,
ServiceContext serviceContext) |
FileVersion |
cancelCheckOut(long fileEntryId)
Cancels the file entry check out.
|
void |
checkInFileEntry(long userId,
long fileEntryId,
boolean major,
java.lang.String changeLog,
ServiceContext serviceContext) |
void |
checkInFileEntry(long userId,
long fileEntryId,
java.lang.String lockUuid,
ServiceContext serviceContext) |
FileEntry |
checkOutFileEntry(long fileEntryId,
ServiceContext serviceContext) |
FileEntry |
checkOutFileEntry(long fileEntryId,
java.lang.String owner,
long expirationTime,
ServiceContext serviceContext) |
FileEntry |
copyFileEntry(long userId,
long groupId,
long fileEntryId,
long destFolderId,
ServiceContext serviceContext) |
void |
deleteFileEntry(long fileEntryId) |
void |
deleteFileShortcut(long fileShortcutId) |
void |
deleteFileShortcuts(long toFileEntryId) |
void |
deleteFolder(long folderId) |
BaseRepository |
getCmisRepository() |
java.util.List<FileEntry> |
getFileEntries(long folderId,
int status,
int start,
int end,
OrderByComparator<FileEntry> obc) |
java.util.List<FileEntry> |
getFileEntries(long folderId,
int start,
int end,
OrderByComparator<FileEntry> obc) |
java.util.List<FileEntry> |
getFileEntries(long folderId,
long fileEntryTypeId,
int start,
int end,
OrderByComparator<FileEntry> obc) |
java.util.List<FileEntry> |
getFileEntries(long folderId,
java.lang.String[] mimeTypes,
int start,
int end,
OrderByComparator<FileEntry> obc) |
int |
getFileEntriesCount(long folderId) |
int |
getFileEntriesCount(long folderId,
int status) |
int |
getFileEntriesCount(long folderId,
long fileEntryTypeId) |
int |
getFileEntriesCount(long folderId,
java.lang.String[] mimeTypes) |
FileEntry |
getFileEntry(long fileEntryId) |
FileEntry |
getFileEntry(long folderId,
java.lang.String title) |
FileEntry |
getFileEntryByUuid(java.lang.String uuid) |
FileShortcut |
getFileShortcut(long fileShortcutId) |
FileVersion |
getFileVersion(long fileVersionId) |
Folder |
getFolder(long folderId) |
Folder |
getFolder(long parentFolderId,
java.lang.String name) |
java.util.List<Folder> |
getFolders(long parentFolderId,
boolean includeMountfolders,
int start,
int end,
OrderByComparator<Folder> obc) |
java.util.List<java.lang.Object> |
getFoldersAndFileEntries(long folderId,
int start,
int end,
OrderByComparator<?> obc) |
java.util.List<java.lang.Object> |
getFoldersAndFileEntries(long folderId,
java.lang.String[] mimeTypes,
int start,
int end,
OrderByComparator<?> obc) |
int |
getFoldersAndFileEntriesCount(long folderId) |
int |
getFoldersAndFileEntriesCount(long folderId,
java.lang.String[] mimeTypes) |
int |
getFoldersCount(long parentFolderId,
boolean includeMountfolders) |
int |
getFoldersFileEntriesCount(java.util.List<java.lang.Long> folderIds,
int status) |
java.lang.String |
getLatestVersionId(java.lang.String objectId) |
java.lang.String |
getLogin() |
java.util.List<Folder> |
getMountFolders(long parentFolderId,
int start,
int end,
OrderByComparator<Folder> obc) |
int |
getMountFoldersCount(long parentFolderId) |
java.lang.String |
getObjectName(java.lang.String objectId) |
java.util.List<java.lang.String> |
getObjectPaths(java.lang.String objectId) |
abstract Session |
getSession() |
void |
getSubfolderIds(java.util.List<java.lang.Long> folderIds,
long folderId) |
java.util.List<java.lang.Long> |
getSubfolderIds(long folderId,
boolean recurse) |
void |
initRepository() |
boolean |
isCancelCheckOutAllowable(java.lang.String objectId) |
boolean |
isCheckInAllowable(java.lang.String objectId) |
boolean |
isCheckOutAllowable(java.lang.String objectId) |
boolean |
isDocumentRetrievableByVersionSeriesId() |
boolean |
isRefreshBeforePermissionCheck() |
boolean |
isSupportsMinorVersions(java.lang.String productName) |
Lock |
lockFolder(long folderId) |
Lock |
lockFolder(long folderId,
java.lang.String owner,
boolean inheritable,
long expirationTime) |
FileEntry |
moveFileEntry(long userId,
long fileEntryId,
long newFolderId,
ServiceContext serviceContext) |
Folder |
moveFolder(long userId,
long folderId,
long newParentFolderId,
ServiceContext serviceContext) |
Lock |
refreshFileEntryLock(java.lang.String lockUuid,
long companyId,
long expirationTime) |
Lock |
refreshFolderLock(java.lang.String lockUuid,
long companyId,
long expirationTime) |
void |
revertFileEntry(long userId,
long fileEntryId,
java.lang.String version,
ServiceContext serviceContext) |
Hits |
search(long creatorUserId,
int status,
int start,
int end) |
Hits |
search(long creatorUserId,
long folderId,
java.lang.String[] mimeTypes,
int status,
int start,
int end) |
Hits |
search(SearchContext searchContext) |
Hits |
search(SearchContext searchContext,
Query query) |
void |
setCmisRepository(BaseCmisRepository baseCmisRepository) |
FileEntry |
toFileEntry(java.lang.String objectId) |
Folder |
toFolder(java.lang.String objectId) |
void |
unlockFolder(long folderId,
java.lang.String lockUuid) |
FileEntry |
updateFileEntry(long userId,
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,
ServiceContext serviceContext) |
FileEntry |
updateFileEntry(java.lang.String objectId,
java.lang.String mimeType,
java.util.Map<java.lang.String,java.lang.Object> properties,
java.io.InputStream is,
java.lang.String sourceFileName,
long size,
ServiceContext serviceContext) |
FileShortcut |
updateFileShortcut(long userId,
long fileShortcutId,
long folderId,
long toFileEntryId,
ServiceContext serviceContext) |
void |
updateFileShortcuts(long oldToFileEntryId,
long newToFileEntryId) |
Folder |
updateFolder(long folderId,
java.lang.String name,
java.lang.String description,
ServiceContext serviceContext) |
boolean |
verifyFileEntryCheckOut(long fileEntryId,
java.lang.String lockUuid) |
boolean |
verifyInheritableLock(long folderId,
java.lang.String lockUuid) |
addFileEntry, addFileEntry, addFileEntry, addFolder, checkInFileEntry, checkInFileEntry, clearManualCheckInRequired, copyFileEntry, deleteAll, deleteFileEntry, deleteFileVersion, deleteFolder, getCapability, getCompanyId, getFileEntriesAndFileShortcuts, getFileEntriesAndFileShortcutsCount, getFileEntriesAndFileShortcutsCount, getFolders, getFoldersAndFileEntriesAndFileShortcuts, getFoldersAndFileEntriesAndFileShortcuts, getFoldersAndFileEntriesAndFileShortcutsCount, getFoldersAndFileEntriesAndFileShortcutsCount, getFoldersCount, getGroupId, getLocalRepository, getRepositoryEntry, getRepositoryEntryIds, getRepositoryFileEntries, getRepositoryFileEntries, getRepositoryFileEntriesCount, getRepositoryFileEntriesCount, getRepositoryId, getSupportedConfigurations, getSupportedParameters, getTypeSettingsProperties, isCapabilityProvided, moveFileEntry, moveFolder, revertFileEntry, setAssetEntryLocalService, setCompanyId, setCompanyLocalService, setDLAppHelperLocalService, setDLFolderLocalService, setGroupId, setManualCheckInRequired, setRepositoryEntryLocalService, setRepositoryId, setTypeSettingsProperties, setUserLocalService, unlockFolder, updateFileEntry, updateFileEntry, updateFileEntry, updateFolder, verifyFileEntryLock
public FileEntry addFileEntry(long userId, 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, ServiceContext serviceContext) throws PortalException
addFileEntry
in interface DocumentRepository
PortalException
public FileShortcut addFileShortcut(long userId, long folderId, long toFileEntryId, ServiceContext serviceContext) throws PortalException
addFileShortcut
in interface DocumentRepository
PortalException
public Folder addFolder(long userId, long parentFolderId, java.lang.String name, java.lang.String description, ServiceContext serviceContext) throws PortalException
addFolder
in interface DocumentRepository
addFolder
in class BaseRepositoryImpl
PortalException
public FileVersion cancelCheckOut(long fileEntryId) throws PortalException
Repository
cancelCheckOut
in interface Repository
fileEntryId
- the primary key of the file entry to cancel the check
outnull
if the file entry was not checked outPortalException
DocumentRepository.checkInFileEntry(long, long, boolean, String, ServiceContext)
,
Repository.checkOutFileEntry(long, ServiceContext)
public void checkInFileEntry(long userId, long fileEntryId, boolean major, java.lang.String changeLog, ServiceContext serviceContext) throws PortalException
checkInFileEntry
in interface DocumentRepository
PortalException
public void checkInFileEntry(long userId, long fileEntryId, java.lang.String lockUuid, ServiceContext serviceContext) throws PortalException
checkInFileEntry
in interface DocumentRepository
PortalException
public FileEntry checkOutFileEntry(long fileEntryId, ServiceContext serviceContext) throws PortalException
checkOutFileEntry
in interface Repository
checkOutFileEntry
in class BaseRepositoryImpl
PortalException
public FileEntry checkOutFileEntry(long fileEntryId, java.lang.String owner, long expirationTime, ServiceContext serviceContext) throws PortalException
checkOutFileEntry
in interface Repository
checkOutFileEntry
in class BaseRepositoryImpl
PortalException
public FileEntry copyFileEntry(long userId, long groupId, long fileEntryId, long destFolderId, ServiceContext serviceContext) throws PortalException
copyFileEntry
in interface DocumentRepository
PortalException
public void deleteFileEntry(long fileEntryId) throws PortalException
deleteFileEntry
in interface DocumentRepository
PortalException
public void deleteFileShortcut(long fileShortcutId) throws PortalException
deleteFileShortcut
in interface DocumentRepository
PortalException
public void deleteFileShortcuts(long toFileEntryId) throws PortalException
deleteFileShortcuts
in interface DocumentRepository
PortalException
public void deleteFolder(long folderId) throws PortalException
deleteFolder
in interface DocumentRepository
PortalException
public BaseRepository getCmisRepository()
public java.util.List<FileEntry> getFileEntries(long folderId, int status, int start, int end, OrderByComparator<FileEntry> obc) throws PortalException
getFileEntries
in interface DocumentRepository
PortalException
public java.util.List<FileEntry> getFileEntries(long folderId, int start, int end, OrderByComparator<FileEntry> obc) throws PortalException
getFileEntries
in interface DocumentRepository
PortalException
public java.util.List<FileEntry> getFileEntries(long folderId, long fileEntryTypeId, int start, int end, OrderByComparator<FileEntry> obc) throws PortalException
getFileEntries
in interface Repository
PortalException
public java.util.List<FileEntry> getFileEntries(long folderId, java.lang.String[] mimeTypes, int start, int end, OrderByComparator<FileEntry> obc) throws PortalException
getFileEntries
in interface Repository
PortalException
public int getFileEntriesCount(long folderId) throws PortalException
getFileEntriesCount
in interface DocumentRepository
PortalException
public int getFileEntriesCount(long folderId, int status) throws PortalException
getFileEntriesCount
in interface DocumentRepository
PortalException
public int getFileEntriesCount(long folderId, long fileEntryTypeId) throws PortalException
getFileEntriesCount
in interface Repository
PortalException
public int getFileEntriesCount(long folderId, java.lang.String[] mimeTypes) throws PortalException
getFileEntriesCount
in interface Repository
PortalException
public FileEntry getFileEntry(long fileEntryId) throws PortalException
getFileEntry
in interface DocumentRepository
PortalException
public FileEntry getFileEntry(long folderId, java.lang.String title) throws PortalException
getFileEntry
in interface DocumentRepository
PortalException
public FileEntry getFileEntryByUuid(java.lang.String uuid) throws PortalException
getFileEntryByUuid
in interface DocumentRepository
PortalException
public FileShortcut getFileShortcut(long fileShortcutId) throws PortalException
getFileShortcut
in interface DocumentRepository
PortalException
public FileVersion getFileVersion(long fileVersionId) throws PortalException
getFileVersion
in interface DocumentRepository
PortalException
public Folder getFolder(long folderId) throws PortalException
getFolder
in interface DocumentRepository
PortalException
public Folder getFolder(long parentFolderId, java.lang.String name) throws PortalException
getFolder
in interface DocumentRepository
PortalException
public java.util.List<Folder> getFolders(long parentFolderId, boolean includeMountfolders, int start, int end, OrderByComparator<Folder> obc) throws PortalException
getFolders
in interface DocumentRepository
PortalException
public java.util.List<java.lang.Object> getFoldersAndFileEntries(long folderId, int start, int end, OrderByComparator<?> obc)
getFoldersAndFileEntries
in class BaseRepositoryImpl
public java.util.List<java.lang.Object> getFoldersAndFileEntries(long folderId, java.lang.String[] mimeTypes, int start, int end, OrderByComparator<?> obc) throws PortalException
getFoldersAndFileEntries
in class BaseRepositoryImpl
PortalException
public int getFoldersAndFileEntriesCount(long folderId)
getFoldersAndFileEntriesCount
in class BaseRepositoryImpl
public int getFoldersAndFileEntriesCount(long folderId, java.lang.String[] mimeTypes) throws PortalException
getFoldersAndFileEntriesCount
in class BaseRepositoryImpl
PortalException
public int getFoldersCount(long parentFolderId, boolean includeMountfolders) throws PortalException
getFoldersCount
in interface DocumentRepository
PortalException
public int getFoldersFileEntriesCount(java.util.List<java.lang.Long> folderIds, int status) throws PortalException
getFoldersFileEntriesCount
in interface Repository
PortalException
public java.lang.String getLatestVersionId(java.lang.String objectId)
public java.lang.String getLogin()
public java.util.List<Folder> getMountFolders(long parentFolderId, int start, int end, OrderByComparator<Folder> obc) throws PortalException
getMountFolders
in interface Repository
PortalException
public int getMountFoldersCount(long parentFolderId) throws PortalException
getMountFoldersCount
in interface Repository
PortalException
public java.lang.String getObjectName(java.lang.String objectId) throws PortalException
PortalException
public java.util.List<java.lang.String> getObjectPaths(java.lang.String objectId) throws PortalException
PortalException
public abstract Session getSession() throws PortalException
PortalException
public void getSubfolderIds(java.util.List<java.lang.Long> folderIds, long folderId) throws PortalException
getSubfolderIds
in interface Repository
PortalException
public java.util.List<java.lang.Long> getSubfolderIds(long folderId, boolean recurse) throws PortalException
getSubfolderIds
in interface Repository
PortalException
public void initRepository() throws PortalException
initRepository
in interface BaseRepository
initRepository
in class BaseRepositoryImpl
PortalException
public boolean isCancelCheckOutAllowable(java.lang.String objectId) throws PortalException
PortalException
public boolean isCheckInAllowable(java.lang.String objectId) throws PortalException
PortalException
public boolean isCheckOutAllowable(java.lang.String objectId) throws PortalException
PortalException
public boolean isDocumentRetrievableByVersionSeriesId()
public boolean isRefreshBeforePermissionCheck()
public boolean isSupportsMinorVersions(java.lang.String productName)
public Lock lockFolder(long folderId) throws PortalException
lockFolder
in interface Repository
PortalException
public Lock lockFolder(long folderId, java.lang.String owner, boolean inheritable, long expirationTime) throws PortalException
lockFolder
in interface Repository
PortalException
public FileEntry moveFileEntry(long userId, long fileEntryId, long newFolderId, ServiceContext serviceContext) throws PortalException
moveFileEntry
in interface DocumentRepository
PortalException
public Folder moveFolder(long userId, long folderId, long newParentFolderId, ServiceContext serviceContext) throws PortalException
moveFolder
in interface DocumentRepository
PortalException
public Lock refreshFileEntryLock(java.lang.String lockUuid, long companyId, long expirationTime) throws PortalException
refreshFileEntryLock
in interface Repository
PortalException
public Lock refreshFolderLock(java.lang.String lockUuid, long companyId, long expirationTime) throws PortalException
refreshFolderLock
in interface Repository
PortalException
public void revertFileEntry(long userId, long fileEntryId, java.lang.String version, ServiceContext serviceContext) throws PortalException
revertFileEntry
in interface DocumentRepository
PortalException
public Hits search(long creatorUserId, int status, int start, int end) throws PortalException
search
in interface Repository
PortalException
public Hits search(long creatorUserId, long folderId, java.lang.String[] mimeTypes, int status, int start, int end) throws PortalException
search
in interface Repository
PortalException
public Hits search(SearchContext searchContext) throws SearchException
search
in interface Repository
search
in class BaseRepositoryImpl
SearchException
public Hits search(SearchContext searchContext, Query query) throws SearchException
search
in interface Repository
SearchException
public void setCmisRepository(BaseCmisRepository baseCmisRepository)
public FileEntry toFileEntry(java.lang.String objectId) throws PortalException
PortalException
public Folder toFolder(java.lang.String objectId) throws PortalException
PortalException
public void unlockFolder(long folderId, java.lang.String lockUuid) throws PortalException
unlockFolder
in interface Repository
PortalException
public FileEntry updateFileEntry(long userId, 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, ServiceContext serviceContext) throws PortalException
updateFileEntry
in interface DocumentRepository
PortalException
public FileEntry updateFileEntry(java.lang.String objectId, java.lang.String mimeType, java.util.Map<java.lang.String,java.lang.Object> properties, java.io.InputStream is, java.lang.String sourceFileName, long size, ServiceContext serviceContext) throws PortalException
PortalException
public FileShortcut updateFileShortcut(long userId, long fileShortcutId, long folderId, long toFileEntryId, ServiceContext serviceContext) throws PortalException
updateFileShortcut
in interface DocumentRepository
PortalException
public void updateFileShortcuts(long oldToFileEntryId, long newToFileEntryId) throws PortalException
updateFileShortcuts
in interface DocumentRepository
PortalException
public Folder updateFolder(long folderId, java.lang.String name, java.lang.String description, ServiceContext serviceContext) throws PortalException
updateFolder
in interface Repository
PortalException
public boolean verifyFileEntryCheckOut(long fileEntryId, java.lang.String lockUuid) throws PortalException
verifyFileEntryCheckOut
in interface Repository
PortalException
public boolean verifyInheritableLock(long folderId, java.lang.String lockUuid) throws PortalException
verifyInheritableLock
in interface Repository
PortalException