Liferay 6.1.2-ce-ga3

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, Repository

public abstract class CMISRepositoryHandler
extends BaseRepositoryImpl


Field Summary
 
Fields inherited from class com.liferay.portal.kernel.repository.BaseRepositoryImpl
assetEntryLocalService, companyLocalService, counterLocalService, dlAppHelperLocalService, userLocalService
 
Constructor Summary
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)
           
 FileVersion cancelCheckOut(long fileEntryId)
           
 void checkInFileEntry(long fileEntryId, boolean major, String changeLog, ServiceContext serviceContext)
           
 void checkInFileEntry(long fileEntryId, String lockUuid)
           
 FileEntry checkOutFileEntry(long fileEntryId, ServiceContext serviceContext)
           
 FileEntry checkOutFileEntry(long fileEntryId, String owner, long expirationTime, ServiceContext serviceContext)
           
 FileEntry copyFileEntry(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 obc)
           
 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)
           
 Folder getFolder(long folderId)
           
 Folder getFolder(long parentFolderId, String title)
           
 List<Folder> getFolders(long parentFolderId, boolean includeMountfolders, int start, int end, OrderByComparator 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 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 fileEntryId, long newFolderId, ServiceContext serviceContext)
           
 Folder moveFolder(long folderId, long newParentFolderId, ServiceContext serviceContext)
           
 Lock refreshFileEntryLock(String lockUuid, long expirationTime)
           
 Lock refreshFolderLock(String lockUuid, long expirationTime)
           
 void revertFileEntry(long fileEntryId, String version, ServiceContext serviceContext)
           
 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 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)
           
 boolean verifyFileEntryCheckOut(long fileEntryId, String lockUuid)
           
 boolean verifyInheritableLock(long folderId, String lockUuid)
           
 
Methods inherited from class com.liferay.portal.kernel.repository.BaseRepositoryImpl
addFileEntry, deleteFileEntry, deleteFileVersion, deleteFolder, getCompanyId, getFileEntriesAndFileShortcuts, getFileEntriesAndFileShortcutsCount, getFileEntriesAndFileShortcutsCount, getFoldersAndFileEntriesAndFileShortcuts, getFoldersAndFileEntriesAndFileShortcuts, getFoldersAndFileEntriesAndFileShortcutsCount, getFoldersAndFileEntriesAndFileShortcutsCount, getGroupId, getLocalRepository, getRepositoryEntryIds, getRepositoryFileEntries, getRepositoryFileEntries, getRepositoryFileEntriesCount, getRepositoryFileEntriesCount, getRepositoryId, getTypeSettingsProperties, lockFileEntry, lockFileEntry, setAssetEntryLocalService, setCompanyId, setCompanyLocalService, setCounterLocalService, setDLAppHelperLocalService, setGroupId, setRepositoryId, setTypeSettingsProperties, setUserLocalService, unlockFolder, updateFileEntry, 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 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 PortalException,
                                  SystemException
Throws:
PortalException
SystemException

checkInFileEntry

public void checkInFileEntry(long fileEntryId,
                             boolean major,
                             String changeLog,
                             ServiceContext serviceContext)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

checkInFileEntry

public void checkInFileEntry(long fileEntryId,
                             String lockUuid)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

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

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

getCmisRepository

public BaseRepository getCmisRepository()

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

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

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

getLogin

public String getLogin()
                throws SystemException
Throws:
SystemException

getMountFolders

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

getMountFoldersCount

public int getMountFoldersCount(long parentFolderId)
                         throws SystemException
Throws:
SystemException

getObjectName

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

getObjectPaths

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

getSession

public abstract 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

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

isCheckInAllowable

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

isCheckOutAllowable

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

isDocumentRetrievableByVersionSeriesId

public boolean isDocumentRetrievableByVersionSeriesId()

isRefreshBeforePermissionCheck

public boolean isRefreshBeforePermissionCheck()

isSupportsMinorVersions

public boolean isSupportsMinorVersions(String productName)

lockFolder

public Lock lockFolder(long folderId)
                throws PortalException,
                       SystemException
Throws:
PortalException
SystemException

lockFolder

public Lock lockFolder(long folderId,
                       String owner,
                       boolean inheritable,
                       long expirationTime)
                throws PortalException,
                       SystemException
Throws:
PortalException
SystemException

moveFileEntry

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

moveFolder

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

refreshFileEntryLock

public Lock refreshFileEntryLock(String lockUuid,
                                 long expirationTime)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

refreshFolderLock

public Lock refreshFolderLock(String lockUuid,
                              long expirationTime)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

revertFileEntry

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

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

setCmisRepository

public void setCmisRepository(BaseCmisRepository baseCmisRepository)

toFileEntry

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

toFolder

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

unlockFolder

public void unlockFolder(long folderId,
                         String lockUuid)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

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

verifyInheritableLock

public boolean verifyInheritableLock(long folderId,
                                     String lockUuid)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

Liferay 6.1.2-ce-ga3