@Role
public interface AnnotationRightService
Modifier and Type | Method and Description |
---|---|
boolean |
canAddAnnotation(String target,
String userName)
Checks if the user can add annotations on the specified target.
|
boolean |
canEditAnnotation(String annotationId,
String target,
String userName)
Checks if the user can edit the specified annotation.
|
boolean |
canViewAnnotatedTarget(String target,
String userName)
Checks if the specified user can view the passed target annotated (which implies view on the target itself and
the ability to view the annotations).
|
boolean |
canViewAnnotations(String target,
String userName)
Checks if the specified user can view the annotations on the specific target.
|
boolean canViewAnnotations(String target, String userName)
target
- the target of the annotations to viewuserName
- the name of the user to view the annotationstrue
if the user can view the annotations on the passed target, false
otherwiseboolean canViewAnnotatedTarget(String target, String userName)
target
- the target to view annotateduserName
- the name of the user to view the annotated targettrue
if the user can see the target annotated, false
otherwise.boolean canAddAnnotation(String target, String userName)
target
- the target on which to add annotationsuserName
- the name of the user to add annotationstrue
if the user can annotate the target, false
otherwiseboolean canEditAnnotation(String annotationId, String target, String userName)
target
- the target of the annotation to edituserName
- the name of the user to edit the annotationannotationId
- the id of the annotation to be editedtrue
if the user can edit the annotation, false
otherwiseCopyright © 2004–2022 XWiki. All rights reserved.