public abstract class ProfileAuthorizer<U extends CommonProfile> extends Object implements Authorizer<U>
| Constructor and Description |
|---|
ProfileAuthorizer() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
handleError(WebContext context)
Handle the error.
|
boolean |
isAllAuthorized(WebContext context,
List<U> profiles)
If all profiles are authorized.
|
boolean |
isAnyAuthorized(WebContext context,
List<U> profiles)
If any of the profiles is authorized.
|
protected abstract boolean |
isProfileAuthorized(WebContext context,
U profile)
Whether a specific profile is authorized.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisAuthorizedpublic boolean isAllAuthorized(WebContext context, List<U> profiles) throws HttpAction
context - the web contextprofiles - the user profilesHttpAction - an extra HTTP actionpublic boolean isAnyAuthorized(WebContext context, List<U> profiles) throws HttpAction
context - the web contextprofiles - the user profilesHttpAction - an extra HTTP actionprotected abstract boolean isProfileAuthorized(WebContext context, U profile) throws HttpAction
context - the web contextprofile - the user profileHttpAction - whether an additional HTTP action is requiredprotected boolean handleError(WebContext context) throws HttpAction
context - the web contextfalseHttpAction - whether an additional HTTP action is requiredCopyright © 2017. All Rights Reserved.