public class ContentActions extends CMISUtil
CMISUtil.DocumentAspect, CMISUtil.DocumentTypealfrescoHttpClientFactory| Constructor and Description |
|---|
ContentActions() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addComment(String userName,
String password,
String siteName,
String contentName,
String comment)
Create a comment for a document or folder
|
boolean |
addMultipleComments(String userName,
String password,
String siteName,
String contentName,
List<String> comments)
Create multiple comments for a document or folder
|
boolean |
addMultipleTags(String userName,
String password,
String siteName,
String contentName,
List<String> tags)
Create multiple tags for document or folder
|
boolean |
addSingleTag(String userName,
String password,
String siteName,
String contentName,
String tag)
Create tag for a document or folder
|
int |
countLikes(String userName,
String password,
String siteName,
String contentName)
Get the number of likes for a document or folder
|
String |
getCommentNodeRef(String userName,
String password,
String siteName,
String contentName,
String comment)
Get the node ref for comment
|
List<String> |
getComments(String userName,
String password,
String siteName,
String contentName)
Get list of comments that are set for a document or folder
|
List<String> |
getTagNamesFromContent(String userName,
String password,
String siteName,
String contentName)
Get list of tag names that are set for a document or folder
|
String |
getTagNodeRef(String userName,
String password,
String siteName,
String contentName,
String tagName)
Get the node ref from a tag
|
boolean |
isFavorite(String userName,
String password,
String siteName,
String contentName)
Verify if a document or folder is marked as favorite
|
boolean |
likeContent(String userName,
String password,
String siteName,
String contentName)
Like a document or folder
|
boolean |
removeComment(String userName,
String password,
String siteName,
String contentName,
String comment)
Remove comment from content
|
boolean |
removeFavorite(String userName,
String password,
String siteName,
String contentName)
Remove favorite from document or folder
|
boolean |
removeLike(String userName,
String password,
String siteName,
String contentName)
Remove like from content
|
boolean |
removeTag(String userName,
String password,
String siteName,
String contentName,
String tagName)
Remove tag from content
|
boolean |
setFileAsFavorite(String userName,
String password,
String siteName,
String fileName)
Set a document as favorite
|
boolean |
setFolderAsFavorite(String userName,
String password,
String siteName,
String folderName)
Set a folder as favorite
|
addAspect, addProperties, getCategoryNodeRef, getCMISSession, getNodeRef, getProperties, getPropertyValue, getValues, waitInSecondspublic boolean addSingleTag(String userName, String password, String siteName, String contentName, String tag) throws Exception
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder nametag - tag for file or folderException - if errorpublic boolean addMultipleTags(String userName, String password, String siteName, String contentName, List<String> tags) throws Exception
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder nametags - list of tags for a file or folderException - if errorpublic List<String> getTagNamesFromContent(String userName, String password, String siteName, String contentName) throws Exception
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder nameException - if errorpublic String getTagNodeRef(String userName, String password, String siteName, String contentName, String tagName) throws Exception
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder nametagName - tag of a file of folderException - if errorpublic boolean removeTag(String userName, String password, String siteName, String contentName, String tagName) throws Exception
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder nametagName - tag of a file or folderException - if errorpublic boolean addComment(String userName, String password, String siteName, String contentName, String comment) throws Exception
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder namecomment - comment for a file or folderException - if errorpublic boolean addMultipleComments(String userName, String password, String siteName, String contentName, List<String> comments) throws Exception
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder namecomments - list of commentsException - if errorpublic List<String> getComments(String userName, String password, String siteName, String contentName) throws Exception
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder nameException - if errorpublic String getCommentNodeRef(String userName, String password, String siteName, String contentName, String comment) throws Exception
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder namecomment - comment of a file or folderException - if errorpublic boolean removeComment(String userName, String password, String siteName, String contentName, String comment) throws Exception
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder namecomment - comment of a file or folderException - if errorpublic boolean likeContent(String userName, String password, String siteName, String contentName) throws Exception
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder nameException - if errorpublic int countLikes(String userName, String password, String siteName, String contentName) throws Exception
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder nameException - if errorpublic boolean removeLike(String userName, String password, String siteName, String contentName) throws Exception
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder nameException - if errorpublic boolean setFileAsFavorite(String userName, String password, String siteName, String fileName) throws Exception
userName - login usernamepassword - login passwordsiteName - site namefileName - file nameException - if errorpublic boolean setFolderAsFavorite(String userName, String password, String siteName, String folderName) throws Exception
userName - login usernamepassword - login passwordsiteName - site namefolderName - folder nameException - if errorpublic boolean removeFavorite(String userName, String password, String siteName, String contentName) throws Exception
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder nameException - if errorpublic boolean isFavorite(String userName, String password, String siteName, String contentName) throws Exception
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder nameException - if errorCopyright © 2015 Alfresco Software. All rights reserved.