Package fr.becpg.repo.comment
Interface CommentPermissionPlugin
public interface CommentPermissionPlugin
Restricts who can edit or delete the comments posted on some kinds of nodes.
Plugins only narrow the standard Alfresco permissions: a user still needs the permission to write or
delete the comment node itself.
- Author:
- valentin
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanModify(org.alfresco.service.cmr.repository.NodeRef commentNodeRef, org.alfresco.service.cmr.repository.NodeRef discussableNodeRef) Tells whether the current user can edit and delete a comment.booleanisApplicable(org.alfresco.service.cmr.repository.NodeRef discussableNodeRef) Tells whether this plugin governs the comments posted on a node.
-
Method Details
-
isApplicable
boolean isApplicable(org.alfresco.service.cmr.repository.NodeRef discussableNodeRef) Tells whether this plugin governs the comments posted on a node.- Parameters:
discussableNodeRef- the node the comments are posted on- Returns:
- true if this plugin decides who can edit or delete these comments
-
canModify
boolean canModify(org.alfresco.service.cmr.repository.NodeRef commentNodeRef, org.alfresco.service.cmr.repository.NodeRef discussableNodeRef) Tells whether the current user can edit and delete a comment.- Parameters:
commentNodeRef- the commentdiscussableNodeRef- the node the comment is posted on- Returns:
- true if the current user can edit and delete the comment
-