U
- the user profilepublic class RequireAnyPermissionAuthorizer<U extends CommonProfile> extends AbstractRequireAnyAuthorizer<String,U>
elements
Constructor and Description |
---|
RequireAnyPermissionAuthorizer() |
RequireAnyPermissionAuthorizer(List<String> permissions) |
RequireAnyPermissionAuthorizer(Set<String> permissions) |
RequireAnyPermissionAuthorizer(String... permissions) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
check(WebContext context,
U profile,
String element)
Check a specific element.
|
isProfileAuthorized
getElements, isAuthorized, setElements, setElements, setElements
handleError, isAllAuthorized, isAnyAuthorized
public RequireAnyPermissionAuthorizer()
public RequireAnyPermissionAuthorizer(String... permissions)
protected boolean check(WebContext context, U profile, String element) throws HttpAction
AbstractRequireElementAuthorizer
check
in class AbstractRequireElementAuthorizer<String,U extends CommonProfile>
context
- the web contextprofile
- the profileelement
- the element to checkHttpAction
- whether an additional HTTP action is requiredCopyright © 2017. All rights reserved.