Class AbstractRequireElementAuthorizer<E>

    • Field Detail

      • elements

        protected java.util.Set<E> elements
    • Constructor Detail

      • AbstractRequireElementAuthorizer

        public AbstractRequireElementAuthorizer()
    • Method Detail

      • isAuthorized

        public boolean isAuthorized​(WebContext context,
                                    SessionStore sessionStore,
                                    java.util.List<UserProfile> profiles)
        Description copied from interface: Authorizer
        Checks if the user profiles and / or the current web context are authorized.
        Parameters:
        context - the web context
        sessionStore - the session store
        profiles - the user profiles
        Returns:
        if the access is authorized
      • check

        protected abstract boolean check​(WebContext context,
                                         SessionStore sessionStore,
                                         UserProfile profile,
                                         E element)
        Check a specific element.
        Parameters:
        context - the web context
        sessionStore - the session store
        profile - the profile
        element - the element to check
        Returns:
        whether it is authorized for this element
      • getElements

        public java.util.Set<E> getElements()
      • setElements

        public void setElements​(java.util.Set<E> elements)
      • setElements

        public void setElements​(java.util.List<E> elements)
      • setElements

        public void setElements​(E... elements)