|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webify.wsf.engine.policy.Policy<T>
T
- The type of the policy's original form. See originalForm()
.public final class Policy<T>
Represents a policy for a specific business context.
Field Summary | |
---|---|
static java.lang.String |
PRISM_POLICY
Deprecated. use PROPAGATED_POLICY instead. |
static java.lang.String |
PROPAGATED_POLICY
Constant for the Context key of the properly scoped PRISM policy that is suitable for propagation. |
static java.lang.String |
SESSION_POLICY
|
static java.lang.String |
SUBSCRIPTION_INFO
Constant for the Context key of the context that has had any subscription knowledge imbued unto it. |
Constructor Summary | |
---|---|
Policy(Context context)
Deprecated. use Policy(Object, Context) |
|
Policy(T original,
Context context)
|
Method Summary | |
---|---|
void |
addAssertion(Assertion assertion)
|
void |
clearAssertions()
|
Assertion |
getAssertionAt(int index)
|
int |
getAssertionCount()
|
PolicyComputation |
getComputation()
|
Context |
getContext()
Gets the Context instance that was used to build this policy. |
long |
getEffectiveDate()
|
long |
getExpiration()
|
T |
originalForm()
|
Assertion |
removeAssertion(int index)
|
void |
setComputation(PolicyComputation computation)
|
void |
setEffectiveDate(long effectiveDate)
|
void |
setExpiration(long expirationDate)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PRISM_POLICY
PROPAGATED_POLICY
instead.public static final java.lang.String PROPAGATED_POLICY
PRISM_POLICY
.
public static final java.lang.String SESSION_POLICY
public static final java.lang.String SUBSCRIPTION_INFO
Constructor Detail |
---|
public Policy(Context context)
Policy(Object, Context)
public Policy(T original, Context context)
Method Detail |
---|
public T originalForm()
public Context getContext()
Context
instance that was used to build this policy.
PolicyManager.buildPolicy(Context)
public int getAssertionCount()
public Assertion getAssertionAt(int index)
public void addAssertion(Assertion assertion)
public Assertion removeAssertion(int index)
public void clearAssertions()
public PolicyComputation getComputation()
public void setComputation(PolicyComputation computation)
public long getExpiration()
public void setExpiration(long expirationDate)
public long getEffectiveDate()
public void setEffectiveDate(long effectiveDate)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |