We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.copilot.
Package com.vaadin.copilot
Class AccessRequirementUtil
java.lang.Object
com.vaadin.copilot.AccessRequirementUtil
Utility class for figuring out access requirements for Java methods such as routes and browser callables.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AccessRequirement
getAccessRequirement
(AnnotatedElement annotatedClassOrMethod, AnnotatedElement fallback) Get the access requirement for the given annotated class or method based on its annotations.
-
Constructor Details
-
AccessRequirementUtil
public AccessRequirementUtil()
-
-
Method Details
-
getAccessRequirement
public static AccessRequirement getAccessRequirement(AnnotatedElement annotatedClassOrMethod, AnnotatedElement fallback) Get the access requirement for the given annotated class or method based on its annotations.
Parameters:
annotatedClassOrMethod
- the annotated class or methodfallback
- the class or method to check if the given class has no access control annotationsReturns:
the access requirement for using the class or method
-