Merged 5.1.N (5.1.2) to 5.2.N (5.2.1)

128375 jvonka: MNT-16446: Edit Comment permission (part 3) 
   - for CMIS (and also future v1 Nodes REST API)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@128386 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2016-06-27 19:08:30 +00:00
parent 127086afed
commit ecd686b049
3 changed files with 201 additions and 7 deletions

View File

@@ -31,6 +31,8 @@ import org.alfresco.query.PagingRequest;
import org.alfresco.query.PagingResults;
import org.alfresco.service.cmr.repository.NodeRef;
import java.util.Map;
/**
* A service for handling comments.
*
@@ -93,4 +95,16 @@ public interface CommentService
* @param commentNodeRef the node in Share which is being commented on.
*/
void deleteComment(NodeRef commentNodeRef);
/**
* canEdit / canDelete
*
* @param discussableNode
* @param commentNodeRef
* @return
*/
Map<String, Boolean> getCommentPermissions(NodeRef discussableNode, NodeRef commentNodeRef);
String CAN_EDIT = "canEdit";
String CAN_DELETE = "canDelete";
}