Class ResourceAnnotationUtil
java.lang.Object
com.atlassian.confluence.plugins.restapi.annotations.ResourceAnnotationUtil
Util class for checking if a code block is annotated
- Since:
 - 9.4.0
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic booleanhasAnnotation(javax.ws.rs.container.ResourceInfo resourceInfo, String annotation) static booleanisAnnotated(@NonNull AnnotatedElement annotatedElement, @NonNull String simpleAnnotationName) Check if the element has the Annotation with the simple class name 
- 
Constructor Details
- 
ResourceAnnotationUtil
public ResourceAnnotationUtil() 
 - 
 - 
Method Details
- 
isAnnotated
public static boolean isAnnotated(@NonNull AnnotatedElement annotatedElement, @NonNull String simpleAnnotationName) Check if the element has the Annotation with the simple class name
For example: if the
ContentResourcehas theReadOnlyAccessAllowedannotation and the "simpleAnnotationName" parameter is "ReadOnlyAccessAllowed", this method will return true- Parameters:
 annotatedElement- the annotated elementsimpleAnnotationName- the simple annotation (class) name, e.g. "ReadOnlyAccessAllowed" or "ReadOnlyAccessBlocked"- Returns:
 - true if the element is annotated with the annotation
 - Since:
 - 6.10.0
 
 - 
hasAnnotation
public static boolean hasAnnotation(javax.ws.rs.container.ResourceInfo resourceInfo, String annotation)  
 -