public class ContentService extends CMISUtil
CMISUtil.DocumentAspect, CMISUtil.DocumentTypealfrescoHttpClientFactory| Constructor and Description |
|---|
ContentService() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.chemistry.opencmis.client.api.Document |
createDocument(String userName,
String password,
String siteName,
CMISUtil.DocumentType fileType,
File docName,
String docContent)
Create a new document using CMIS
|
org.apache.chemistry.opencmis.client.api.Document |
createDocument(String userName,
String password,
String siteName,
CMISUtil.DocumentType fileType,
String docName,
String docContent)
Create a new document using CMIS
|
org.apache.chemistry.opencmis.client.api.Document |
createDocumentInFolder(String userName,
String password,
String siteName,
String folderName,
CMISUtil.DocumentType fileType,
String docName,
String docContent)
Create a new document into a folder using CMIS
|
org.apache.chemistry.opencmis.client.api.Folder |
createFolder(String userName,
String password,
String folderName,
String siteName)
Create a new folder
|
void |
deleteDocument(String userName,
String password,
String siteName,
String docName)
Delete a document using CMIS
|
void |
deleteFiles(String userName,
String password,
String siteName,
String... fileNames)
Delete multiple files (from root or from folder) using CMIS (in root or in folder)
|
void |
deleteFolder(String userName,
String password,
String siteName,
String folderName)
Delete a folder
|
void |
deleteTree(String userName,
String password,
String siteName,
String folderName)
Delete a parent folder that has children using CMIS
|
String |
getDocumentContent(String userName,
String password,
String siteName,
String docName)
Get the content from a document
|
boolean |
updateDocumentContent(String userName,
String password,
String siteName,
CMISUtil.DocumentType docType,
String docName,
String newContent)
Update content of a document
|
List<org.apache.chemistry.opencmis.client.api.Document> |
uploadFiles(String filesPath,
String userName,
String password,
String siteName)
Upload files from a physical location
|
List<org.apache.chemistry.opencmis.client.api.Document> |
uploadFilesInFolder(String filesPath,
String userName,
String password,
String siteName,
String folderName)
Upload files in a folder from a physical location
|
addAspect, addProperties, getCategoryNodeRef, getCMISSession, getNodeRef, getProperties, getPropertyValue, getValues, waitInSecondspublic org.apache.chemistry.opencmis.client.api.Folder createFolder(String userName, String password, String folderName, String siteName) throws Exception
userName - login usernamepassword - login passwordfolderName - folder namesiteName - site nameException - if errorpublic void deleteFolder(String userName, String password, String siteName, String folderName) throws Exception
userName - login usernamepassword - login passwordsiteName - site namefolderName - folder nameException - if errorpublic org.apache.chemistry.opencmis.client.api.Document createDocument(String userName, String password, String siteName, CMISUtil.DocumentType fileType, String docName, String docContent) throws Exception
userName - login usernamepassword - login passwordsiteName - site namefileType - file type (e.g. text/plain, text/html)docName - file namedocContent - file contentException - if errorpublic org.apache.chemistry.opencmis.client.api.Document createDocument(String userName, String password, String siteName, CMISUtil.DocumentType fileType, File docName, String docContent) throws Exception
userName - login usernamepassword - login passwordsiteName - site namefileType - file type (e.g. text/plain, text/html)docName - file namedocContent - file contentException - if errorpublic org.apache.chemistry.opencmis.client.api.Document createDocumentInFolder(String userName, String password, String siteName, String folderName, CMISUtil.DocumentType fileType, String docName, String docContent) throws Exception
userName - login usernamepassword - login passwordsiteName - site namefolderName - folder namefileType - file type (e.g. text/plain, text/html)docName - file namedocContent - file contentException - if errorpublic void deleteDocument(String userName, String password, String siteName, String docName) throws Exception
userName - login usernamepassword - login passwordsiteName - site namedocName - file nameException - if errorpublic void deleteTree(String userName, String password, String siteName, String folderName) throws Exception
userName - login usernamepassword - login passwordsiteName - site namefolderName - folder nameException - if errorpublic List<org.apache.chemistry.opencmis.client.api.Document> uploadFiles(String filesPath, String userName, String password, String siteName) throws Exception
filesPath - physical path where the files are storeduserName - login usernamepassword - user passwordsiteName - site nameException - if errorpublic List<org.apache.chemistry.opencmis.client.api.Document> uploadFilesInFolder(String filesPath, String userName, String password, String siteName, String folderName) throws Exception
filesPath - physical path where the files are storeduserName - login usernamepassword - user passwordsiteName - site namefolderName - folder name where files are uploadedException - if errorpublic void deleteFiles(String userName, String password, String siteName, String... fileNames) throws Exception
userName - login usernamepassword - user passwordsiteName - site namefileNames - names of files to be deletedException - if errorpublic String getDocumentContent(String userName, String password, String siteName, String docName) throws Exception
userName - login usernamepassword - login passwordsiteName - site namedocName - file nameException - if errorpublic boolean updateDocumentContent(String userName, String password, String siteName, CMISUtil.DocumentType docType, String docName, String newContent) throws Exception
userName - login usernamepassword - login passwordsiteName - site namedocType - file typedocName - file namenewContent - new content of the fileException - if errorCopyright © 2015 Alfresco Software. All rights reserved.