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, wait
isAuthorized
public boolean isAllAuthorized(WebContext context, List<U> profiles)
context
- the web contextprofiles
- the user profilespublic boolean isAnyAuthorized(WebContext context, 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 contextfalse
Copyright © 2019. All rights reserved.