Liferay 7.0-ce-m3

com.liferay.portal.repository.cmis
Class CMISRepository

java.lang.Object
  extended by com.liferay.portal.kernel.repository.BaseRepositoryImpl
      extended by com.liferay.portal.kernel.repository.cmis.BaseCmisRepository
          extended by com.liferay.portal.repository.cmis.CMISRepository
All Implemented Interfaces:
BaseRepository, CapabilityProvider, DocumentRepository, Repository

public class CMISRepository
extends BaseCmisRepository

CMIS does not provide vendor neutral support for workflow, metadata, tags, categories, etc. They will be ignored in this implementation.

See Also:
Candidate v2 topics, Mixin / Aspect Support, CMIS Type Mutability proposal

Field Summary
 
Fields inherited from class com.liferay.portal.kernel.repository.BaseRepositoryImpl
assetEntryLocalService, companyLocalService, dlAppHelperLocalService, repositoryEntryLocalService, userLocalService
 
Constructor Summary
CMISRepository(CMISRepositoryHandler cmisRepositoryHandler)
           
 
Method Summary
 FileEntry addFileEntry(long userId, long folderId, String sourceFileName, String mimeType, String title, String description, String changeLog, InputStream is, long size, ServiceContext serviceContext)
           
 Folder addFolder(long userId, long parentFolderId, String name, String description, ServiceContext serviceContext)
           
protected  void cacheFoldersAndFileEntries(long folderId)
           
 FileVersion cancelCheckOut(long fileEntryId)
           
 void checkInFileEntry(long userId, long fileEntryId, boolean major, String changeLog, ServiceContext serviceContext)
           
 void checkInFileEntry(long userId, long fileEntryId, String lockUuid, ServiceContext serviceContext)
           
 FileEntry checkOutFileEntry(long fileEntryId, ServiceContext serviceContext)
           
 FileEntry checkOutFileEntry(long fileEntryId, String owner, long expirationTime, ServiceContext serviceContext)
           
protected  void checkUpdatable(Set<org.apache.chemistry.opencmis.commons.enums.Action> allowableActionsSet, Map<String,Object> properties, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream)
           
 FileEntry copyFileEntry(long userId, long groupId, long fileEntryId, long destFolderId, 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  Hits doSearch(SearchContext searchContext, 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  List<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  List<String> getDocumentIds(org.apache.chemistry.opencmis.client.api.Session session, long folderId, String[] mimeTypes)
           
protected  List<FileEntry> getFileEntries(long folderId)
           
 List<FileEntry> getFileEntries(long folderId, int start, int end, OrderByComparator<FileEntry> obc)
           
protected  List<FileEntry> getFileEntries(long folderId, long repositoryId)
           
 List<FileEntry> getFileEntries(long folderId, long fileEntryTypeId, int start, int end, OrderByComparator<FileEntry> obc)
           
 List<FileEntry> getFileEntries(long folderId, String[] mimeTypes, int start, int end, OrderByComparator<FileEntry> obc)
           
 int getFileEntriesCount(long folderId)
           
 int getFileEntriesCount(long folderId, long fileEntryTypeId)
           
 int getFileEntriesCount(long folderId, String[] mimeTypes)
           
 FileEntry getFileEntry(long fileEntryId)
           
 FileEntry getFileEntry(long folderId, String title)
           
 FileEntry getFileEntryByUuid(String uuid)
           
 FileVersion getFileVersion(long fileVersionId)
           
protected  FileVersion getFileVersion(org.apache.chemistry.opencmis.client.api.Session session, long fileVersionId)
           
 Folder getFolder(long folderId)
           
 Folder getFolder(long parentFolderId, String name)
           
protected  Folder getFolder(org.apache.chemistry.opencmis.client.api.Session session, long folderId)
           
protected  List<Folder> getFolders(long parentFolderId)
           
 List<Folder> getFolders(long parentFolderId, boolean includeMountfolders, int start, int end, OrderByComparator<Folder> obc)
           
protected  List<Object> getFoldersAndFileEntries(long folderId)
           
 List<Object> getFoldersAndFileEntries(long folderId, int start, int end, OrderByComparator<?> obc)
           
 List<Object> getFoldersAndFileEntries(long folderId, String[] mimeTypes, int start, int end, OrderByComparator<?> obc)
           
 int getFoldersAndFileEntriesCount(long folderId)
           
 int getFoldersAndFileEntriesCount(long folderId, String[] mimeTypes)
           
 int getFoldersCount(long parentFolderId, boolean includeMountfolders)
           
 int getFoldersFileEntriesCount(List<Long> folderIds, int status)
           
 String getLatestVersionId(String objectId)
           
 List<Folder> getMountFolders(long parentFolderId, int start, int end, OrderByComparator<Folder> obc)
           
 int getMountFoldersCount(long parentFolderId)
           
protected  String getObjectId(org.apache.chemistry.opencmis.client.api.Session session, long folderId, boolean fileEntry, String name)
           
 String getObjectName(String objectId)
           
 List<String> getObjectPaths(String objectId)
           
 org.apache.chemistry.opencmis.client.api.Session getSession()
           
protected  void getSubfolderIds(List<Long> subfolderIds, List<Folder> subfolders, boolean recurse)
           
 void getSubfolderIds(List<Long> folderIds, long folderId)
           
 List<Long> getSubfolderIds(long folderId, boolean recurse)
           
 String[] getSupportedConfigurations()
           
 String[][] getSupportedParameters()
           
 void initRepository()
           
protected  boolean isActionAllowable(String objectId, org.apache.chemistry.opencmis.commons.enums.Action action)
           
protected  boolean isAllVersionsSearchableSupported(org.apache.chemistry.opencmis.client.api.Session session)
           
 boolean isCancelCheckOutAllowable(String objectId)
           
 boolean isCheckInAllowable(String objectId)
           
 boolean isCheckOutAllowable(String objectId)
           
 boolean isDocumentRetrievableByVersionSeriesId()
           
 boolean isRefreshBeforePermissionCheck()
           
 boolean isSupportsMinorVersions()
           
 Lock lockFolder(long folderId)
           
 Lock lockFolder(long folderId, String owner, boolean inheritable, long expirationTime)
           
 FileEntry moveFileEntry(long userId, long fileEntryId, long newFolderId, ServiceContext serviceContext)
           
 Folder moveFolder(long userId, long folderId, long parentFolderId, ServiceContext serviceContext)
           
protected  void processException(Exception e)
           
 Lock refreshFileEntryLock(String lockUuid, long companyId, long expirationTime)
           
 Lock refreshFolderLock(String lockUuid, long companyId, long expirationTime)
           
 void revertFileEntry(long userId, long fileEntryId, String version, ServiceContext serviceContext)
           
 Hits search(long creatorUserId, int status, int start, int end)
           
 Hits search(long creatorUserId, long folderId, String[] mimeTypes, int status, int start, int end)
           
 Hits search(SearchContext searchContext, Query query)
           
protected  void setCachedSession(org.apache.chemistry.opencmis.client.api.Session session)
           
protected
<E> List<E>
subList(List<E> list, int start, int end, OrderByComparator<E> obc)
           
 FileEntry toFileEntry(org.apache.chemistry.opencmis.client.api.Document document)
           
protected  FileEntry toFileEntry(org.apache.chemistry.opencmis.client.api.Document document, boolean strict)
           
 FileEntry toFileEntry(String objectId)
           
protected  FileEntry toFileEntry(String objectId, boolean strict)
           
protected  String toFileEntryId(long fileEntryId)
           
 FileVersion toFileVersion(org.apache.chemistry.opencmis.client.api.Document version)
           
protected  String toFileVersionId(long fileVersionId)
           
 Folder toFolder(org.apache.chemistry.opencmis.client.api.Folder cmisFolder)
           
 Folder toFolder(String objectId)
           
protected  String toFolderId(org.apache.chemistry.opencmis.client.api.Session session, long folderId)
           
protected  Object toFolderOrFileEntry(org.apache.chemistry.opencmis.client.api.CmisObject cmisObject)
           
 void unlockFolder(long folderId, String lockUuid)
           
 FileEntry updateFileEntry(long userId, long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, boolean majorVersion, InputStream is, long size, ServiceContext serviceContext)
           
 FileEntry updateFileEntry(String objectId, String mimeType, Map<String,Object> properties, InputStream is, String sourceFileName, long size, ServiceContext serviceContext)
           
 Folder updateFolder(long folderId, String name, String description, ServiceContext serviceContext)
           
protected  void updateMappedId(long repositoryEntryId, String mappedId)
           
protected  void validateTitle(org.apache.chemistry.opencmis.client.api.Session session, long folderId, String title)
           
 boolean verifyFileEntryCheckOut(long fileEntryId, String lockUuid)
           
 boolean verifyInheritableLock(long folderId, String lockUuid)
           
 
Methods inherited from class com.liferay.portal.kernel.repository.BaseRepositoryImpl
addFileEntry, addFileEntry, addFileEntry, addFolder, checkInFileEntry, checkInFileEntry, checkInFileEntry, clearManualCheckInRequired, copyFileEntry, deleteAll, deleteFileEntry, deleteFileVersion, deleteFolder, getCapability, getCompanyId, getFileEntriesAndFileShortcuts, getFileEntriesAndFileShortcutsCount, getFileEntriesAndFileShortcutsCount, getFolders, getFoldersAndFileEntriesAndFileShortcuts, getFoldersAndFileEntriesAndFileShortcuts, getFoldersAndFileEntriesAndFileShortcutsCount, getFoldersAndFileEntriesAndFileShortcutsCount, getFoldersCount, getGroupId, getLocalRepository, getRepositoryEntryIds, getRepositoryFileEntries, getRepositoryFileEntries, getRepositoryFileEntriesCount, getRepositoryFileEntriesCount, getRepositoryId, getTypeSettingsProperties, isCapabilityProvided, lockFileEntry, lockFileEntry, moveFileEntry, moveFolder, revertFileEntry, search, setAssetEntryLocalService, setCompanyId, setCompanyLocalService, setDLAppHelperLocalService, setGroupId, setManualCheckInRequired, setRepositoryEntryLocalService, setRepositoryId, setTypeSettingsProperties, setUserLocalService, unlockFolder, updateFileEntry, updateFileEntry, updateFileEntry, updateFolder, verifyFileEntryLock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMISRepository

public CMISRepository(CMISRepositoryHandler cmisRepositoryHandler)
Method Detail

addFileEntry

public FileEntry addFileEntry(long userId,
                              long folderId,
                              String sourceFileName,
                              String mimeType,
                              String title,
                              String description,
                              String changeLog,
                              InputStream is,
                              long size,
                              ServiceContext serviceContext)
                       throws PortalException
Throws:
PortalException

addFolder

public Folder addFolder(long userId,
                        long parentFolderId,
                        String name,
                        String description,
                        ServiceContext serviceContext)
                 throws PortalException
Specified by:
addFolder in interface DocumentRepository
Specified by:
addFolder in class BaseRepositoryImpl
Throws:
PortalException

cancelCheckOut

public FileVersion cancelCheckOut(long fileEntryId)
                           throws PortalException
Throws:
PortalException

checkInFileEntry

public void checkInFileEntry(long userId,
                             long fileEntryId,
                             boolean major,
                             String changeLog,
                             ServiceContext serviceContext)

checkInFileEntry

public void checkInFileEntry(long userId,
                             long fileEntryId,
                             String lockUuid,
                             ServiceContext serviceContext)

checkOutFileEntry

public FileEntry checkOutFileEntry(long fileEntryId,
                                   ServiceContext serviceContext)
                            throws PortalException
Specified by:
checkOutFileEntry in interface Repository
Specified by:
checkOutFileEntry in class BaseRepositoryImpl
Throws:
PortalException

checkOutFileEntry

public FileEntry checkOutFileEntry(long fileEntryId,
                                   String owner,
                                   long expirationTime,
                                   ServiceContext serviceContext)
Specified by:
checkOutFileEntry in interface Repository
Specified by:
checkOutFileEntry in class BaseRepositoryImpl

copyFileEntry

public FileEntry copyFileEntry(long userId,
                               long groupId,
                               long fileEntryId,
                               long destFolderId,
                               ServiceContext serviceContext)
                        throws PortalException
Throws:
PortalException

deleteFileEntry

public void deleteFileEntry(long fileEntryId)
                     throws PortalException
Throws:
PortalException

deleteFolder

public void deleteFolder(long folderId)
                  throws PortalException
Throws:
PortalException

getFileEntries

public List<FileEntry> getFileEntries(long folderId,
                                      int start,
                                      int end,
                                      OrderByComparator<FileEntry> obc)

getFileEntries

public List<FileEntry> getFileEntries(long folderId,
                                      long fileEntryTypeId,
                                      int start,
                                      int end,
                                      OrderByComparator<FileEntry> obc)

getFileEntries

public List<FileEntry> getFileEntries(long folderId,
                                      String[] mimeTypes,
                                      int start,
                                      int end,
                                      OrderByComparator<FileEntry> obc)
                               throws PortalException
Throws:
PortalException

getFileEntriesCount

public int getFileEntriesCount(long folderId)

getFileEntriesCount

public int getFileEntriesCount(long folderId,
                               long fileEntryTypeId)

getFileEntriesCount

public int getFileEntriesCount(long folderId,
                               String[] mimeTypes)
                        throws PortalException
Throws:
PortalException

getFileEntry

public FileEntry getFileEntry(long fileEntryId)
                       throws PortalException
Throws:
PortalException

getFileEntry

public FileEntry getFileEntry(long folderId,
                              String title)
                       throws PortalException
Throws:
PortalException

getFileEntryByUuid

public FileEntry getFileEntryByUuid(String uuid)
                             throws PortalException
Throws:
PortalException

getFileVersion

public FileVersion getFileVersion(long fileVersionId)
                           throws PortalException
Throws:
PortalException

getFolder

public Folder getFolder(long folderId)
                 throws PortalException
Throws:
PortalException

getFolder

public Folder getFolder(long parentFolderId,
                        String name)
                 throws PortalException
Throws:
PortalException

getFolders

public List<Folder> getFolders(long parentFolderId,
                               boolean includeMountfolders,
                               int start,
                               int end,
                               OrderByComparator<Folder> obc)
                        throws PortalException
Throws:
PortalException

getFoldersAndFileEntries

public List<Object> getFoldersAndFileEntries(long folderId,
                                             int start,
                                             int end,
                                             OrderByComparator<?> obc)
Specified by:
getFoldersAndFileEntries in class BaseRepositoryImpl

getFoldersAndFileEntries

public List<Object> getFoldersAndFileEntries(long folderId,
                                             String[] mimeTypes,
                                             int start,
                                             int end,
                                             OrderByComparator<?> obc)
                                      throws PortalException
Specified by:
getFoldersAndFileEntries in class BaseRepositoryImpl
Throws:
PortalException

getFoldersAndFileEntriesCount

public int getFoldersAndFileEntriesCount(long folderId)
Specified by:
getFoldersAndFileEntriesCount in class BaseRepositoryImpl

getFoldersAndFileEntriesCount

public int getFoldersAndFileEntriesCount(long folderId,
                                         String[] mimeTypes)
                                  throws PortalException
Specified by:
getFoldersAndFileEntriesCount in class BaseRepositoryImpl
Throws:
PortalException

getFoldersCount

public int getFoldersCount(long parentFolderId,
                           boolean includeMountfolders)
                    throws PortalException
Throws:
PortalException

getFoldersFileEntriesCount

public int getFoldersFileEntriesCount(List<Long> folderIds,
                                      int status)

getLatestVersionId

public String getLatestVersionId(String objectId)
Specified by:
getLatestVersionId in class BaseCmisRepository

getMountFolders

public List<Folder> getMountFolders(long parentFolderId,
                                    int start,
                                    int end,
                                    OrderByComparator<Folder> obc)

getMountFoldersCount

public int getMountFoldersCount(long parentFolderId)

getObjectName

public String getObjectName(String objectId)
                     throws PortalException
Specified by:
getObjectName in class BaseCmisRepository
Throws:
PortalException

getObjectPaths

public List<String> getObjectPaths(String objectId)
                            throws PortalException
Specified by:
getObjectPaths in class BaseCmisRepository
Throws:
PortalException

getSession

public org.apache.chemistry.opencmis.client.api.Session getSession()
                                                            throws PortalException
Throws:
PortalException

getSubfolderIds

public void getSubfolderIds(List<Long> folderIds,
                            long folderId)

getSubfolderIds

public List<Long> getSubfolderIds(long folderId,
                                  boolean recurse)

getSupportedConfigurations

public String[] getSupportedConfigurations()

getSupportedParameters

public String[][] getSupportedParameters()

initRepository

public void initRepository()
                    throws PortalException
Specified by:
initRepository in interface BaseRepository
Specified by:
initRepository in class BaseRepositoryImpl
Throws:
PortalException

isCancelCheckOutAllowable

public boolean isCancelCheckOutAllowable(String objectId)
                                  throws PortalException
Specified by:
isCancelCheckOutAllowable in class BaseCmisRepository
Throws:
PortalException

isCheckInAllowable

public boolean isCheckInAllowable(String objectId)
                           throws PortalException
Specified by:
isCheckInAllowable in class BaseCmisRepository
Throws:
PortalException

isCheckOutAllowable

public boolean isCheckOutAllowable(String objectId)
                            throws PortalException
Specified by:
isCheckOutAllowable in class BaseCmisRepository
Throws:
PortalException

isDocumentRetrievableByVersionSeriesId

public boolean isDocumentRetrievableByVersionSeriesId()

isRefreshBeforePermissionCheck

public boolean isRefreshBeforePermissionCheck()

isSupportsMinorVersions

public boolean isSupportsMinorVersions()
                                throws PortalException
Specified by:
isSupportsMinorVersions in class BaseCmisRepository
Throws:
PortalException

lockFolder

public Lock lockFolder(long folderId)

lockFolder

public Lock lockFolder(long folderId,
                       String owner,
                       boolean inheritable,
                       long expirationTime)

moveFileEntry

public FileEntry moveFileEntry(long userId,
                               long fileEntryId,
                               long newFolderId,
                               ServiceContext serviceContext)
                        throws PortalException
Throws:
PortalException

moveFolder

public Folder moveFolder(long userId,
                         long folderId,
                         long parentFolderId,
                         ServiceContext serviceContext)
                  throws PortalException
Throws:
PortalException

refreshFileEntryLock

public Lock refreshFileEntryLock(String lockUuid,
                                 long companyId,
                                 long expirationTime)

refreshFolderLock

public Lock refreshFolderLock(String lockUuid,
                              long companyId,
                              long expirationTime)

revertFileEntry

public void revertFileEntry(long userId,
                            long fileEntryId,
                            String version,
                            ServiceContext serviceContext)
                     throws PortalException
Throws:
PortalException

search

public Hits search(long creatorUserId,
                   int status,
                   int start,
                   int end)

search

public Hits search(long creatorUserId,
                   long folderId,
                   String[] mimeTypes,
                   int status,
                   int start,
                   int end)

search

public Hits search(SearchContext searchContext,
                   Query query)
            throws SearchException
Throws:
SearchException

toFileEntry

public FileEntry toFileEntry(org.apache.chemistry.opencmis.client.api.Document document)
                      throws PortalException
Throws:
PortalException

toFileEntry

public FileEntry toFileEntry(String objectId)
                      throws PortalException
Specified by:
toFileEntry in class BaseCmisRepository
Throws:
PortalException

toFileVersion

public FileVersion toFileVersion(org.apache.chemistry.opencmis.client.api.Document version)
                          throws PortalException
Throws:
PortalException

toFolder

public Folder toFolder(org.apache.chemistry.opencmis.client.api.Folder cmisFolder)
                throws PortalException
Throws:
PortalException

toFolder

public Folder toFolder(String objectId)
                throws PortalException
Specified by:
toFolder in class BaseCmisRepository
Throws:
PortalException

unlockFolder

public void unlockFolder(long folderId,
                         String lockUuid)

updateFileEntry

public FileEntry updateFileEntry(long userId,
                                 long fileEntryId,
                                 String sourceFileName,
                                 String mimeType,
                                 String title,
                                 String description,
                                 String changeLog,
                                 boolean majorVersion,
                                 InputStream is,
                                 long size,
                                 ServiceContext serviceContext)
                          throws PortalException
Throws:
PortalException

updateFileEntry

public FileEntry updateFileEntry(String objectId,
                                 String mimeType,
                                 Map<String,Object> properties,
                                 InputStream is,
                                 String sourceFileName,
                                 long size,
                                 ServiceContext serviceContext)
                          throws PortalException
Specified by:
updateFileEntry in class BaseCmisRepository
Throws:
PortalException

updateFolder

public Folder updateFolder(long folderId,
                           String name,
                           String description,
                           ServiceContext serviceContext)
                    throws PortalException
Throws:
PortalException

verifyFileEntryCheckOut

public boolean verifyFileEntryCheckOut(long fileEntryId,
                                       String lockUuid)

verifyInheritableLock

public boolean verifyInheritableLock(long folderId,
                                     String lockUuid)

cacheFoldersAndFileEntries

protected void cacheFoldersAndFileEntries(long folderId)

checkUpdatable

protected void checkUpdatable(Set<org.apache.chemistry.opencmis.commons.enums.Action> allowableActionsSet,
                              Map<String,Object> properties,
                              org.apache.chemistry.opencmis.commons.data.ContentStream contentStream)
                       throws PrincipalException
Throws:
PrincipalException

deleteMappedFileEntry

protected void deleteMappedFileEntry(org.apache.chemistry.opencmis.client.api.Document document)

deleteMappedFolder

protected void deleteMappedFolder(org.apache.chemistry.opencmis.client.api.Folder cmisFolder)

doSearch

protected Hits doSearch(SearchContext searchContext,
                        Query query)
                 throws Exception
Throws:
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 PortalException
Throws:
PortalException

getCmisFolderIds

protected List<String> getCmisFolderIds(org.apache.chemistry.opencmis.client.api.Session session,
                                        long folderId)
                                 throws PortalException
Throws:
PortalException

getDocument

protected org.apache.chemistry.opencmis.client.api.Document getDocument(org.apache.chemistry.opencmis.client.api.Session session,
                                                                        long fileEntryId)
                                                                 throws PortalException
Throws:
PortalException

getDocumentIds

protected List<String> getDocumentIds(org.apache.chemistry.opencmis.client.api.Session session,
                                      long folderId,
                                      String[] mimeTypes)
                               throws PortalException
Throws:
PortalException

getFileEntries

protected List<FileEntry> getFileEntries(long folderId)

getFileEntries

protected List<FileEntry> getFileEntries(long folderId,
                                         long repositoryId)

getFileVersion

protected FileVersion getFileVersion(org.apache.chemistry.opencmis.client.api.Session session,
                                     long fileVersionId)
                              throws PortalException
Throws:
PortalException

getFolder

protected Folder getFolder(org.apache.chemistry.opencmis.client.api.Session session,
                           long folderId)
                    throws PortalException
Throws:
PortalException

getFolders

protected List<Folder> getFolders(long parentFolderId)
                           throws PortalException
Throws:
PortalException

getFoldersAndFileEntries

protected List<Object> getFoldersAndFileEntries(long folderId)

getObjectId

protected String getObjectId(org.apache.chemistry.opencmis.client.api.Session session,
                             long folderId,
                             boolean fileEntry,
                             String name)
                      throws PortalException
Throws:
PortalException

getSubfolderIds

protected void getSubfolderIds(List<Long> subfolderIds,
                               List<Folder> subfolders,
                               boolean recurse)
                        throws PortalException
Throws:
PortalException

isActionAllowable

protected boolean isActionAllowable(String objectId,
                                    org.apache.chemistry.opencmis.commons.enums.Action action)
                             throws PortalException
Throws:
PortalException

isAllVersionsSearchableSupported

protected boolean isAllVersionsSearchableSupported(org.apache.chemistry.opencmis.client.api.Session session)

processException

protected void processException(Exception e)
                         throws PortalException
Throws:
PortalException

setCachedSession

protected void setCachedSession(org.apache.chemistry.opencmis.client.api.Session session)

subList

protected <E> List<E> subList(List<E> list,
                              int start,
                              int end,
                              OrderByComparator<E> obc)

toFileEntry

protected FileEntry toFileEntry(org.apache.chemistry.opencmis.client.api.Document document,
                                boolean strict)
                         throws PortalException
Throws:
PortalException

toFileEntry

protected FileEntry toFileEntry(String objectId,
                                boolean strict)
                         throws PortalException
Throws:
PortalException

toFileEntryId

protected String toFileEntryId(long fileEntryId)
                        throws PortalException
Throws:
PortalException

toFileVersionId

protected String toFileVersionId(long fileVersionId)
                          throws PortalException
Throws:
PortalException

toFolderId

protected String toFolderId(org.apache.chemistry.opencmis.client.api.Session session,
                            long folderId)
                     throws PortalException
Throws:
PortalException

toFolderOrFileEntry

protected Object toFolderOrFileEntry(org.apache.chemistry.opencmis.client.api.CmisObject cmisObject)
                              throws PortalException
Throws:
PortalException

updateMappedId

protected void updateMappedId(long repositoryEntryId,
                              String mappedId)
                       throws PortalException
Throws:
PortalException

validateTitle

protected void validateTitle(org.apache.chemistry.opencmis.client.api.Session session,
                             long folderId,
                             String title)
                      throws PortalException
Throws:
PortalException

Liferay 7.0-ce-m3