U
- the user profilepublic class RequireAnyRoleAuthorizer<U extends UserProfile> extends Object implements Authorizer<U>
Constructor and Description |
---|
RequireAnyRoleAuthorizer() |
RequireAnyRoleAuthorizer(List<String> roles) |
RequireAnyRoleAuthorizer(Set<String> roles) |
RequireAnyRoleAuthorizer(String... roles) |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getRoles() |
boolean |
isAuthorized(WebContext context,
U profile)
Checks if the user profile is authorized for the current web context.
|
void |
setRoles(List<String> roles) |
void |
setRoles(Set<String> roles) |
void |
setRoles(String... roles) |
public RequireAnyRoleAuthorizer()
public RequireAnyRoleAuthorizer(String... roles)
public boolean isAuthorized(WebContext context, U profile)
isAuthorized
in interface Authorizer<U extends UserProfile>
context
- the web contextprofile
- the user profilepublic void setRoles(String... roles)
Copyright © 2015. All Rights Reserved.