|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CommentPermissionManager
A unified way of checking whether a user can see a comment or not
Method Summary | |
---|---|
boolean |
hasBrowsePermission(Comment comment,
User user)
Return true if the user can see the comment. |
boolean |
hasEditPermission(Comment comment,
User user)
Determines whether the given user has permission to edit the given comment. |
Method Detail |
---|
boolean hasBrowsePermission(Comment comment, User user)
comment
- commentuser
- user
boolean hasEditPermission(Comment comment, User user)
Permissions.COMMENT_EDIT_ALL
permission or the
Permissions.COMMENT_EDIT_OWN
permission in case the user is the author of the
given comment.
NOTE: The permissions will be determined by the permission scheme associated to the project the comment is
a part of and the entries for the above mentioned permissions.
comment
- commentuser
- user
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |