U - the user profilepublic class RequireAnyRoleAuthorizer<U extends CommonProfile> extends AbstractRequireAnyAuthorizer<java.lang.String,U>
elements| Constructor and Description |
|---|
RequireAnyRoleAuthorizer() |
RequireAnyRoleAuthorizer(java.util.List<java.lang.String> roles) |
RequireAnyRoleAuthorizer(java.util.Set<java.lang.String> roles) |
RequireAnyRoleAuthorizer(java.lang.String... roles) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
check(WebContext context,
U profile,
java.lang.String element)
Check a specific element.
|
isProfileAuthorizedgetElements, isAuthorized, setElements, setElements, setElementshandleError, isAllAuthorized, isAnyAuthorizedpublic RequireAnyRoleAuthorizer()
public RequireAnyRoleAuthorizer(java.lang.String... roles)
public RequireAnyRoleAuthorizer(java.util.List<java.lang.String> roles)
public RequireAnyRoleAuthorizer(java.util.Set<java.lang.String> roles)
protected boolean check(WebContext context, U profile, java.lang.String element) throws HttpAction
AbstractRequireElementAuthorizercheck in class AbstractRequireElementAuthorizer<java.lang.String,U extends CommonProfile>context - the web contextprofile - the profileelement - the element to checkHttpAction - whether an additional HTTP action is requiredCopyright © 2018. All Rights Reserved.