public abstract class AbstractRoleAuthorizationStrategy extends IAuthorizationStrategy.AllowAllAuthorizationStrategy
IRoleCheckingStrategy
.IAuthorizationStrategy.AllowAllAuthorizationStrategy
ALLOW_ALL
Constructor and Description |
---|
AbstractRoleAuthorizationStrategy(IRoleCheckingStrategy roleCheckingStrategy)
Construct.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
hasAny(Roles roles)
Gets whether any of the given roles applies to the authorizer.
|
protected boolean |
isEmpty(Roles roles)
Conducts a check to see if the roles object is empty.
|
isActionAuthorized, isInstantiationAuthorized, isResourceAuthorized
public AbstractRoleAuthorizationStrategy(IRoleCheckingStrategy roleCheckingStrategy)
roleCheckingStrategy
- the authorizer delegateprotected final boolean hasAny(Roles roles)
roles
- the rolesprotected final boolean isEmpty(Roles roles)
roles
- the Roles object to testCopyright © 2006–2022 Apache Software Foundation. All rights reserved.