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, isProfileAuthorized
public boolean isAuthorized(WebContext context, List<U> profiles)
Authorizer
context
- the web contextprofiles
- the user profilesprotected abstract boolean check(WebContext context, U profile, E element)
context
- the web contextprofile
- the profileelement
- the element to checkpublic void setElements(E... elements)
Copyright © 2019. All rights reserved.