com.ibm.portal.outbound.config
Interface PolicyVariableCreationContext

All Superinterfaces:
CreationContext

public interface PolicyVariableCreationContext
extends CreationContext

The creation context for a new policy variable. The creationContext is used by the method OutboundConnectionModelController#create(Class, CreationContext)) to create a new Policy variable.
Code example:

OutboundConnectionProfile theOwner;
OutboundConnectionModelController ctrl;

˙˙˙
PolicyVariableCreationContext cc = OutboundConnectionCreationContextBuilderFactory.getInstance().
getPolicyVariableCreationContext(owner, "my.remote.endopoint", VariableType.Endpoint);
ctrl.create(ModifiableOutboundConnectionProfile.class, cc);

Since:
8.5.0
See Also:
OutboundConnectionCreationContextBuilderFactory, OutboundConnectionProfile

Method Summary
 java.lang.String getName()
          Return the name of the Policy variable.
 OutboundConnectionProfile getParent()
          return the OutboundConenctionProfile object that should own the new PolicyVariable.
 PolicyVariable.VariableType getType()
          Return the variable type
 

Method Detail

getParent

OutboundConnectionProfile getParent()
return the OutboundConenctionProfile object that should own the new PolicyVariable.

Returns:
the parent. Never null.

getName

java.lang.String getName()
Return the name of the Policy variable.

Returns:
String the variable name. Never null!

getType

PolicyVariable.VariableType getType()
Return the variable type

Returns:
VariableType the variable type. VariableType.Endpoint identifies this variable as an endpoint, VariableType.DynamicPolicy is for variables that should be used in dynamic policies.