com.webify.wsf.engine.policy
Class PolicyRule

java.lang.Object
  extended by com.webify.wsf.engine.policy.PolicyRule
All Implemented Interfaces:
java.io.Serializable

public final class PolicyRule
extends java.lang.Object
implements java.io.Serializable

Represents a policy rule in a system of policy rules. Public APIs use this when requesting that an existing policy be customized.
A policy rule has two parts to it: the LHS which represents the conditions under which the rule is applicable, and the RHS which represents what assertions (restrictions) are applied whenever this rule becomes applicable.
When customizing a policy, changes are expressed as new (or replacement) policy rules. If the LHS of the incoming rule matches the LHS of any rules that already exist in the system of rules, then the existing rules are end-dated, and the new rule added. If no matches are found, the new rule is simply added.
In the current implementation, an LHS match is defined as the same target dimension AND the same set of coordinate object ids.

Version:
$Revision: $
Author:
msanchez
See Also:
Serialized Form

Constructor Summary
PolicyRule()
           
 
Method Summary
 void addAssertion(Assertion assertion)
           
 void addCondition(PolicyCondition condition)
           
 java.util.Set assertionSet()
           
 java.util.Set conditionSet()
           
 PolicyCondition getTarget()
           
 void removeAllAssertions()
           
 void removeAllConditions()
           
 void removeAssertion(Assertion assertion)
           
 void removeCondition(PolicyCondition condition)
           
 void setTarget(PolicyCondition target)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PolicyRule

public PolicyRule()
Method Detail

getTarget

public PolicyCondition getTarget()

setTarget

public void setTarget(PolicyCondition target)

addCondition

public void addCondition(PolicyCondition condition)

removeCondition

public void removeCondition(PolicyCondition condition)

removeAllConditions

public void removeAllConditions()

conditionSet

public java.util.Set conditionSet()
Returns:
non-null possibly empty set of PolicyCondition objects representing this rule's LHS. Note that this does not include this rule's target.
See Also:
getTarget()

addAssertion

public void addAssertion(Assertion assertion)

removeAssertion

public void removeAssertion(Assertion assertion)

removeAllAssertions

public void removeAllAssertions()

assertionSet

public java.util.Set assertionSet()
Returns:
non-null possibly empty set of Assertion objects representing this rule's RHS.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2002-2009 IBM. All Rights Reserved.