public abstract class ProfileAuthorizer<U extends CommonProfile> extends java.lang.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,
java.util.List<U> profiles)
If all profiles are authorized.
|
boolean |
isAnyAuthorized(WebContext context,
java.util.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, java.util.List<U> profiles)
context - the web contextprofiles - the user profilespublic boolean isAnyAuthorized(WebContext context, java.util.List<U> profiles)
context - the web contextprofiles - the user profilesprotected abstract boolean isProfileAuthorized(WebContext context, U profile)
context - the web contextprofile - the user profileprotected boolean handleError(WebContext context)
context - the web contextfalseCopyright © 2019. All Rights Reserved.