public class ResourceCheckImpl<C extends ResourceCheckImpl> extends Object implements ResourceCheck<C>
Modifier and Type | Field and Description |
---|---|
protected AuthorizationManager |
authorizationManager |
protected Resource |
resource |
protected ResourceAction |
resourceAction |
protected ResourceType |
resourceType |
protected Boolean |
result |
protected org.jboss.errai.security.shared.api.identity.User |
user |
protected VotingStrategy |
votingStrategy |
Constructor and Description |
---|
ResourceCheckImpl(AuthorizationManager authorizationManager,
ResourceType resourceType,
org.jboss.errai.security.shared.api.identity.User user) |
ResourceCheckImpl(AuthorizationManager authorizationManager,
ResourceType resourceType,
org.jboss.errai.security.shared.api.identity.User user,
VotingStrategy votingStrategy) |
ResourceCheckImpl(AuthorizationManager authorizationManager,
Resource resource,
org.jboss.errai.security.shared.api.identity.User user) |
ResourceCheckImpl(AuthorizationManager authorizationManager,
Resource resource,
org.jboss.errai.security.shared.api.identity.User user,
VotingStrategy votingStrategy) |
Modifier and Type | Method and Description |
---|---|
C |
action(ResourceAction action)
Specifies the action to check
|
protected void |
check(ResourceAction action) |
C |
denied(Command onDenied)
Specifies the command instance to execute in case the check result is denied.
|
C |
granted(Command onGranted)
Specifies the command instance to execute in case the check result is granted.
|
boolean |
result()
Get the check result value
|
protected AuthorizationManager authorizationManager
protected Resource resource
protected ResourceAction resourceAction
protected ResourceType resourceType
protected org.jboss.errai.security.shared.api.identity.User user
protected VotingStrategy votingStrategy
protected Boolean result
public ResourceCheckImpl(AuthorizationManager authorizationManager, Resource resource, org.jboss.errai.security.shared.api.identity.User user)
public ResourceCheckImpl(AuthorizationManager authorizationManager, ResourceType resourceType, org.jboss.errai.security.shared.api.identity.User user)
public ResourceCheckImpl(AuthorizationManager authorizationManager, Resource resource, org.jboss.errai.security.shared.api.identity.User user, VotingStrategy votingStrategy)
public ResourceCheckImpl(AuthorizationManager authorizationManager, ResourceType resourceType, org.jboss.errai.security.shared.api.identity.User user, VotingStrategy votingStrategy)
protected void check(ResourceAction action)
public C action(ResourceAction action)
ResourceCheck
action
in interface ResourceCheck<C extends ResourceCheckImpl>
action
- The action to checkpublic C granted(Command onGranted)
AuthorizationCheck
granted
in interface AuthorizationCheck<C extends ResourceCheckImpl>
onGranted
- The command to executepublic C denied(Command onDenied)
AuthorizationCheck
denied
in interface AuthorizationCheck<C extends ResourceCheckImpl>
onDenied
- The command to executepublic boolean result()
AuthorizationCheck
result
in interface AuthorizationCheck<C extends ResourceCheckImpl>
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.