final class PolicyScope
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static PolicyLogger |
LOGGER |
private java.util.List<PolicySubject> |
subjects |
| Constructor and Description |
|---|
PolicyScope(java.util.List<PolicySubject> initialSubjects) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
attach(PolicySubject subject) |
(package private) void |
dettachAllSubjects() |
(package private) Policy |
getEffectivePolicy(PolicyMerger merger)
Returns all policies of the scope merged into one policy
|
(package private) java.util.Collection<PolicySubject> |
getPolicySubjects()
Returns all subjects contained by this scope
|
java.lang.String |
toString()
An
Object.toString() method override. |
(package private) java.lang.StringBuffer |
toString(int indentLevel,
java.lang.StringBuffer buffer)
A helper method that appends indented string representation of this instance to the input string buffer.
|
private static final PolicyLogger LOGGER
private final java.util.List<PolicySubject> subjects
PolicyScope(java.util.List<PolicySubject> initialSubjects)
void attach(PolicySubject subject)
void dettachAllSubjects()
Policy getEffectivePolicy(PolicyMerger merger) throws PolicyException
PolicyExceptionjava.util.Collection<PolicySubject> getPolicySubjects()
public java.lang.String toString()
Object.toString() method override.toString in class java.lang.Objectjava.lang.StringBuffer toString(int indentLevel,
java.lang.StringBuffer buffer)
indentLevel - indentation level to be used.buffer - buffer to be used for appending string representation of this instance