public abstract class AbstractRequireElementAuthorizer<E,U extends CommonProfile> extends ProfileAuthorizer<U>
| Constructor and Description |
|---|
AbstractRequireElementAuthorizer() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
check(WebContext context,
U profile,
E element)
Check a specific element.
|
java.util.Set<E> |
getElements() |
boolean |
isAuthorized(WebContext context,
java.util.List<U> profiles)
Checks if the user profiles and / or the current web context are authorized.
|
void |
setElements(E... elements) |
void |
setElements(java.util.List<E> elements) |
void |
setElements(java.util.Set<E> elements) |
handleError, isAllAuthorized, isAnyAuthorized, isProfileAuthorizedprotected java.util.Set<E> elements
public boolean isAuthorized(WebContext context, java.util.List<U> profiles) throws HttpAction
Authorizercontext - the web contextprofiles - the user profilesHttpAction - whether an additional HTTP action is requiredprotected abstract boolean check(WebContext context, U profile, E element) throws HttpAction
context - the web contextprofile - the profileelement - the element to checkHttpAction - whether an additional HTTP action is requiredpublic java.util.Set<E> getElements()
public void setElements(java.util.Set<E> elements)
public void setElements(java.util.List<E> elements)
public void setElements(E... elements)
Copyright © 2018. All Rights Reserved.