@InterfaceStability.Evolving public class Action extends Object
| Constructor and Description |
|---|
Action(AclOperation operation, ResourcePattern resourcePattern, int resourceReferenceCount, boolean logIfAllowed, boolean logIfDenied) |
| Modifier and Type | Method and Description |
|---|---|
static Action | anyActionForResourcePattern(ResourcePattern resourcePattern) |
boolean | equals(Object o) |
int | hashCode() |
boolean | logIfAllowed()Indicates if audit logs tracking ALLOWED access should include this action if result is ALLOWED. |
boolean | logIfDenied()Indicates if audit logs tracking DENIED access should include this action if result is DENIED. |
AclOperation | operation() |
ResourcePattern | resourcePattern() |
int | resourceReferenceCount()Number of times the resource being authorized is referenced within the request. |
String | toString() |
public Action(AclOperation operation, ResourcePattern resourcePattern, int resourceReferenceCount, boolean logIfAllowed, boolean logIfDenied)
operation - non-null operation being performedresourcePattern - non-null resource pattern on which this action is being performedpublic ResourcePattern resourcePattern()
public AclOperation operation()
public boolean logIfAllowed()
public boolean logIfDenied()
public int resourceReferenceCount()
public static Action anyActionForResourcePattern(ResourcePattern resourcePattern)