Liferay 6.2-ce-ga5

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, 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, counterLocalService, dlAppHelperLocalService, userLocalService
 
Constructor Summary
CMISRepository(CMISRepositoryHandler cmisRepositoryHandler)
           
 
Method Summary
 FileEntry addFileEntry(long folderId, String sourceFileName, String mimeType, String title, String description, String changeLog, InputStream is, long size, ServiceContext serviceContext)
           
 Folder addFolder(long parentFolderId, String title, String description, ServiceContext serviceContext)
           
protected  void cacheFoldersAndFileEntries(long folderId)
           
 FileVersion cancelCheckOut(long fileEntryId)
           
 void checkInFileEntry(long fileEntryId, boolean major, String changeLog, ServiceContext serviceContext)
           
 void checkInFileEntry(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 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 obc)
           
protected  List<FileEntry> getFileEntries(long folderId, long repositoryId)
           
 List<FileEntry> getFileEntries(long folderId, long fileEntryTypeId, int start, int end, OrderByComparator obc)
           
 List<FileEntry> getFileEntries(long folderId, String[] mimeTypes, int start, int end, OrderByComparator 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 title)
           
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 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 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 fileEntryId, long newFolderId, ServiceContext serviceContext)
           
 Folder moveFolder(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 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 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 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 title, 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, checkInFileEntry, clearManualCheckInRequired, deleteFileEntry, deleteFileVersion, deleteFolder, getCompanyId, getFileEntriesAndFileShortcuts, getFileEntriesAndFileShortcutsCount, getFileEntriesAndFileShortcutsCount, getFolders, getFoldersAndFileEntriesAndFileShortcuts, getFoldersAndFileEntriesAndFileShortcuts, getFoldersAndFileEntriesAndFileShortcutsCount, getFoldersAndFileEntriesAndFileShortcutsCount, getFoldersCount, getGroupId, getLocalRepository, getRepositoryEntryIds, getRepositoryFileEntries, getRepositoryFileEntries, getRepositoryFileEntriesCount, getRepositoryFileEntriesCount, getRepositoryId, getTypeSettingsProperties, lockFileEntry, lockFileEntry, search, setAssetEntryLocalService, setCompanyId, setCompanyLocalService, setCounterLocalService, setDLAppHelperLocalService, setGroupId, setManualCheckInRequired, setRepositoryId, setTypeSettingsProperties, setUserLocalService, unlockFolder, updateFileEntry, 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 folderId,
                              String sourceFileName,
                              String mimeType,
                              String title,
                              String description,
                              String changeLog,
                              InputStream is,
                              long size,
                              ServiceContext serviceContext)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

addFolder

public Folder addFolder(long parentFolderId,
                        String title,
                        String description,
                        ServiceContext serviceContext)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

cancelCheckOut

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

checkInFileEntry

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

checkInFileEntry

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

checkOutFileEntry

public FileEntry checkOutFileEntry(long fileEntryId,
                                   ServiceContext serviceContext)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

checkOutFileEntry

public FileEntry checkOutFileEntry(long fileEntryId,
                                   String owner,
                                   long expirationTime,
                                   ServiceContext serviceContext)

copyFileEntry

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

deleteFileEntry

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

deleteFolder

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

getFileEntries

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

getFileEntries

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

getFileEntries

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

getFileEntriesCount

public int getFileEntriesCount(long folderId)
                        throws SystemException
Throws:
SystemException

getFileEntriesCount

public int getFileEntriesCount(long folderId,
                               long fileEntryTypeId)

getFileEntriesCount

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

getFileEntry

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

getFileEntry

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

getFileEntryByUuid

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

getFileVersion

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

getFolder

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

getFolder

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

getFolders

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

getFoldersAndFileEntries

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

getFoldersAndFileEntries

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

getFoldersAndFileEntriesCount

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

getFoldersAndFileEntriesCount

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

getFoldersCount

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

getFoldersFileEntriesCount

public int getFoldersFileEntriesCount(List<Long> folderIds,
                                      int status)
                               throws SystemException
Throws:
SystemException

getLatestVersionId

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

getMountFolders

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

getMountFoldersCount

public int getMountFoldersCount(long parentFolderId)

getObjectName

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

getObjectPaths

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

getSession

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

getSubfolderIds

public void getSubfolderIds(List<Long> folderIds,
                            long folderId)
                     throws SystemException
Throws:
SystemException

getSubfolderIds

public List<Long> getSubfolderIds(long folderId,
                                  boolean recurse)
                           throws SystemException
Throws:
SystemException

getSupportedConfigurations

public String[] getSupportedConfigurations()

getSupportedParameters

public String[][] getSupportedParameters()

initRepository

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

isCancelCheckOutAllowable

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

isCheckInAllowable

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

isCheckOutAllowable

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

isDocumentRetrievableByVersionSeriesId

public boolean isDocumentRetrievableByVersionSeriesId()

isRefreshBeforePermissionCheck

public boolean isRefreshBeforePermissionCheck()

isSupportsMinorVersions

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

lockFolder

public Lock lockFolder(long folderId)

lockFolder

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

moveFileEntry

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

moveFolder

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

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 fileEntryId,
                            String version,
                            ServiceContext serviceContext)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

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,
                             SystemException
Throws:
PortalException
SystemException

toFileEntry

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

toFileVersion

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

toFolder

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

toFolder

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

unlockFolder

public void unlockFolder(long folderId,
                         String lockUuid)

updateFileEntry

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

updateFileEntry

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

updateFolder

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

verifyFileEntryCheckOut

public boolean verifyFileEntryCheckOut(long fileEntryId,
                                       String lockUuid)

verifyInheritableLock

public boolean verifyInheritableLock(long folderId,
                                     String lockUuid)

cacheFoldersAndFileEntries

protected void cacheFoldersAndFileEntries(long folderId)
                                   throws SystemException
Throws:
SystemException

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)
                              throws SystemException
Throws:
SystemException

deleteMappedFolder

protected void deleteMappedFolder(org.apache.chemistry.opencmis.client.api.Folder cmisFolder)
                           throws SystemException
Throws:
SystemException

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,
                                                                        SystemException
Throws:
PortalException
SystemException

getCmisFolderIds

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

getDocument

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

getDocumentIds

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

getFileEntries

protected List<FileEntry> getFileEntries(long folderId)
                                  throws SystemException
Throws:
SystemException

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,
                                     SystemException
Throws:
PortalException
SystemException

getFolder

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

getFolders

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

getFoldersAndFileEntries

protected List<Object> getFoldersAndFileEntries(long folderId)
                                         throws SystemException
Throws:
SystemException

getObjectId

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

getSubfolderIds

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

isActionAllowable

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

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 obc)

toFileEntry

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

toFileEntry

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

toFileEntryId

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

toFileVersionId

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

toFolderId

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

toFolderOrFileEntry

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

updateMappedId

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

validateTitle

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

Liferay 6.2-ce-ga5