Package fr.becpg.repo.comment
Interface CommentPermissionService
- All Known Implementing Classes:
CommentPermissionServiceImpl
public interface CommentPermissionService
Decides whether the current user can edit and delete a comment: an external user can only change their own
comments, and the registered
CommentPermissionPlugins can restrict the comments of the nodes they govern.- Author:
- valentin
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanModify(org.alfresco.service.cmr.repository.NodeRef commentNodeRef) Tells whether the current user can edit and delete a comment.
-
Method Details
-
canModify
boolean canModify(org.alfresco.service.cmr.repository.NodeRef commentNodeRef) Tells whether the current user can edit and delete a comment.- Parameters:
commentNodeRef- the comment- Returns:
- false if the current user is an external user who did not post the comment, or if a plugin governing the commented node refuses it, true otherwise
-