public static class RoleModel.Statement extends RoleModel.RoleElt
Modifier and Type | Field and Description |
---|---|
List<String> |
action |
RoleModel.Effects |
effect
Default effect is Deny; forces callers to switch on Allow.
|
List<String> |
resource |
String |
sid |
Constructor and Description |
---|
Statement(RoleModel.Effects effect) |
Modifier and Type | Method and Description |
---|---|
RoleModel.Statement |
addActions(Collection<String> actions) |
RoleModel.Statement |
addActions(String... actions) |
RoleModel.Statement |
addResources(Collection<String> resources)
Add a list of resources.
|
RoleModel.Statement |
addResources(String... resources) |
RoleModel.Statement |
setAllowed(boolean f) |
void |
validate()
validation operation.
|
public String sid
public RoleModel.Effects effect
public Statement(RoleModel.Effects effect)
public void validate()
RoleModel.RoleElt
validate
in class RoleModel.RoleElt
public RoleModel.Statement setAllowed(boolean f)
public RoleModel.Statement addActions(String... actions)
public RoleModel.Statement addActions(Collection<String> actions)
public RoleModel.Statement addResources(String... resources)
public RoleModel.Statement addResources(Collection<String> resources)
resources
- resource listCopyright © 2008–2024 Apache Software Foundation. All rights reserved.