public static class RoleModel.Policy extends RoleModel.RoleElt
| Modifier and Type | Field and Description |
|---|---|
List<RoleModel.Statement> |
statement |
String |
version |
| Constructor and Description |
|---|
Policy()
Empty constructor: initializes the statements to an empty list.
|
Policy(List<RoleModel.Statement> statement) |
Policy(RoleModel.Statement... statements) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Collection<RoleModel.Statement> statements)
Add a collection of statements.
|
void |
add(RoleModel.Policy other)
Add the statements of another policy to this one.
|
void |
add(RoleModel.Statement stat)
Add a single statement.
|
void |
validate()
Validation includes validating all statements.
|
public String version
public List<RoleModel.Statement> statement
public Policy()
public Policy(List<RoleModel.Statement> statement)
public Policy(RoleModel.Statement... statements)
public void validate()
validate in class RoleModel.RoleEltpublic void add(RoleModel.Policy other)
other - other policy.public void add(Collection<RoleModel.Statement> statements)
statements - statements to add.public void add(RoleModel.Statement stat)
stat - new statement.Copyright © 2008–2024 Apache Software Foundation. All rights reserved.