U
- Type of profilepublic class OrAuthorizer<U extends CommonProfile> extends Object implements Authorizer<U>
Constructor and Description |
---|
OrAuthorizer(List<Authorizer<U>> authorizers) |
Modifier and Type | Method and Description |
---|---|
boolean |
isAuthorized(WebContext context,
List<U> profiles)
Checks if the user profiles and / or the current web context are authorized.
|
static <U extends CommonProfile> |
or(Authorizer<U>... authorizers) |
public OrAuthorizer(List<Authorizer<U>> authorizers)
public boolean isAuthorized(WebContext context, List<U> profiles)
Authorizer
isAuthorized
in interface Authorizer<U extends CommonProfile>
context
- the web contextprofiles
- the user profilespublic static <U extends CommonProfile> OrAuthorizer<U> or(Authorizer<U>... authorizers)
Copyright © 2019. All rights reserved.