You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.copilot.

Class AccessRequirementUtil

java.lang.Object
com.vaadin.copilot.AccessRequirementUtil
public class AccessRequirementUtil extends Object

Utility class for figuring out access requirements for Java methods such as routes and browser callables.

  • 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 method

      fallback - the class or method to check if the given class has no access control annotations

      Returns:

      the access requirement for using the class or method