com.liferay.portal.repository.cmis
Class CMISRepository
java.lang.Object
com.liferay.portal.kernel.repository.BaseRepositoryImpl
com.liferay.portal.kernel.repository.cmis.BaseCmisRepository
com.liferay.portal.repository.cmis.CMISRepository
- All Implemented Interfaces:
- com.liferay.portal.kernel.repository.BaseRepository, com.liferay.portal.kernel.repository.Repository
public class CMISRepository
- extends com.liferay.portal.kernel.repository.cmis.BaseCmisRepository
CMIS does not provide vendor neutral support for workflow, metadata, tags,
categories, etc. They will be ignored in this implementation.
- Author:
- Alexander Chow
- See Also:
-
Candidate v2 topics,
Mixin /
Aspect Support,
CMIS Type Mutability proposal
| Fields inherited from class com.liferay.portal.kernel.repository.BaseRepositoryImpl |
assetEntryLocalService, companyLocalService, counterLocalService, dlAppHelperLocalService, userLocalService |
|
Constructor Summary |
CMISRepository(com.liferay.portal.kernel.repository.cmis.CMISRepositoryHandler cmisRepositoryHandler)
|
|
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.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)
|
protected void |
cacheFoldersAndFileEntries(long folderId)
|
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)
|
protected void |
checkUpdatable(java.util.Set<org.apache.chemistry.opencmis.commons.enums.Action> allowableActionsSet,
java.util.Map<java.lang.String,java.lang.Object> properties,
org.apache.chemistry.opencmis.commons.data.ContentStream contentStream)
|
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 |
deleteFolder(long folderId)
|
protected void |
deleteMappedFileEntry(org.apache.chemistry.opencmis.client.api.Document document)
|
protected void |
deleteMappedFolder(org.apache.chemistry.opencmis.client.api.Folder cmisFolder)
|
protected com.liferay.portal.kernel.search.Hits |
doSearch(com.liferay.portal.kernel.search.SearchContext searchContext,
com.liferay.portal.kernel.search.Query query)
|
protected org.apache.chemistry.opencmis.client.api.Session |
getCachedSession()
|
protected org.apache.chemistry.opencmis.client.api.Folder |
getCmisFolder(org.apache.chemistry.opencmis.client.api.Session session,
long folderId)
|
protected java.util.List<java.lang.String> |
getCmisFolderIds(org.apache.chemistry.opencmis.client.api.Session session,
long folderId)
|
protected org.apache.chemistry.opencmis.client.api.Document |
getDocument(org.apache.chemistry.opencmis.client.api.Session session,
long fileEntryId)
|
protected java.util.List<java.lang.String> |
getDocumentIds(org.apache.chemistry.opencmis.client.api.Session session,
long folderId,
java.lang.String[] mimeTypes)
|
protected java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> |
getFileEntries(long folderId)
|
java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> |
getFileEntries(long folderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
protected java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> |
getFileEntries(long folderId,
long repositoryId)
|
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)
|
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.kernel.repository.model.FileVersion |
getFileVersion(long fileVersionId)
|
protected com.liferay.portal.kernel.repository.model.FileVersion |
getFileVersion(org.apache.chemistry.opencmis.client.api.Session session,
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)
|
protected com.liferay.portal.kernel.repository.model.Folder |
getFolder(org.apache.chemistry.opencmis.client.api.Session session,
long folderId)
|
protected java.util.List<com.liferay.portal.kernel.repository.model.Folder> |
getFolders(long parentFolderId)
|
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)
|
protected java.util.List<java.lang.Object> |
getFoldersAndFileEntries(long folderId)
|
java.util.List<java.lang.Object> |
getFoldersAndFileEntries(long folderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<java.lang.Object> |
getFoldersAndFileEntries(long folderId,
java.lang.String[] mimeTypes,
int start,
int end,
com.liferay.portal.kernel.util.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.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)
|
protected java.lang.String |
getObjectId(org.apache.chemistry.opencmis.client.api.Session session,
long folderId,
boolean fileEntry,
java.lang.String name)
|
java.lang.String |
getObjectName(java.lang.String objectId)
|
java.util.List<java.lang.String> |
getObjectPaths(java.lang.String objectId)
|
org.apache.chemistry.opencmis.client.api.Session |
getSession()
|
protected void |
getSubfolderIds(java.util.List<java.lang.Long> subfolderIds,
java.util.List<com.liferay.portal.kernel.repository.model.Folder> subfolders,
boolean recurse)
|
void |
getSubfolderIds(java.util.List<java.lang.Long> folderIds,
long folderId)
|
java.util.List<java.lang.Long> |
getSubfolderIds(long folderId,
boolean recurse)
|
java.lang.String[] |
getSupportedConfigurations()
|
java.lang.String[][] |
getSupportedParameters()
|
void |
initRepository()
|
protected boolean |
isActionAllowable(java.lang.String objectId,
org.apache.chemistry.opencmis.commons.enums.Action action)
|
boolean |
isCancelCheckOutAllowable(java.lang.String objectId)
|
boolean |
isCheckInAllowable(java.lang.String objectId)
|
boolean |
isCheckOutAllowable(java.lang.String objectId)
|
boolean |
isDocumentRetrievableByVersionSeriesId()
|
boolean |
isRefreshBeforePermissionCheck()
|
boolean |
isSupportsMinorVersions()
|
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)
|
protected void |
processException(java.lang.Exception e)
|
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.Query query)
|
protected void |
setCachedSession(org.apache.chemistry.opencmis.client.api.Session session)
|
protected
|
subList(java.util.List<E> list,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
com.liferay.portal.kernel.repository.model.FileEntry |
toFileEntry(org.apache.chemistry.opencmis.client.api.Document document)
|
com.liferay.portal.kernel.repository.model.FileEntry |
toFileEntry(java.lang.String objectId)
|
protected java.lang.String |
toFileEntryId(long fileEntryId)
|
com.liferay.portal.kernel.repository.model.FileVersion |
toFileVersion(org.apache.chemistry.opencmis.client.api.Document version)
|
protected java.lang.String |
toFileVersionId(long fileVersionId)
|
com.liferay.portal.kernel.repository.model.Folder |
toFolder(org.apache.chemistry.opencmis.client.api.Folder cmisFolder)
|
com.liferay.portal.kernel.repository.model.Folder |
toFolder(java.lang.String objectId)
|
protected java.lang.String |
toFolderId(org.apache.chemistry.opencmis.client.api.Session session,
long folderId)
|
protected java.lang.Object |
toFolderOrFileEntry(org.apache.chemistry.opencmis.client.api.CmisObject cmisObject)
|
void |
unlockFolder(long folderId,
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.InputStream is,
long size,
com.liferay.portal.service.ServiceContext serviceContext)
|
com.liferay.portal.kernel.repository.model.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,
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)
|
protected void |
updateMappedId(long repositoryEntryId,
java.lang.String mappedId)
|
protected void |
validateTitle(org.apache.chemistry.opencmis.client.api.Session session,
long folderId,
java.lang.String title)
|
boolean |
verifyFileEntryCheckOut(long fileEntryId,
java.lang.String lockUuid)
|
boolean |
verifyInheritableLock(long folderId,
java.lang.String lockUuid)
|
| Methods inherited from class com.liferay.portal.kernel.repository.BaseRepositoryImpl |
addFileEntry, deleteFileEntry, deleteFolder, getCompanyId, getFileEntriesAndFileShortcuts, getFileEntriesAndFileShortcutsCount, getFileEntriesAndFileShortcutsCount, getFoldersAndFileEntriesAndFileShortcuts, getFoldersAndFileEntriesAndFileShortcuts, getFoldersAndFileEntriesAndFileShortcutsCount, getFoldersAndFileEntriesAndFileShortcutsCount, getGroupId, getLocalRepository, getRepositoryEntryIds, getRepositoryFileEntries, getRepositoryFileEntries, getRepositoryFileEntriesCount, getRepositoryFileEntriesCount, getRepositoryId, getTypeSettingsProperties, lockFileEntry, lockFileEntry, search, setAssetEntryLocalService, setCompanyId, setCompanyLocalService, setCounterLocalService, setDLAppHelperLocalService, setGroupId, setRepositoryId, setTypeSettingsProperties, setUserLocalService, unlockFileEntry, unlockFileEntry, unlockFolder, updateFileEntry, verifyFileEntryLock |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CMISRepository
public CMISRepository(com.liferay.portal.kernel.repository.cmis.CMISRepositoryHandler cmisRepositoryHandler)
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
- 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
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
cancelCheckOut
public void cancelCheckOut(long fileEntryId)
checkInFileEntry
public void checkInFileEntry(long fileEntryId,
boolean major,
java.lang.String changeLog,
com.liferay.portal.service.ServiceContext serviceContext)
checkInFileEntry
public void checkInFileEntry(long fileEntryId,
java.lang.String lockUuid)
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
- 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)
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
- 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
- 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
- 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
- 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)
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.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFileEntriesCount
public int getFileEntriesCount(long folderId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFileEntriesCount
public int getFileEntriesCount(long folderId,
long fileEntryTypeId)
getFileEntriesCount
public int getFileEntriesCount(long folderId,
java.lang.String[] mimeTypes)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
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
- 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
- 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
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
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
- 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
- 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
- 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.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFoldersAndFileEntries
public java.util.List<java.lang.Object> getFoldersAndFileEntries(long folderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFoldersAndFileEntries in class com.liferay.portal.kernel.repository.BaseRepositoryImpl
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFoldersAndFileEntries
public java.util.List<java.lang.Object> getFoldersAndFileEntries(long folderId,
java.lang.String[] mimeTypes,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFoldersAndFileEntries in class com.liferay.portal.kernel.repository.BaseRepositoryImpl
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFoldersAndFileEntriesCount
public int getFoldersAndFileEntriesCount(long folderId)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFoldersAndFileEntriesCount in class com.liferay.portal.kernel.repository.BaseRepositoryImpl
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFoldersAndFileEntriesCount
public int getFoldersAndFileEntriesCount(long folderId,
java.lang.String[] mimeTypes)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFoldersAndFileEntriesCount in class com.liferay.portal.kernel.repository.BaseRepositoryImpl
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFoldersCount
public int getFoldersCount(long parentFolderId,
boolean includeMountfolders)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
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
- Throws:
com.liferay.portal.kernel.exception.SystemException
getLatestVersionId
public java.lang.String getLatestVersionId(java.lang.String objectId)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getLatestVersionId in class com.liferay.portal.kernel.repository.cmis.BaseCmisRepository
- 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)
getMountFoldersCount
public int getMountFoldersCount(long parentFolderId)
getObjectName
public java.lang.String getObjectName(java.lang.String objectId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
getObjectName in class com.liferay.portal.kernel.repository.cmis.BaseCmisRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getObjectPaths
public java.util.List<java.lang.String> getObjectPaths(java.lang.String objectId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
getObjectPaths in class com.liferay.portal.kernel.repository.cmis.BaseCmisRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getSession
public org.apache.chemistry.opencmis.client.api.Session getSession()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
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
- 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
- Throws:
com.liferay.portal.kernel.exception.SystemException
getSupportedConfigurations
public java.lang.String[] getSupportedConfigurations()
getSupportedParameters
public java.lang.String[][] getSupportedParameters()
initRepository
public void initRepository()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
initRepository in interface com.liferay.portal.kernel.repository.BaseRepository- Specified by:
initRepository in class com.liferay.portal.kernel.repository.BaseRepositoryImpl
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
isCancelCheckOutAllowable
public boolean isCancelCheckOutAllowable(java.lang.String objectId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
isCancelCheckOutAllowable in class com.liferay.portal.kernel.repository.cmis.BaseCmisRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
isCheckInAllowable
public boolean isCheckInAllowable(java.lang.String objectId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
isCheckInAllowable in class com.liferay.portal.kernel.repository.cmis.BaseCmisRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
isCheckOutAllowable
public boolean isCheckOutAllowable(java.lang.String objectId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
isCheckOutAllowable in class com.liferay.portal.kernel.repository.cmis.BaseCmisRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
isDocumentRetrievableByVersionSeriesId
public boolean isDocumentRetrievableByVersionSeriesId()
isRefreshBeforePermissionCheck
public boolean isRefreshBeforePermissionCheck()
isSupportsMinorVersions
public boolean isSupportsMinorVersions()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
isSupportsMinorVersions in class com.liferay.portal.kernel.repository.cmis.BaseCmisRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
lockFolder
public com.liferay.portal.model.Lock lockFolder(long folderId)
lockFolder
public com.liferay.portal.model.Lock lockFolder(long folderId,
java.lang.String owner,
boolean inheritable,
long expirationTime)
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
- 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
- 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)
refreshFolderLock
public com.liferay.portal.model.Lock refreshFolderLock(java.lang.String lockUuid,
long expirationTime)
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
- 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,
com.liferay.portal.kernel.search.Query query)
throws com.liferay.portal.kernel.search.SearchException
- Throws:
com.liferay.portal.kernel.search.SearchException
toFileEntry
public com.liferay.portal.kernel.repository.model.FileEntry toFileEntry(org.apache.chemistry.opencmis.client.api.Document document)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
toFileEntry
public com.liferay.portal.kernel.repository.model.FileEntry toFileEntry(java.lang.String objectId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
toFileEntry in class com.liferay.portal.kernel.repository.cmis.BaseCmisRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
toFileVersion
public com.liferay.portal.kernel.repository.model.FileVersion toFileVersion(org.apache.chemistry.opencmis.client.api.Document version)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
toFolder
public com.liferay.portal.kernel.repository.model.Folder toFolder(org.apache.chemistry.opencmis.client.api.Folder cmisFolder)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
toFolder
public com.liferay.portal.kernel.repository.model.Folder toFolder(java.lang.String objectId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
toFolder in class com.liferay.portal.kernel.repository.cmis.BaseCmisRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
unlockFolder
public void unlockFolder(long folderId,
java.lang.String lockUuid)
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
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
updateFileEntry
public com.liferay.portal.kernel.repository.model.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,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
updateFileEntry in class com.liferay.portal.kernel.repository.cmis.BaseCmisRepository
- 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
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
verifyFileEntryCheckOut
public boolean verifyFileEntryCheckOut(long fileEntryId,
java.lang.String lockUuid)
verifyInheritableLock
public boolean verifyInheritableLock(long folderId,
java.lang.String lockUuid)
cacheFoldersAndFileEntries
protected void cacheFoldersAndFileEntries(long folderId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
checkUpdatable
protected void checkUpdatable(java.util.Set<org.apache.chemistry.opencmis.commons.enums.Action> allowableActionsSet,
java.util.Map<java.lang.String,java.lang.Object> properties,
org.apache.chemistry.opencmis.commons.data.ContentStream contentStream)
throws com.liferay.portal.security.auth.PrincipalException
- Throws:
com.liferay.portal.security.auth.PrincipalException
deleteMappedFileEntry
protected void deleteMappedFileEntry(org.apache.chemistry.opencmis.client.api.Document document)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
deleteMappedFolder
protected void deleteMappedFolder(org.apache.chemistry.opencmis.client.api.Folder cmisFolder)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
doSearch
protected com.liferay.portal.kernel.search.Hits doSearch(com.liferay.portal.kernel.search.SearchContext searchContext,
com.liferay.portal.kernel.search.Query query)
throws java.lang.Exception
- Throws:
java.lang.Exception
getCachedSession
protected org.apache.chemistry.opencmis.client.api.Session getCachedSession()
getCmisFolder
protected org.apache.chemistry.opencmis.client.api.Folder getCmisFolder(org.apache.chemistry.opencmis.client.api.Session session,
long folderId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getCmisFolderIds
protected java.util.List<java.lang.String> getCmisFolderIds(org.apache.chemistry.opencmis.client.api.Session session,
long folderId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getDocument
protected org.apache.chemistry.opencmis.client.api.Document getDocument(org.apache.chemistry.opencmis.client.api.Session session,
long fileEntryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getDocumentIds
protected java.util.List<java.lang.String> getDocumentIds(org.apache.chemistry.opencmis.client.api.Session session,
long folderId,
java.lang.String[] mimeTypes)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFileEntries
protected java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries(long folderId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFileEntries
protected java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries(long folderId,
long repositoryId)
getFileVersion
protected com.liferay.portal.kernel.repository.model.FileVersion getFileVersion(org.apache.chemistry.opencmis.client.api.Session session,
long fileVersionId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFolder
protected com.liferay.portal.kernel.repository.model.Folder getFolder(org.apache.chemistry.opencmis.client.api.Session session,
long folderId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFolders
protected java.util.List<com.liferay.portal.kernel.repository.model.Folder> getFolders(long parentFolderId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFoldersAndFileEntries
protected java.util.List<java.lang.Object> getFoldersAndFileEntries(long folderId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getObjectId
protected java.lang.String getObjectId(org.apache.chemistry.opencmis.client.api.Session session,
long folderId,
boolean fileEntry,
java.lang.String name)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getSubfolderIds
protected void getSubfolderIds(java.util.List<java.lang.Long> subfolderIds,
java.util.List<com.liferay.portal.kernel.repository.model.Folder> subfolders,
boolean recurse)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
isActionAllowable
protected boolean isActionAllowable(java.lang.String objectId,
org.apache.chemistry.opencmis.commons.enums.Action action)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
processException
protected void processException(java.lang.Exception e)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
setCachedSession
protected void setCachedSession(org.apache.chemistry.opencmis.client.api.Session session)
subList
protected <E> java.util.List<E> subList(java.util.List<E> list,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
toFileEntryId
protected java.lang.String toFileEntryId(long fileEntryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
toFileVersionId
protected java.lang.String toFileVersionId(long fileVersionId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
toFolderId
protected java.lang.String toFolderId(org.apache.chemistry.opencmis.client.api.Session session,
long folderId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
toFolderOrFileEntry
protected java.lang.Object toFolderOrFileEntry(org.apache.chemistry.opencmis.client.api.CmisObject cmisObject)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
updateMappedId
protected void updateMappedId(long repositoryEntryId,
java.lang.String mappedId)
throws com.liferay.portal.NoSuchRepositoryEntryException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.NoSuchRepositoryEntryException
com.liferay.portal.kernel.exception.SystemException
validateTitle
protected void validateTitle(org.apache.chemistry.opencmis.client.api.Session session,
long folderId,
java.lang.String title)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException