public abstract class AbstractCmisClient extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.chemistry.opencmis.client.api.Session |
session |
| Constructor and Description |
|---|
AbstractCmisClient(String username,
String password,
String repositoryName) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
checkIfObjectExists(String objectPath)
Check if an object exists
|
protected Map<String,String> |
configure() |
void |
connect() |
org.apache.chemistry.opencmis.client.api.Folder |
createSubFolder(String parentPath,
String folderName)
Create a folder
|
List<String> |
deleteFolderByPath(String folderPath)
Delete a folder
|
void |
deleteObjectByPath(String objectPath) |
void |
deleteVersionOfDocumentById(String documentVersionId) |
void |
deleteVersionOfDocumentByLabel(String documentPath,
String versionLabel) |
void |
disconnect() |
org.apache.chemistry.opencmis.client.api.Folder |
getFolderByPath(String path)
Get a folder object from its path
|
org.apache.chemistry.opencmis.client.api.CmisObject |
getObjectByPath(String path)
Get a CMIS object from a CMIS repository.
|
String |
getPassword() |
List<org.apache.chemistry.opencmis.client.api.Repository> |
getRepositories()
Retrieve the repositories
|
protected org.apache.chemistry.opencmis.client.api.Repository |
getRepositoryByName(String repositoryName) |
org.apache.chemistry.opencmis.client.api.Folder |
getRootFolder()
Get the Root folder of a CMIS server
|
String |
getUsername() |
List<org.apache.chemistry.opencmis.client.api.CmisObject> |
listFolder(String folderPath)
List the content of a folder
|
org.apache.chemistry.opencmis.client.api.Document |
uploadNewDocument(String parentFolder,
String documentName,
byte[] documentContent,
String mimeType) |
org.apache.chemistry.opencmis.client.api.Document |
uploadNewVersionOfDocument(String remote_document,
byte[] documentContent,
String contentMimeType) |
public void disconnect()
public void connect()
public List<org.apache.chemistry.opencmis.client.api.Repository> getRepositories()
public org.apache.chemistry.opencmis.client.api.Folder getFolderByPath(String path)
path - path to the folderpublic org.apache.chemistry.opencmis.client.api.CmisObject getObjectByPath(String path)
path - path to the objectpublic org.apache.chemistry.opencmis.client.api.Folder getRootFolder()
public Boolean checkIfObjectExists(String objectPath)
objectPath - path to the object to checkpublic org.apache.chemistry.opencmis.client.api.Folder createSubFolder(String parentPath, String folderName)
parentPath - Path in which to create the folderfolderName - the folder namepublic List<String> deleteFolderByPath(String folderPath)
folderPath - The path to the folder to deletepublic List<org.apache.chemistry.opencmis.client.api.CmisObject> listFolder(String folderPath)
folderPath - the folder to listpublic org.apache.chemistry.opencmis.client.api.Document uploadNewDocument(String parentFolder, String documentName, byte[] documentContent, String mimeType) throws org.bonitasoft.engine.connector.ConnectorException
org.bonitasoft.engine.connector.ConnectorExceptionpublic org.apache.chemistry.opencmis.client.api.Document uploadNewVersionOfDocument(String remote_document, byte[] documentContent, String contentMimeType) throws org.bonitasoft.engine.connector.ConnectorException
org.bonitasoft.engine.connector.ConnectorExceptionpublic void deleteVersionOfDocumentById(String documentVersionId)
public void deleteVersionOfDocumentByLabel(String documentPath, String versionLabel)
public void deleteObjectByPath(String objectPath)
protected org.apache.chemistry.opencmis.client.api.Repository getRepositoryByName(String repositoryName)
public String getUsername()
public String getPassword()
Copyright © 2021. All rights reserved.