com.webify.wsf.engine.policy
Class Policy<T>

java.lang.Object
  extended by com.webify.wsf.engine.policy.Policy<T>
Type Parameters:
T - The type of the policy's original form. See originalForm().

public final class Policy<T>
extends java.lang.Object

Represents a policy for a specific business context.

Version:
$Revision: $
Author:
msanchez

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

PRISM_POLICY

public static final java.lang.String PRISM_POLICY
Deprecated. use PROPAGATED_POLICY instead.
See Also:
Constant Field Values

PROPAGATED_POLICY

public static final java.lang.String PROPAGATED_POLICY
Constant for the Context key of the properly scoped PRISM policy that is suitable for propagation. Was earlier known by the misnomer PRISM_POLICY.

See Also:
Constant Field Values

SESSION_POLICY

public static final java.lang.String SESSION_POLICY
See Also:
Constant Field Values

SUBSCRIPTION_INFO

public static final java.lang.String SUBSCRIPTION_INFO
Constant for the Context key of the context that has had any subscription knowledge imbued unto it.

See Also:
Constant Field Values
Constructor Detail

Policy

public Policy(Context context)
Deprecated. use Policy(Object, Context)


Policy

public Policy(T original,
              Context context)
Method Detail

originalForm

public T originalForm()

getContext

public Context getContext()
Gets the Context instance that was used to build this policy.

Returns:
the context that was used to build this policy
See Also:
PolicyManager.buildPolicy(Context)

getAssertionCount

public int getAssertionCount()

getAssertionAt

public Assertion getAssertionAt(int index)

addAssertion

public void addAssertion(Assertion assertion)

removeAssertion

public Assertion removeAssertion(int index)

clearAssertions

public void clearAssertions()

getComputation

public PolicyComputation getComputation()

setComputation

public void setComputation(PolicyComputation computation)

getExpiration

public long getExpiration()

setExpiration

public void setExpiration(long expirationDate)

getEffectiveDate

public long getEffectiveDate()

setEffectiveDate

public void setEffectiveDate(long effectiveDate)

toString

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


Copyright © 2002-2009 IBM. All Rights Reserved.