U
- the user profilepublic class RequireAnyRoleAuthorizer<U extends CommonProfile> extends AbstractRequireAnyAuthorizer<String,U>
elements
Constructor and Description |
---|
RequireAnyRoleAuthorizer() |
RequireAnyRoleAuthorizer(List<String> roles) |
RequireAnyRoleAuthorizer(Set<String> roles) |
RequireAnyRoleAuthorizer(String... roles) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
check(WebContext context,
U profile,
String element)
Check a specific element.
|
static <U extends CommonProfile> |
requireAnyRole(List<String> roles) |
static <U extends CommonProfile> |
requireAnyRole(Set<String> roles) |
static <U extends CommonProfile> |
requireAnyRole(String... roles) |
isProfileAuthorized
getElements, isAuthorized, setElements, setElements, setElements
handleError, isAllAuthorized, isAnyAuthorized
public RequireAnyRoleAuthorizer()
public RequireAnyRoleAuthorizer(String... roles)
protected boolean check(WebContext context, U profile, String element)
AbstractRequireElementAuthorizer
check
in class AbstractRequireElementAuthorizer<String,U extends CommonProfile>
context
- the web contextprofile
- the profileelement
- the element to checkpublic static <U extends CommonProfile> RequireAnyRoleAuthorizer<U> requireAnyRole(String... roles)
public static <U extends CommonProfile> RequireAnyRoleAuthorizer<U> requireAnyRole(List<String> roles)
public static <U extends CommonProfile> RequireAnyRoleAuthorizer<U> requireAnyRole(Set<String> roles)
Copyright © 2019. All rights reserved.