Liferay 7.0-ce-m3

com.liferay.portal.kernel.repository.cmis
Class CMISRepositoryHandler

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

public abstract class CMISRepositoryHandler
extends BaseRepositoryImpl
implements Capability


Field Summary
 
Fields inherited from class com.liferay.portal.kernel.repository.BaseRepositoryImpl
assetEntryLocalService, companyLocalService, dlAppHelperLocalService, repositoryEntryLocalService, userLocalService
 
Constructor Summary
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)
           
 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)
           
 FileEntry copyFileEntry(long userId, long groupId, long fileEntryId, long destFolderId, ServiceContext serviceContext)
           
 void deleteFileEntry(long fileEntryId)
           
 void deleteFolder(long folderId)
           
 BaseRepository getCmisRepository()
           
 List<FileEntry> getFileEntries(long folderId, int start, int end, OrderByComparator<FileEntry> obc)
           
 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)
           
 Folder getFolder(long folderId)
           
 Folder getFolder(long parentFolderId, String name)
           
 List<Folder> getFolders(long parentFolderId, boolean includeMountfolders, int start, int end, OrderByComparator<Folder> obc)
           
 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)
           
 String getLogin()
           
 List<Folder> getMountFolders(long parentFolderId, int start, int end, OrderByComparator<Folder> obc)
           
 int getMountFoldersCount(long parentFolderId)
           
 String getObjectName(String objectId)
           
 List<String> getObjectPaths(String objectId)
           
abstract  Session getSession()
           
 void getSubfolderIds(List<Long> folderIds, long folderId)
           
 List<Long> getSubfolderIds(long folderId, boolean recurse)
           
 void initRepository()
           
 boolean isCancelCheckOutAllowable(String objectId)
           
 boolean isCheckInAllowable(String objectId)
           
 boolean isCheckOutAllowable(String objectId)
           
 boolean isDocumentRetrievableByVersionSeriesId()
           
 boolean isRefreshBeforePermissionCheck()
           
 boolean isSupportsMinorVersions(String productName)
           
 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 newParentFolderId, ServiceContext serviceContext)
           
 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)
           
 Hits search(SearchContext searchContext, Query query)
           
 void setCmisRepository(BaseCmisRepository baseCmisRepository)
           
 FileEntry toFileEntry(String objectId)
           
 Folder toFolder(String objectId)
           
 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)
           
 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, 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
 
Methods inherited from interface com.liferay.portal.kernel.repository.BaseRepository
getSupportedConfigurations, getSupportedParameters
 

Constructor Detail

CMISRepositoryHandler

public 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
Specified by:
addFileEntry in interface DocumentRepository
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
Specified by:
cancelCheckOut in interface Repository
Throws:
PortalException

checkInFileEntry

public void checkInFileEntry(long userId,
                             long fileEntryId,
                             boolean major,
                             String changeLog,
                             ServiceContext serviceContext)
                      throws PortalException
Specified by:
checkInFileEntry in interface DocumentRepository
Throws:
PortalException

checkInFileEntry

public void checkInFileEntry(long userId,
                             long fileEntryId,
                             String lockUuid,
                             ServiceContext serviceContext)
                      throws PortalException
Specified by:
checkInFileEntry in interface DocumentRepository
Throws:
PortalException

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)
                            throws PortalException
Specified by:
checkOutFileEntry in interface Repository
Specified by:
checkOutFileEntry in class BaseRepositoryImpl
Throws:
PortalException

copyFileEntry

public FileEntry copyFileEntry(long userId,
                               long groupId,
                               long fileEntryId,
                               long destFolderId,
                               ServiceContext serviceContext)
                        throws PortalException
Specified by:
copyFileEntry in interface DocumentRepository
Throws:
PortalException

deleteFileEntry

public void deleteFileEntry(long fileEntryId)
                     throws PortalException
Specified by:
deleteFileEntry in interface DocumentRepository
Throws:
PortalException

deleteFolder

public void deleteFolder(long folderId)
                  throws PortalException
Specified by:
deleteFolder in interface DocumentRepository
Throws:
PortalException

getCmisRepository

public BaseRepository getCmisRepository()

getFileEntries

public List<FileEntry> getFileEntries(long folderId,
                                      int start,
                                      int end,
                                      OrderByComparator<FileEntry> obc)
                               throws PortalException
Specified by:
getFileEntries in interface Repository
Throws:
PortalException

getFileEntries

public List<FileEntry> getFileEntries(long folderId,
                                      long fileEntryTypeId,
                                      int start,
                                      int end,
                                      OrderByComparator<FileEntry> obc)
                               throws PortalException
Specified by:
getFileEntries in interface Repository
Throws:
PortalException

getFileEntries

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

getFileEntriesCount

public int getFileEntriesCount(long folderId)
                        throws PortalException
Specified by:
getFileEntriesCount in interface Repository
Throws:
PortalException

getFileEntriesCount

public int getFileEntriesCount(long folderId,
                               long fileEntryTypeId)
                        throws PortalException
Specified by:
getFileEntriesCount in interface Repository
Throws:
PortalException

getFileEntriesCount

public int getFileEntriesCount(long folderId,
                               String[] mimeTypes)
                        throws PortalException
Specified by:
getFileEntriesCount in interface Repository
Throws:
PortalException

getFileEntry

public FileEntry getFileEntry(long fileEntryId)
                       throws PortalException
Specified by:
getFileEntry in interface DocumentRepository
Throws:
PortalException

getFileEntry

public FileEntry getFileEntry(long folderId,
                              String title)
                       throws PortalException
Specified by:
getFileEntry in interface DocumentRepository
Throws:
PortalException

getFileEntryByUuid

public FileEntry getFileEntryByUuid(String uuid)
                             throws PortalException
Specified by:
getFileEntryByUuid in interface DocumentRepository
Throws:
PortalException

getFileVersion

public FileVersion getFileVersion(long fileVersionId)
                           throws PortalException
Specified by:
getFileVersion in interface DocumentRepository
Throws:
PortalException

getFolder

public Folder getFolder(long folderId)
                 throws PortalException
Specified by:
getFolder in interface DocumentRepository
Throws:
PortalException

getFolder

public Folder getFolder(long parentFolderId,
                        String name)
                 throws PortalException
Specified by:
getFolder in interface DocumentRepository
Throws:
PortalException

getFolders

public List<Folder> getFolders(long parentFolderId,
                               boolean includeMountfolders,
                               int start,
                               int end,
                               OrderByComparator<Folder> obc)
                        throws PortalException
Specified by:
getFolders in interface Repository
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
Specified by:
getFoldersCount in interface Repository
Throws:
PortalException

getFoldersFileEntriesCount

public int getFoldersFileEntriesCount(List<Long> folderIds,
                                      int status)
                               throws PortalException
Specified by:
getFoldersFileEntriesCount in interface Repository
Throws:
PortalException

getLatestVersionId

public String getLatestVersionId(String objectId)

getLogin

public String getLogin()

getMountFolders

public List<Folder> getMountFolders(long parentFolderId,
                                    int start,
                                    int end,
                                    OrderByComparator<Folder> obc)
                             throws PortalException
Specified by:
getMountFolders in interface Repository
Throws:
PortalException

getMountFoldersCount

public int getMountFoldersCount(long parentFolderId)
                         throws PortalException
Specified by:
getMountFoldersCount in interface Repository
Throws:
PortalException

getObjectName

public String getObjectName(String objectId)
                     throws PortalException
Throws:
PortalException

getObjectPaths

public List<String> getObjectPaths(String objectId)
                            throws PortalException
Throws:
PortalException

getSession

public abstract Session getSession()
                            throws PortalException
Throws:
PortalException

getSubfolderIds

public void getSubfolderIds(List<Long> folderIds,
                            long folderId)
                     throws PortalException
Specified by:
getSubfolderIds in interface Repository
Throws:
PortalException

getSubfolderIds

public List<Long> getSubfolderIds(long folderId,
                                  boolean recurse)
                           throws PortalException
Specified by:
getSubfolderIds in interface Repository
Throws:
PortalException

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

isCheckInAllowable

public boolean isCheckInAllowable(String objectId)
                           throws PortalException
Throws:
PortalException

isCheckOutAllowable

public boolean isCheckOutAllowable(String objectId)
                            throws PortalException
Throws:
PortalException

isDocumentRetrievableByVersionSeriesId

public boolean isDocumentRetrievableByVersionSeriesId()

isRefreshBeforePermissionCheck

public boolean isRefreshBeforePermissionCheck()

isSupportsMinorVersions

public boolean isSupportsMinorVersions(String productName)

lockFolder

public Lock lockFolder(long folderId)
                throws PortalException
Specified by:
lockFolder in interface Repository
Throws:
PortalException

lockFolder

public Lock lockFolder(long folderId,
                       String owner,
                       boolean inheritable,
                       long expirationTime)
                throws PortalException
Specified by:
lockFolder in interface Repository
Throws:
PortalException

moveFileEntry

public FileEntry moveFileEntry(long userId,
                               long fileEntryId,
                               long newFolderId,
                               ServiceContext serviceContext)
                        throws PortalException
Specified by:
moveFileEntry in interface DocumentRepository
Throws:
PortalException

moveFolder

public Folder moveFolder(long userId,
                         long folderId,
                         long newParentFolderId,
                         ServiceContext serviceContext)
                  throws PortalException
Specified by:
moveFolder in interface DocumentRepository
Throws:
PortalException

refreshFileEntryLock

public Lock refreshFileEntryLock(String lockUuid,
                                 long companyId,
                                 long expirationTime)
                          throws PortalException
Specified by:
refreshFileEntryLock in interface Repository
Throws:
PortalException

refreshFolderLock

public Lock refreshFolderLock(String lockUuid,
                              long companyId,
                              long expirationTime)
                       throws PortalException
Specified by:
refreshFolderLock in interface Repository
Throws:
PortalException

revertFileEntry

public void revertFileEntry(long userId,
                            long fileEntryId,
                            String version,
                            ServiceContext serviceContext)
                     throws PortalException
Specified by:
revertFileEntry in interface DocumentRepository
Throws:
PortalException

search

public Hits search(long creatorUserId,
                   int status,
                   int start,
                   int end)
            throws PortalException
Specified by:
search in interface Repository
Throws:
PortalException

search

public Hits search(long creatorUserId,
                   long folderId,
                   String[] mimeTypes,
                   int status,
                   int start,
                   int end)
            throws PortalException
Specified by:
search in interface Repository
Throws:
PortalException

search

public Hits search(SearchContext searchContext)
            throws SearchException
Specified by:
search in interface Repository
Overrides:
search in class BaseRepositoryImpl
Throws:
SearchException

search

public Hits search(SearchContext searchContext,
                   Query query)
            throws SearchException
Specified by:
search in interface Repository
Throws:
SearchException

setCmisRepository

public void setCmisRepository(BaseCmisRepository baseCmisRepository)

toFileEntry

public FileEntry toFileEntry(String objectId)
                      throws PortalException
Throws:
PortalException

toFolder

public Folder toFolder(String objectId)
                throws PortalException
Throws:
PortalException

unlockFolder

public void unlockFolder(long folderId,
                         String lockUuid)
                  throws PortalException
Specified by:
unlockFolder in interface Repository
Throws:
PortalException

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
Specified by:
updateFileEntry in interface DocumentRepository
Throws:
PortalException

updateFileEntry

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

updateFolder

public Folder updateFolder(long folderId,
                           String name,
                           String description,
                           ServiceContext serviceContext)
                    throws PortalException
Specified by:
updateFolder in interface Repository
Throws:
PortalException

verifyFileEntryCheckOut

public boolean verifyFileEntryCheckOut(long fileEntryId,
                                       String lockUuid)
                                throws PortalException
Specified by:
verifyFileEntryCheckOut in interface Repository
Throws:
PortalException

verifyInheritableLock

public boolean verifyInheritableLock(long folderId,
                                     String lockUuid)
                              throws PortalException
Specified by:
verifyInheritableLock in interface Repository
Throws:
PortalException

Liferay 7.0-ce-m3