public class CMISAPI extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
CMISAPI.ChangesIterator
Iterator over set of drive change events from CMIS Change Log.
|
protected class |
CMISAPI.ChangeToken
The Class ChangeToken.
|
protected class |
CMISAPI.ChildrenIterator
Iterator over whole set of items from cloud service.
|
protected class |
CMISAPI.Context
Session context for CMIS calls.
|
protected class |
CMISAPI.TimeChangeToken
The Class TimeChangeToken.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
CONNECTION_TIMEOUT
Open CMIS connection timeout.
|
protected String |
customDomain
The custom domain.
|
static String |
EMPTY_TOKEN
The Constant EMPTY_TOKEN.
|
protected CMISAPI.ChangeToken |
emptyToken
Singleton of empty change token.
|
protected String |
enterpriseId
The custom domain.
|
protected String |
enterpriseName
The custom domain.
|
protected static Set<String> |
FILE_PROPERTY_SET
Set of properties for CMIS files (document or folder).
|
protected org.apache.chemistry.opencmis.client.api.OperationContext |
fileContext
OpenCMIS context for object operations.
|
static int |
FOLDER_PAGE_SIZE
Page size used by folder context and children/change iterators for large
data sets.
|
protected static Set<String> |
FOLDER_PROPERTY_SET
Set of properties for CMIS folder.
|
protected org.apache.chemistry.opencmis.client.api.OperationContext |
folderContext
OpenCMIS context for folder operations.
|
protected static org.exoplatform.services.log.Log |
LOG
The Constant LOG.
|
static int |
OBJECT_PAGE_SIZE
Page size used by object context.
|
protected Map<String,String> |
parameters
Client session parameters.
|
protected String |
productName
The product name.
|
protected String |
productVersion
The product version.
|
protected String |
repositoryId
Current CMIS repository Id.
|
protected String |
repositoryName
Current CMIS repository name;.
|
protected AtomicReference<org.apache.chemistry.opencmis.client.api.Session> |
session
Session holder.
|
static String |
TOKEN_DATATIME_FORMAT
The Constant TOKEN_DATATIME_FORMAT.
|
protected String |
vendorName
The vendor name.
|
| Modifier | Constructor and Description |
|---|---|
protected |
CMISAPI(String serviceURL,
String user,
String password)
Create API from user credentials.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.chemistry.opencmis.commons.spi.CmisBinding |
binding()
Create CMIS binding instance (low-level API but with fine grained
control).
|
protected org.apache.chemistry.opencmis.client.api.Document |
copyDocument(org.apache.chemistry.opencmis.client.api.Document source,
org.apache.chemistry.opencmis.client.api.Folder parent,
String name)
Copy document to a new one using CMIS objects.
|
protected org.apache.chemistry.opencmis.client.api.Document |
copyDocument(String id,
String parentId,
String name)
Deprecated.
|
protected org.apache.chemistry.opencmis.client.api.Folder |
copyFolder(org.apache.chemistry.opencmis.client.api.Folder source,
org.apache.chemistry.opencmis.client.api.Folder parent,
String name)
Copy folder to a new one using CMIS objects.
|
protected org.apache.chemistry.opencmis.client.api.Folder |
copyFolder(String id,
String parentId,
String name)
Deprecated.
|
protected org.apache.chemistry.opencmis.client.api.Document |
createDocument(String parentId,
String name,
String mimeType,
InputStream data)
Creates the document.
|
protected org.apache.chemistry.opencmis.client.api.Folder |
createFolder(String parentId,
String name)
Creates the folder.
|
protected void |
deleteDocument(String id)
Delete a cloud file by given fileId.
|
protected void |
deleteFolder(String id)
Delete a cloud folder by given folderId.
|
protected CMISAPI.ChangeToken |
emptyToken()
Empty token.
|
static String |
formatTokenTime(Date date)
Format token time.
|
protected List<org.apache.chemistry.opencmis.client.api.Document> |
getAllVersion(org.apache.chemistry.opencmis.client.api.Document document)
Return all versions of CMIS document in repository.
|
protected CMISAPI.ChangesIterator |
getChanges(CMISAPI.ChangeToken changeToken)
Gets the changes.
|
protected CMISAPI.ChildrenIterator |
getFolderItems(org.apache.chemistry.opencmis.client.api.Folder folder)
Gets the folder items.
|
protected CMISAPI.ChildrenIterator |
getFolderItems(String folderId)
Gets the folder items.
|
protected org.apache.chemistry.opencmis.client.api.Document |
getLatestDocumentVersionOrPWC(String id)
Return latest versions of CMIS document in repository.
|
protected String |
getLink(org.apache.chemistry.opencmis.client.api.CmisObject file)
Link (URl) to a file for opening on provider site (UI).
|
protected String |
getLink(org.apache.chemistry.opencmis.client.api.Folder file)
Link (URl) to a folder for downloading from provider site.
|
protected org.apache.chemistry.opencmis.client.api.CmisObject |
getObject(String objectId)
Return CMIS object from the repository.
|
protected Map<String,String> |
getParamaters()
Gets the paramaters.
|
protected Collection<org.apache.chemistry.opencmis.client.api.Folder> |
getParents(org.apache.chemistry.opencmis.client.api.CmisObject obj)
Return the parent folder(s) for the specified object.
|
protected String |
getPassword()
Password of currently connected cloud user.
|
String |
getProductName()
Gets the product name.
|
String |
getProductVersion()
Gets the product version.
|
protected List<org.apache.chemistry.opencmis.client.api.Repository> |
getRepositories()
Available repositories for current user.
|
String |
getRepositoryId()
Current CMIS repository.
|
protected org.apache.chemistry.opencmis.commons.data.RepositoryInfo |
getRepositoryInfo()
Gets the repository info.
|
String |
getRepositoryName()
Gets the current CMIS repository name;.
|
protected org.apache.chemistry.opencmis.client.api.Folder |
getRootFolder()
The drive root folder.
|
protected String |
getServiceURL()
CMIS service's AtomPub URL.
|
protected String |
getUser()
Currently connected cloud user name.
|
String |
getUserTitle()
Gets the user title.
|
String |
getVendorName()
Gets the vendor name.
|
protected void |
initRepository(String repositoryId)
Init current CMIS repository for late use.
|
protected boolean |
isDocument(org.apache.chemistry.opencmis.client.api.CmisObject object)
Checks if is document.
|
protected boolean |
isFileable(org.apache.chemistry.opencmis.client.api.CmisObject object)
Checks if is fileable.
|
protected boolean |
isFolder(org.apache.chemistry.opencmis.client.api.CmisObject object)
Checks if is folder.
|
protected boolean |
isRelationship(org.apache.chemistry.opencmis.client.api.CmisObject object)
Checks if is relationship.
|
protected boolean |
isSyncableChange(org.apache.chemistry.opencmis.client.api.ChangeEvent change)
Checks if is syncable change.
|
protected boolean |
isVersionable(org.apache.chemistry.opencmis.client.api.ObjectType type)
Checks if is versionable.
|
protected org.apache.chemistry.opencmis.client.api.Document |
readDocumentVersionOrPWC(String id)
Read document version or PWC.
|
protected org.apache.chemistry.opencmis.client.api.CmisObject |
readObject(String id,
org.apache.chemistry.opencmis.client.api.Session session,
org.apache.chemistry.opencmis.client.api.OperationContext context)
For internal use.
|
protected CMISAPI.ChangeToken |
readToken(org.apache.chemistry.opencmis.client.api.ChangeEvent event)
Read token.
|
protected CMISAPI.ChangeToken |
readToken(String tokenString)
Read token.
|
protected org.apache.chemistry.opencmis.client.api.CmisObject |
rename(String newName,
org.apache.chemistry.opencmis.client.api.CmisObject obj,
org.apache.chemistry.opencmis.client.api.Session session)
Rename CMIS object by better way working for the CMIS provider (this method
can be overridden in dedicated implementations).
|
protected List<org.apache.chemistry.opencmis.client.api.Repository> |
repositories()
List of repositories available on CMIS service.
|
protected org.apache.chemistry.opencmis.client.api.Session |
session()
Create CMIS session.
|
protected org.apache.chemistry.opencmis.client.api.Session |
session(boolean forceNew)
Create CMIS session.
|
protected boolean |
shouldCheckinRename(org.apache.chemistry.opencmis.client.api.Document doc)
Should perform CMIS check-in after renaming of already checked-in document.
|
protected org.apache.chemistry.opencmis.client.api.Document |
updateContent(String id,
String name,
InputStream data,
String mimeType,
JCRLocalCMISDrive.LocalFile local)
Update document name (if differs with remote) and its content stream.
|
protected org.apache.chemistry.opencmis.client.api.CmisObject |
updateObject(String parentId,
String id,
String name,
JCRLocalCMISDrive.LocalFile local)
Update CMIS object name and parent (if object was moved locally).
|
protected void |
updateUser(Map<String,String> parameters)
Update user credentials.
|
protected static final org.exoplatform.services.log.Log LOG
public static final int OBJECT_PAGE_SIZE
public static final int FOLDER_PAGE_SIZE
public static final String TOKEN_DATATIME_FORMAT
public static final String EMPTY_TOKEN
public static final int CONNECTION_TIMEOUT
protected static final Set<String> FILE_PROPERTY_SET
protected static final Set<String> FOLDER_PROPERTY_SET
protected final AtomicReference<org.apache.chemistry.opencmis.client.api.Session> session
protected final CMISAPI.ChangeToken emptyToken
protected String repositoryId
protected String repositoryName
protected String productName
protected String productVersion
protected String vendorName
protected String enterpriseId
protected String enterpriseName
protected String customDomain
protected org.apache.chemistry.opencmis.client.api.OperationContext fileContext
protected org.apache.chemistry.opencmis.client.api.OperationContext folderContext
protected CMISAPI(String serviceURL, String user, String password) throws CMISException, org.exoplatform.clouddrive.CloudDriveException
serviceURL - String CMIS service URL (AtimPub binding)user - String CMIS service usernamepassword - String CMIS service user passwordCMISException - the CMIS exceptionorg.exoplatform.clouddrive.CloudDriveException - the cloud drive exceptionprotected void updateUser(Map<String,String> parameters)
parameters - Map of connection parametersprotected Map<String,String> getParamaters()
protected String getUser()
protected String getPassword()
protected String getServiceURL()
protected void initRepository(String repositoryId) throws CMISException, org.exoplatform.clouddrive.RefreshAccessException
repositoryId - String repository nameCMISException - the CMIS exceptionorg.exoplatform.clouddrive.RefreshAccessException - the refresh access exceptionpublic String getRepositoryId()
public String getRepositoryName()
public String getProductName()
public String getProductVersion()
public String getVendorName()
public String getUserTitle()
protected List<org.apache.chemistry.opencmis.client.api.Repository> getRepositories() throws CMISException, org.exoplatform.clouddrive.RefreshAccessException
Repository objectsCMISException - the CMIS exceptionorg.exoplatform.clouddrive.RefreshAccessException - the refresh access exceptionprotected org.apache.chemistry.opencmis.client.api.Folder getRootFolder()
throws CMISException,
org.exoplatform.clouddrive.RefreshAccessException,
org.exoplatform.clouddrive.UnauthorizedException
FolderCMISException - the CMIS exceptionorg.exoplatform.clouddrive.RefreshAccessException - the refresh access exceptionorg.exoplatform.clouddrive.UnauthorizedException - the unauthorized exceptionprotected org.apache.chemistry.opencmis.client.api.CmisObject readObject(String id, org.apache.chemistry.opencmis.client.api.Session session, org.apache.chemistry.opencmis.client.api.OperationContext context)
id - Stringsession - Sessioncontext - OperationContextCmisObjectprotected org.apache.chemistry.opencmis.client.api.CmisObject getObject(String objectId) throws CMISException, org.exoplatform.clouddrive.NotFoundException, org.exoplatform.clouddrive.CloudDriveAccessException, org.exoplatform.clouddrive.UnauthorizedException
objectId - StringCmisObjectCMISException - the CMIS exceptionorg.exoplatform.clouddrive.NotFoundException - the not found exceptionorg.exoplatform.clouddrive.CloudDriveAccessException - the cloud drive access exceptionorg.exoplatform.clouddrive.UnauthorizedException - the unauthorized exceptionprotected org.apache.chemistry.opencmis.client.api.Document readDocumentVersionOrPWC(String id) throws org.exoplatform.clouddrive.CloudDriveAccessException, org.exoplatform.clouddrive.UnauthorizedException
id - the idorg.exoplatform.clouddrive.CloudDriveAccessException - the cloud drive access exceptionorg.exoplatform.clouddrive.UnauthorizedException - the unauthorized exceptionprotected org.apache.chemistry.opencmis.client.api.Document getLatestDocumentVersionOrPWC(String id) throws CMISException, org.exoplatform.clouddrive.NotFoundException, org.exoplatform.clouddrive.CloudDriveAccessException, org.exoplatform.clouddrive.UnauthorizedException
id - StringDocumentCMISException - the CMIS exceptionorg.exoplatform.clouddrive.NotFoundException - the not found exceptionorg.exoplatform.clouddrive.CloudDriveAccessException - the cloud drive access exceptionorg.exoplatform.clouddrive.UnauthorizedException - the unauthorized exceptionprotected List<org.apache.chemistry.opencmis.client.api.Document> getAllVersion(org.apache.chemistry.opencmis.client.api.Document document) throws CMISException, org.exoplatform.clouddrive.NotFoundException, org.exoplatform.clouddrive.CloudDriveAccessException, org.exoplatform.clouddrive.UnauthorizedException
document - DocumentDocument versionsCMISException - the CMIS exceptionorg.exoplatform.clouddrive.NotFoundException - the not found exceptionorg.exoplatform.clouddrive.CloudDriveAccessException - the cloud drive access exceptionorg.exoplatform.clouddrive.UnauthorizedException - the unauthorized exceptionprotected Collection<org.apache.chemistry.opencmis.client.api.Folder> getParents(org.apache.chemistry.opencmis.client.api.CmisObject obj) throws CMISException, org.exoplatform.clouddrive.CloudDriveAccessException, org.exoplatform.clouddrive.UnauthorizedException
obj - CmisObjectFolder parentsCMISException - the CMIS exceptionorg.exoplatform.clouddrive.CloudDriveAccessException - the cloud drive access exceptionorg.exoplatform.clouddrive.UnauthorizedException - the unauthorized exceptionprotected CMISAPI.ChildrenIterator getFolderItems(String folderId) throws org.exoplatform.clouddrive.CloudDriveException
folderId - the folder idorg.exoplatform.clouddrive.CloudDriveException - the cloud drive exceptionprotected CMISAPI.ChildrenIterator getFolderItems(org.apache.chemistry.opencmis.client.api.Folder folder) throws org.exoplatform.clouddrive.CloudDriveException
folder - the folderorg.exoplatform.clouddrive.CloudDriveException - the cloud drive exceptionprotected CMISAPI.ChangesIterator getChanges(CMISAPI.ChangeToken changeToken) throws CMISException, org.exoplatform.clouddrive.CloudDriveAccessException
changeToken - the change tokenCMISException - the CMIS exceptionorg.exoplatform.clouddrive.CloudDriveAccessException - the cloud drive access exceptionprotected String getLink(org.apache.chemistry.opencmis.client.api.CmisObject file) throws CMISException, org.exoplatform.clouddrive.RefreshAccessException
file - the fileCMISException - the CMIS exceptionorg.exoplatform.clouddrive.RefreshAccessException - the refresh access exceptionprotected String getLink(org.apache.chemistry.opencmis.client.api.Folder file) throws CMISException, org.exoplatform.clouddrive.RefreshAccessException
file - the fileCMISException - the CMIS exceptionorg.exoplatform.clouddrive.RefreshAccessException - the refresh access exceptionprotected org.apache.chemistry.opencmis.client.api.Document createDocument(String parentId, String name, String mimeType, InputStream data) throws CMISException, org.exoplatform.clouddrive.NotFoundException, org.exoplatform.clouddrive.ConflictException, org.exoplatform.clouddrive.CloudDriveAccessException, org.exoplatform.clouddrive.ConstraintException, org.exoplatform.clouddrive.UnauthorizedException
parentId - the parent idname - the namemimeType - the mime typedata - the dataCMISException - the CMIS exceptionorg.exoplatform.clouddrive.NotFoundException - the not found exceptionorg.exoplatform.clouddrive.ConflictException - the conflict exceptionorg.exoplatform.clouddrive.CloudDriveAccessException - the cloud drive access exceptionorg.exoplatform.clouddrive.ConstraintException - the constraint exceptionorg.exoplatform.clouddrive.UnauthorizedException - the unauthorized exceptionprotected org.apache.chemistry.opencmis.client.api.Folder createFolder(String parentId, String name) throws CMISException, org.exoplatform.clouddrive.NotFoundException, org.exoplatform.clouddrive.ConflictException, org.exoplatform.clouddrive.CloudDriveAccessException, org.exoplatform.clouddrive.ConstraintException, org.exoplatform.clouddrive.UnauthorizedException
parentId - the parent idname - the nameCMISException - the CMIS exceptionorg.exoplatform.clouddrive.NotFoundException - the not found exceptionorg.exoplatform.clouddrive.ConflictException - the conflict exceptionorg.exoplatform.clouddrive.CloudDriveAccessException - the cloud drive access exceptionorg.exoplatform.clouddrive.ConstraintException - the constraint exceptionorg.exoplatform.clouddrive.UnauthorizedException - the unauthorized exceptionprotected void deleteDocument(String id) throws CMISException, org.exoplatform.clouddrive.NotFoundException, org.exoplatform.clouddrive.ConflictException, org.exoplatform.clouddrive.CloudDriveAccessException, org.exoplatform.clouddrive.ConstraintException, org.exoplatform.clouddrive.UnauthorizedException
id - StringCMISException - the CMIS exceptionorg.exoplatform.clouddrive.NotFoundException - the not found exceptionorg.exoplatform.clouddrive.ConflictException - the conflict exceptionorg.exoplatform.clouddrive.CloudDriveAccessException - the cloud drive access exceptionorg.exoplatform.clouddrive.ConstraintException - the constraint exceptionorg.exoplatform.clouddrive.UnauthorizedException - the unauthorized exceptionprotected void deleteFolder(String id) throws CMISException, org.exoplatform.clouddrive.NotFoundException, org.exoplatform.clouddrive.ConflictException, org.exoplatform.clouddrive.CloudDriveAccessException, org.exoplatform.clouddrive.ConstraintException, org.exoplatform.clouddrive.UnauthorizedException
id - StringCMISException - the CMIS exceptionorg.exoplatform.clouddrive.NotFoundException - the not found exceptionorg.exoplatform.clouddrive.ConflictException - the conflict exceptionorg.exoplatform.clouddrive.CloudDriveAccessException - the cloud drive access exceptionorg.exoplatform.clouddrive.ConstraintException - the constraint exceptionorg.exoplatform.clouddrive.UnauthorizedException - the unauthorized exceptionprotected org.apache.chemistry.opencmis.client.api.Document updateContent(String id, String name, InputStream data, String mimeType, JCRLocalCMISDrive.LocalFile local) throws CMISException, org.exoplatform.clouddrive.NotFoundException, org.exoplatform.clouddrive.ConflictException, org.exoplatform.clouddrive.CloudDriveAccessException, org.exoplatform.clouddrive.ConstraintException, org.exoplatform.clouddrive.UnauthorizedException
id - Stringname - Stringdata - InputStream content streammimeType - String mime-type of the content streamlocal - JCRLocalCMISDrive.LocalFile access to local file for move operation
supportDocument of actually changed documentCMISException - the CMIS exceptionorg.exoplatform.clouddrive.NotFoundException - the not found exceptionorg.exoplatform.clouddrive.ConflictException - the conflict exceptionorg.exoplatform.clouddrive.CloudDriveAccessException - the cloud drive access exceptionorg.exoplatform.clouddrive.ConstraintException - the constraint exceptionorg.exoplatform.clouddrive.UnauthorizedException - the unauthorized exceptionprotected org.apache.chemistry.opencmis.client.api.CmisObject updateObject(String parentId, String id, String name, JCRLocalCMISDrive.LocalFile local) throws CMISException, org.exoplatform.clouddrive.NotFoundException, org.exoplatform.clouddrive.ConflictException, org.exoplatform.clouddrive.CloudDriveAccessException, org.exoplatform.clouddrive.ConstraintException, org.exoplatform.clouddrive.UnauthorizedException
parentId - Stringid - Stringname - Stringlocal - JCRLocalCMISDrive.LocalFile access to local file for move operation
supportCmisObject of actually changed object or null
if it already exists with such name and parent.CMISException - the CMIS exceptionorg.exoplatform.clouddrive.NotFoundException - the not found exceptionorg.exoplatform.clouddrive.ConflictException - the conflict exceptionorg.exoplatform.clouddrive.CloudDriveAccessException - the cloud drive access exceptionorg.exoplatform.clouddrive.ConstraintException - the constraint exceptionorg.exoplatform.clouddrive.UnauthorizedException - the unauthorized exceptionprotected org.apache.chemistry.opencmis.client.api.CmisObject rename(String newName, org.apache.chemistry.opencmis.client.api.CmisObject obj, org.apache.chemistry.opencmis.client.api.Session session)
newName - String new nameobj - CmisObjectsession - SessionCmisObject renamed object@Deprecated protected org.apache.chemistry.opencmis.client.api.Document copyDocument(String id, String parentId, String name) throws CMISException, org.exoplatform.clouddrive.NotFoundException, org.exoplatform.clouddrive.ConflictException, org.exoplatform.clouddrive.CloudDriveAccessException, org.exoplatform.clouddrive.ConstraintException, org.exoplatform.clouddrive.UnauthorizedException
id - StringparentId - Stringname - StringDocument of actually copied file.CMISException - the CMIS exceptionorg.exoplatform.clouddrive.NotFoundException - the not found exceptionorg.exoplatform.clouddrive.ConflictException - the conflict exceptionorg.exoplatform.clouddrive.CloudDriveAccessException - the cloud drive access exceptionorg.exoplatform.clouddrive.ConstraintException - the constraint exceptionorg.exoplatform.clouddrive.UnauthorizedException - the unauthorized exceptionprotected org.apache.chemistry.opencmis.client.api.Document copyDocument(org.apache.chemistry.opencmis.client.api.Document source,
org.apache.chemistry.opencmis.client.api.Folder parent,
String name)
throws CMISException,
org.exoplatform.clouddrive.NotFoundException,
org.exoplatform.clouddrive.ConflictException,
org.exoplatform.clouddrive.CloudDriveAccessException,
org.exoplatform.clouddrive.ConstraintException,
org.exoplatform.clouddrive.UnauthorizedException
source - Documentparent - Foldername - StringDocument of actually copied file.CMISException - the CMIS exceptionorg.exoplatform.clouddrive.NotFoundException - the not found exceptionorg.exoplatform.clouddrive.ConflictException - the conflict exceptionorg.exoplatform.clouddrive.CloudDriveAccessException - the cloud drive access exceptionorg.exoplatform.clouddrive.ConstraintException - the constraint exceptionorg.exoplatform.clouddrive.UnauthorizedException - the unauthorized exception@Deprecated protected org.apache.chemistry.opencmis.client.api.Folder copyFolder(String id, String parentId, String name) throws CMISException, org.exoplatform.clouddrive.NotFoundException, org.exoplatform.clouddrive.ConflictException, org.exoplatform.clouddrive.CloudDriveAccessException, org.exoplatform.clouddrive.ConstraintException, org.exoplatform.clouddrive.UnauthorizedException
id - StringparentId - Stringname - StringFolder of actually copied folder.CMISException - the CMIS exceptionorg.exoplatform.clouddrive.NotFoundException - the not found exceptionorg.exoplatform.clouddrive.ConflictException - the conflict exceptionorg.exoplatform.clouddrive.CloudDriveAccessException - the cloud drive access exceptionorg.exoplatform.clouddrive.ConstraintException - the constraint exceptionorg.exoplatform.clouddrive.UnauthorizedException - the unauthorized exceptioncopyFolder(Folder, Folder, String)protected org.apache.chemistry.opencmis.client.api.Folder copyFolder(org.apache.chemistry.opencmis.client.api.Folder source,
org.apache.chemistry.opencmis.client.api.Folder parent,
String name)
throws CMISException,
org.exoplatform.clouddrive.NotFoundException,
org.exoplatform.clouddrive.ConflictException,
org.exoplatform.clouddrive.CloudDriveAccessException,
org.exoplatform.clouddrive.ConstraintException,
org.exoplatform.clouddrive.UnauthorizedException
source - the sourceparent - the parentname - StringFolder of actually copied folder.CMISException - the CMIS exceptionorg.exoplatform.clouddrive.NotFoundException - the not found exceptionorg.exoplatform.clouddrive.ConflictException - the conflict exceptionorg.exoplatform.clouddrive.CloudDriveAccessException - the cloud drive access exceptionorg.exoplatform.clouddrive.ConstraintException - the constraint exceptionorg.exoplatform.clouddrive.UnauthorizedException - the unauthorized exceptionprotected org.apache.chemistry.opencmis.commons.data.RepositoryInfo getRepositoryInfo()
throws CMISException,
org.exoplatform.clouddrive.RefreshAccessException
CMISException - the CMIS exceptionorg.exoplatform.clouddrive.RefreshAccessException - the refresh access exceptionprotected boolean isFolder(org.apache.chemistry.opencmis.client.api.CmisObject object)
object - the objectprotected boolean isDocument(org.apache.chemistry.opencmis.client.api.CmisObject object)
object - the objectprotected boolean isRelationship(org.apache.chemistry.opencmis.client.api.CmisObject object)
object - the objectprotected boolean isFileable(org.apache.chemistry.opencmis.client.api.CmisObject object)
object - the objectprotected List<org.apache.chemistry.opencmis.client.api.Repository> repositories() throws CMISException, org.exoplatform.clouddrive.RefreshAccessException
Repository objectsCMISException - when runtime or connection error happensorg.exoplatform.clouddrive.RefreshAccessException - if user credentials rejected (and need try
renew them)protected org.apache.chemistry.opencmis.commons.spi.CmisBinding binding()
throws CMISException
CmisBindingCMISException - the CMIS exceptionprotected org.apache.chemistry.opencmis.client.api.Session session()
throws CMISException,
org.exoplatform.clouddrive.RefreshAccessException
SessionCMISException - the CMIS exceptionorg.exoplatform.clouddrive.RefreshAccessException - the refresh access exceptionprotected org.apache.chemistry.opencmis.client.api.Session session(boolean forceNew)
throws CMISException,
org.exoplatform.clouddrive.RefreshAccessException
forceNew - boolean if true then session will be
recreated, otherwise will try use cached in thread-local variable.SessionCMISException - the CMIS exceptionorg.exoplatform.clouddrive.RefreshAccessException - the refresh access exceptionprotected CMISAPI.ChangeToken readToken(org.apache.chemistry.opencmis.client.api.ChangeEvent event) throws CMISException
event - the eventCMISException - the CMIS exceptionprotected CMISAPI.ChangeToken readToken(String tokenString) throws CMISException
tokenString - the token stringCMISException - the CMIS exceptionprotected CMISAPI.ChangeToken emptyToken()
protected boolean isVersionable(org.apache.chemistry.opencmis.client.api.ObjectType type)
type - the typeprotected boolean isSyncableChange(org.apache.chemistry.opencmis.client.api.ChangeEvent change)
throws org.exoplatform.clouddrive.RefreshAccessException,
CMISException
change - the changeorg.exoplatform.clouddrive.RefreshAccessException - the refresh access exceptionCMISException - the CMIS exceptionprotected boolean shouldCheckinRename(org.apache.chemistry.opencmis.client.api.Document doc)
doc - the docCopyright © 2003–2019 eXo Platform SAS. All rights reserved.