public class ContentAspects extends CMISUtil
CMISUtil.DocumentAspect, CMISUtil.DocumentTypealfrescoHttpClientFactory| Constructor and Description |
|---|
ContentAspects() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAspect(String userName,
String password,
String siteName,
String contentName,
CMISUtil.DocumentAspect aspect)
Add aspect for document or folder
|
void |
addClasifiable(String userName,
String password,
String siteName,
String contentName,
List<String> categoryName)
Method to add Clasifiable Aspect
|
void |
addComplianceable(String userName,
String password,
String siteName,
String contentName,
Date removeAfter)
Method to add Complianceable aspect
|
void |
addDublinCore(String userName,
String password,
String siteName,
String contentName,
String publisher,
String contributor,
String type,
String identifier,
String source,
String coverage,
String rights,
String subject)
Method to add Dublin Core aspect
|
void |
addEffectivity(String userName,
String password,
String siteName,
String contentName,
Date fromDate,
Date toDate)
Method to add Effectivity aspect
|
void |
addEmailed(String userName,
String password,
String siteName,
String contentName,
String addressee,
List<String> addressees,
String subject,
String originator,
Date sentDate)
Add Emailed Aspect
|
void |
addGeographicAspect(String userName,
String password,
String siteName,
String contentName,
double longitude,
double latitude)
Method to add Geographic Aspect
|
void |
addIndexControl(String userName,
String password,
String siteName,
String contentName,
boolean isIndexed,
boolean contentIndexed)
Method to add Index Control Aspect
|
void |
addRestrictable(String userName,
String password,
String siteName,
String contentName,
int hours)
Method to add Restrictable Aspect
|
void |
addSummarizable(String userName,
String password,
String siteName,
String contentName,
String summary)
Method to add Summarizable Aspect
|
void |
addTemplatable(String userName,
String password,
String siteName,
String contentName,
String templateContent)
Method to add Templatable Aspect
|
Map<String,Object> |
getBasicProperties(String userName,
String password,
String siteName,
String contentName)
Method to read all basic Properties of a file
|
void |
removeAspect(String userName,
String password,
String siteName,
String contentName,
CMISUtil.DocumentAspect aspectToRemove)
Remove aspect from document or folder
|
void |
setBasicProperties(String userName,
String password,
String siteName,
String contentName,
String docName,
String docTitle,
String docDescription,
String author)
Method to update basic Properties of a file
|
addAspect, addProperties, getCategoryNodeRef, getCMISSession, getNodeRef, getProperties, getPropertyValue, getValues, waitInSecondspublic void addAspect(String userName, String password, String siteName, String contentName, CMISUtil.DocumentAspect aspect) throws Exception
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder nameaspect - aspect to addException - if errorpublic void removeAspect(String userName, String password, String siteName, String contentName, CMISUtil.DocumentAspect aspectToRemove) throws Exception
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder nameaspectToRemove - aspect to be removedException - if errorpublic void addComplianceable(String userName, String password, String siteName, String contentName, Date removeAfter) throws Exception
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder nameremoveAfter - date value for RemoveAfter propertyException - if errorpublic void addDublinCore(String userName, String password, String siteName, String contentName, String publisher, String contributor, String type, String identifier, String source, String coverage, String rights, String subject) throws Exception
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder namepublisher - value for publisher propertycontributor - value for contributor propertytype - value for type propertyidentifier - value for identifier propertysource - value for source propertycoverage - value for coverage propertyrights - value for rights propertysubject - value for subject propertyException - if errorpublic void addEffectivity(String userName, String password, String siteName, String contentName, Date fromDate, Date toDate) throws Exception
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder namefromDate - date value for From propertytoDate - date value for To propertyException - if errorpublic void addGeographicAspect(String userName, String password, String siteName, String contentName, double longitude, double latitude) throws Exception
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder namelongitude - value for longitude propertylatitude - value for latitude propertyException - if errorpublic void addSummarizable(String userName, String password, String siteName, String contentName, String summary) throws Exception
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder namesummary - value for summary propertyException - if errorpublic void addTemplatable(String userName, String password, String siteName, String contentName, String templateContent) throws Exception
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder nametemplateContent - name of templateException - if errorpublic void addEmailed(String userName, String password, String siteName, String contentName, String addressee, List<String> addressees, String subject, String originator, Date sentDate) throws Exception
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder nameaddressee - value of addressee propertyaddressees - list of values for addressees propertysubject - value of subjectoriginator - value for originatorsentDate - date for sentDate propertyException - if errorpublic void addIndexControl(String userName, String password, String siteName, String contentName, boolean isIndexed, boolean contentIndexed) throws Exception
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder nameisIndexed - value of IsIndexed propertycontentIndexed - value of ContentIndexed propertyException - if errorpublic void addRestrictable(String userName, String password, String siteName, String contentName, int hours) throws Exception
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder namehours - no of hours for OfflineExpiresAfter propertyException - if errorpublic void addClasifiable(String userName, String password, String siteName, String contentName, List<String> categoryName) throws Exception
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder namecategoryName - list of categoriesException - if errorpublic Map<String,Object> getBasicProperties(String userName, String password, String siteName, String contentName) throws Exception
public void setBasicProperties(String userName, String password, String siteName, String contentName, String docName, String docTitle, String docDescription, String author) throws Exception
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder namedocName - new value for name of documentdocTitle - new value for title of documentdocDescription - new value for description of documentauthor - new value for author od the documentException - if errorCopyright © 2015 Alfresco Software. All rights reserved.