Enum Class NavigationContext.Phase

java.lang.Object
java.lang.Enum<NavigationContext.Phase>
com.vaadin.flow.server.auth.NavigationContext.Phase
All Implemented Interfaces:
Serializable, Comparable<NavigationContext.Phase>, Constable
Enclosing class:
NavigationContext

public static enum NavigationContext.Phase extends Enum<NavigationContext.Phase>
The reason why an access check is run.
Since:
25.4
  • Enum Constant Details

    • EVALUATION

      public static final NavigationContext.Phase EVALUATION
      The access of the current user to the target view is checked outside of a navigation, for example to populate the menu.
    • PUBLIC_ROUTE_CHECK

      public static final NavigationContext.Phase PUBLIC_ROUTE_CHECK
      The target view is checked for anonymous access, to find out if the route is public. No user is involved: the principal is null and no role is granted.
  • Method Details

    • values

      public static NavigationContext.Phase[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NavigationContext.Phase valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null