@Service public class ContentService extends CMISUtil
CMISUtil.DocumentAspect, CMISUtil.DocumentType, CMISUtil.Priority, CMISUtil.StatusalfrescoHttpClientFactory| 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 in site
|
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 in site
|
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
|
org.apache.chemistry.opencmis.client.api.Document |
createDocumentInRepository(String userName,
String password,
String path,
CMISUtil.DocumentType fileType,
File docName,
String docContent)
Create a new document in repository
If path is NULL, document will be created in ROOT of repository.
|
org.apache.chemistry.opencmis.client.api.Document |
createDocumentInRepository(String userName,
String password,
String path,
CMISUtil.DocumentType fileType,
String docName,
String docContent)
Create a new document in repository
If path is NULL, document will be created in ROOT of repository.
|
org.apache.chemistry.opencmis.client.api.Folder |
createFolder(String userName,
String password,
String folderName,
String siteName)
Create a new folder in site
|
org.apache.chemistry.opencmis.client.api.Folder |
createFolderInRepository(String userName,
String password,
String folderName,
String path)
Create a new folder by path in repository
If path is NULL, folder will be created in ROOT of repository.
|
void |
deleteDocument(String userName,
String password,
String siteName,
String docName)
Delete a document
|
void |
deleteDocumentRepository(String userName,
String password,
String path,
String docName)
Delete a document created in repository.
|
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 from site
|
void |
deleteFolderFromRepository(String userName,
String password,
String folderName,
String path)
Delete a folder from site.
|
void |
deleteTree(String userName,
String password,
String siteName,
String folderName)
Delete a parent folder that has children in site
|
void |
deleteTreeRepository(String userName,
String password,
String path,
String folderName)
Delete a parent folder that has children in repository
If folder is in root of repository, set PATH to NULL.
|
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
|
org.apache.chemistry.opencmis.client.api.Document |
uploadFileInRepository(String userName,
String password,
String pathInRepo,
String pathToFile)
Upload a single file in repository from a location on disk.
|
org.apache.chemistry.opencmis.client.api.Document |
uploadFileInSite(String userName,
String password,
String siteName,
String pathToFile)
Upload a single file in site from a location on disk.
|
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, attachDocuments, getCategoryNodeRef, getCMISSession, getNodeRef, getNodeRefFromRepo, getProperties, getPropertyValue, getUserNodeRef, 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 org.apache.chemistry.opencmis.client.api.Folder createFolderInRepository(String userName, String password, String folderName, String path) throws Exception
userName - login usernamepassword - login passwordfolderName - folder namepath - (e.g: 'Shared', 'Data Dictionary/Scripts)Exception - 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 void deleteFolderFromRepository(String userName, String password, String folderName, String path) throws Exception
userName - login usernamepassword - login passwordfolderName - folder namepath - String path to folder(e.g.: Shared, Guest Home)Exception - 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 - DocumentType file typedocName - String file namedocContent - file contentException - 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 - DocumentType file typedocName - file namedocContent - file contentException - if errorpublic org.apache.chemistry.opencmis.client.api.Document createDocumentInRepository(String userName, String password, String path, CMISUtil.DocumentType fileType, String docName, String docContent) throws Exception
userName - login usernamepassword - login passwordpath - where to create the document(e.g.: Shared, Data Dictionary/Messages)fileType - DocumentType file typedocName - file namedocContent - file contentException - if errorpublic org.apache.chemistry.opencmis.client.api.Document createDocumentInRepository(String userName, String password, String path, CMISUtil.DocumentType fileType, File docName, String docContent) throws Exception
userName - login usernamepassword - login passwordpath - where to create the document(e.g.: Shared, Data Dictionary/Messages)fileType - DocumentType file typedocName - File 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 - DocumentType file typedocName - 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 deleteDocumentRepository(String userName, String password, String path, String docName) throws Exception
userName - usernamepassword - passwordpath - path in repositorydocName - 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 void deleteTreeRepository(String userName, String password, String path, String folderName) throws Exception
userName - login usernamepassword - login passwordpath - path to folder (e.g. 'Shared')folderName - folder nameException - if errorpublic org.apache.chemistry.opencmis.client.api.Document uploadFileInSite(String userName, String password, String siteName, String pathToFile) throws Exception
userName - login usernamepassword - user passwordsiteName - site namepathToFile - path to fileException - if errorpublic org.apache.chemistry.opencmis.client.api.Document uploadFileInRepository(String userName, String password, String pathInRepo, String pathToFile) throws Exception
userName - login usernamepassword - user passwordpathInRepo - path in repository. If NULL, ROOT is set!pathToFile - path to fileException - 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.