Class OrAuthorizer<U extends UserProfile>

  • Type Parameters:
    U - Type of profile
    All Implemented Interfaces:
    Authorizer<U>

    public class OrAuthorizer<U extends UserProfile>
    extends Object
    implements Authorizer<U>
    The disjunction of authorizers.
    Since:
    3.4.0
    Author:
    Sergey Morgunov
    • Constructor Detail

    • Method Detail

      • isAuthorized

        public boolean isAuthorized​(WebContext context,
                                    List<U> profiles)
        Description copied from interface: Authorizer
        Checks if the user profiles and / or the current web context are authorized.
        Specified by:
        isAuthorized in interface Authorizer<U extends UserProfile>
        Parameters:
        context - the web context
        profiles - the user profiles
        Returns:
        if the access is authorized