Merged 5.2.N (5.2.1) to HEAD (5.2)

128386 jvonka: 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/HEAD/root@128730 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2016-07-12 12:00:37 +00:00
parent 9f341cc361
commit 4d06aafac8
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";
}