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.
|
Set<E> |
getElements() |
boolean |
isAuthorized(WebContext context,
List<U> profiles)
Checks if the user profiles and / or the current web context are authorized.
|
void |
setElements(E... elements) |
void |
setElements(List<E> elements) |
void |
setElements(Set<E> elements) |
handleError, isAllAuthorized, isAnyAuthorized, isProfileAuthorizedpublic boolean isAuthorized(WebContext context, 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 void setElements(E... elements)
Copyright © 2017. All Rights Reserved.