@Service public class ContentActions extends CMISUtil
CMISUtil.DocumentAspect, CMISUtil.DocumentType, CMISUtil.Priority, CMISUtil.StatusalfrescoHttpClientFactory| 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
|
void |
cancelCheckOut(String userName,
String password,
String siteId,
String fileName)
If this is a PWC (private working copy) the check out will be reversed.
|
org.apache.chemistry.opencmis.client.api.ObjectId |
checkIn(String userName,
String password,
String siteId,
String docName,
CMISUtil.DocumentType fileType,
String newContent,
boolean majorVersion,
String checkinComment)
Check in document.
|
org.apache.chemistry.opencmis.client.api.ObjectId |
checkOut(String userName,
String password,
String siteId,
String fileName)
Checks out the document and returns the object id of the PWC (private
working copy).
|
org.apache.chemistry.opencmis.client.api.CmisObject |
copyTo(String userName,
String password,
String sourceSite,
String contentName,
String targetSite,
String targetFolder)
Copy file 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
|
String |
getVersion(String userName,
String password,
String siteId,
String fileName)
Get the version of a file
|
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
|
org.apache.chemistry.opencmis.client.api.CmisObject |
moveTo(String userName,
String password,
String sourceSite,
String contentName,
String targetSite,
String targetFolder)
Move file 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, attachDocuments, closeStreams, getCategoryNodeRef, getCmisObject, getCMISSession, getDocumentObject, getFolderObject, getNodeRef, getNodeRef, getNodeRefByPath, getProperties, getPropertyValue, getUserNodeRef, getValues, waitInSecondspublic boolean addSingleTag(String userName, String password, String siteName, String contentName, String tag)
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder nametag - tag for file or folderpublic boolean addMultipleTags(String userName, String password, String siteName, String contentName, List<String> tags)
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder nametags - list of tags for a file or folderpublic List<String> getTagNamesFromContent(String userName, String password, String siteName, String contentName)
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder namepublic String getTagNodeRef(String userName, String password, String siteName, String contentName, String tagName)
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder nametagName - tag of a file of folderpublic boolean removeTag(String userName, String password, String siteName, String contentName, String tagName)
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder nametagName - tag of a file or folderpublic boolean addComment(String userName, String password, String siteName, String contentName, String comment)
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder namecomment - comment for a file or folderpublic boolean addMultipleComments(String userName, String password, String siteName, String contentName, List<String> comments)
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder namecomments - list of commentspublic List<String> getComments(String userName, String password, String siteName, String contentName)
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder namepublic String getCommentNodeRef(String userName, String password, String siteName, String contentName, String comment)
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder namecomment - comment of a file or folderpublic boolean removeComment(String userName, String password, String siteName, String contentName, String comment)
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder namecomment - comment of a file or folderpublic boolean likeContent(String userName, String password, String siteName, String contentName)
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder namepublic int countLikes(String userName, String password, String siteName, String contentName)
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder namepublic boolean removeLike(String userName, String password, String siteName, String contentName)
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder namepublic boolean setFileAsFavorite(String userName, String password, String siteName, String fileName)
userName - login usernamepassword - login passwordsiteName - site namefileName - file namepublic boolean setFolderAsFavorite(String userName, String password, String siteName, String folderName)
userName - login usernamepassword - login passwordsiteName - site namefolderName - folder namepublic boolean removeFavorite(String userName, String password, String siteName, String contentName)
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder namepublic boolean isFavorite(String userName, String password, String siteName, String contentName)
userName - login usernamepassword - login passwordsiteName - site namecontentName - file or folder namepublic org.apache.chemistry.opencmis.client.api.ObjectId checkOut(String userName, String password, String siteId, String fileName)
userName - login usernamepassword - login passwordsiteId - site namefileName - filepublic void cancelCheckOut(String userName, String password, String siteId, String fileName)
userName - login usernamepassword - login passwordsiteId - site namefileName - filepublic org.apache.chemistry.opencmis.client.api.ObjectId checkIn(String userName, String password, String siteId, String docName, CMISUtil.DocumentType fileType, String newContent, boolean majorVersion, String checkinComment)
userName - login usernamepassword - login passwordsiteId - site namedocName - document namefileType - DocumentType type of documentnewContent - String new content to be setmajorVersion - boolean true to set major versioncheckinComment - String check in commentpublic String getVersion(String userName, String password, String siteId, String fileName)
userName - login usernamepassword - login passwordsiteId - site namefileName - filepublic org.apache.chemistry.opencmis.client.api.CmisObject copyTo(String userName, String password, String sourceSite, String contentName, String targetSite, String targetFolder)
userName - user namepassword - passwordsiteName - source sitecontentName - content to be copiedtargetSite - tartget sitetargetFolder - target folder. If null document library is setpublic org.apache.chemistry.opencmis.client.api.CmisObject moveTo(String userName, String password, String sourceSite, String contentName, String targetSite, String targetFolder)
userName - user namepassword - passwordsiteName - source sitecontentName - content to be copiedtargetSite - tartget sitetargetFolder - target folder. If null document library is setCopyright © 2016 Alfresco Software. All rights reserved.