Class AbstractRequireElementAuthorizer<E,​U extends UserProfile>

    • Field Detail

      • elements

        protected Set<E> elements
    • Constructor Detail

      • AbstractRequireElementAuthorizer

        public AbstractRequireElementAuthorizer()
    • 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.
        Parameters:
        context - the web context
        profiles - the user profiles
        Returns:
        if the access is authorized
      • check

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

        public Set<E> getElements()
      • setElements

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

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

        public void setElements​(E... elements)