|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents the effective policy. In the processing,
the effective policy is accessible from CallContext
under key org.systinet.wasp.webservice.CallContext.POLICY_INPUT
for input
and org.systinet.wasp.webservice.CallContext.POLICY_OUTPUT
for output.
The effective policy can be also obtained by the
PolicyManager.getEffectivePolicy(DomainExpression)
.
Method Summary | |
PolicyAssertion |
getAssertion(PolicyAssertion assertion)
Gets given policy assertion from the effective policy or null if the effective policy doesn't contain the assertion. |
Policy |
getPolicy()
Gets the policy, which represents effective policy. |
boolean |
isPolicySatisfied()
Gets true if the effective policy is
satisfied; false otherwise. |
boolean |
isSatisfied(PolicyAssertion assertion)
Gets true if given policy assertion is satisfied;
false otherwise. |
PolicyAssertion |
setSatisfied(PolicyAssertion assertion)
Sets given policy assertion as satisfied. |
Method Detail |
public Policy getPolicy()
public boolean isPolicySatisfied()
true
if the effective policy is
satisfied; false
otherwise.
A policy is satisfied when all child elements are
satisfied. This depends on type of policy operator:
true
if the effective policy is
satisfied; false
otherwise.public PolicyAssertion setSatisfied(PolicyAssertion assertion)
assertion
- assertion to set as satisfied
public boolean isSatisfied(PolicyAssertion assertion)
true
if given policy assertion is satisfied;
false
otherwise.
assertion
- assertion to check
true
if given policy assertion is satisfied;
false
otherwisepublic PolicyAssertion getAssertion(PolicyAssertion assertion)
null
if the effective policy doesn't contain the assertion.
assertion
- to get
null
if the effective policy doesn't contain the assertion.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |