public class CMISUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CMISUtil.DocumentAspect
Different Aspects of Documents and folders.
|
static class |
CMISUtil.DocumentType |
| Modifier and Type | Field and Description |
|---|---|
protected AlfrescoHttpClientFactory |
alfrescoHttpClientFactory |
| Constructor and Description |
|---|
CMISUtil() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAspect(String userName,
String password,
String contentNodeRef,
List<CMISUtil.DocumentAspect> documentAspects)
Method to add aspect
|
void |
addProperties(String userName,
String password,
String contentNodeRef,
Map<String,Object> propertiesMap)
Method to add properties for aspects
|
String |
getCategoryNodeRef(String userName,
String password,
String categoryName)
Method to get the ID for a Category
|
org.apache.chemistry.opencmis.client.api.Session |
getCMISSession(String userName,
String password)
Method to get a CMIS session.
|
String |
getNodeRef(String userName,
String password,
String siteName,
String contentName)
Gets the object id for a document or folder.
|
List<org.apache.chemistry.opencmis.client.api.Property<?>> |
getProperties(String userName,
String password,
String siteName,
String contentName)
Method to get all object properties
|
String |
getPropertyValue(List<org.apache.chemistry.opencmis.client.api.Property<?>> propertyList,
String propertyName)
Get a specific value from a property list
|
List<?> |
getValues(List<org.apache.chemistry.opencmis.client.api.Property<?>> propertyList,
String propertyName)
Get the list of values from a specific property list
|
static void |
waitInSeconds(int seconds)
Method to wait for given seconds.
|
@Autowired protected AlfrescoHttpClientFactory alfrescoHttpClientFactory
public org.apache.chemistry.opencmis.client.api.Session getCMISSession(String userName, String password) throws Exception
userName - String identifierpassword - String passwordException - if errorpublic String getNodeRef(String userName, String password, String siteName, String contentName) throws Exception
userName - String identifierpassword - String passwordsiteName - String site identifiercontentName - String content identifierException - if errorpublic void addAspect(String userName, String password, String contentNodeRef, List<CMISUtil.DocumentAspect> documentAspects) throws Exception
userName - String identifierpassword - String passwordcontentNodeRef - String node identifierdocumentAspects - aspect to apply on nodeException - if errorpublic void addProperties(String userName, String password, String contentNodeRef, Map<String,Object> propertiesMap) throws Exception
userName - String identifierpassword - String passwordcontentNodeRef - String node identifierpropertiesMap - Map of propertiesException - if errorpublic List<org.apache.chemistry.opencmis.client.api.Property<?>> getProperties(String userName, String password, String siteName, String contentName) throws Exception
userName - String identifierpassword - String passwordsiteName - String site identifiercontentName - String content identifierProperty list of content propertiesException - if errorpublic String getPropertyValue(List<org.apache.chemistry.opencmis.client.api.Property<?>> propertyList, String propertyName)
propertyList - List of PropertypropertyName - String name of propertypublic List<?> getValues(List<org.apache.chemistry.opencmis.client.api.Property<?>> propertyList, String propertyName)
propertyList - List of PropertypropertyName - String name of propertypublic String getCategoryNodeRef(String userName, String password, String categoryName) throws Exception
userName - String identifierpassword - String passwordcategoryName - String category nameException - if errorpublic static void waitInSeconds(int seconds)
seconds - time in secondsCopyright © 2015 Alfresco Software. All rights reserved.