com.ibm.portal.outbound.config
Interface ModifiablePolicyVariable
- All Superinterfaces:
- Administrable, Modifiable, ModifiableNode, PolicyVariable
public interface ModifiablePolicyVariable
- extends PolicyVariable, ModifiableNode
The interface is provided by OutboundConnectionModelController#getModifiableNode()
.
It contains functions to modify outbound connection policy variables. Note that the settings are
immediately effective in the model, but they are not stored in the database unless commit()
has
been applied on the OutboundConnectionModelController object.
The following code excerpt changes settings of a policy variable:
OutboundConnectionModelController ctrl;
OutboundConnectionModel model;
OutboundConnectionProfile profile;
˙˙˙
PolicyVariable variable = model.getPolicyVariableLocator(profile).findByName("an.endpoint.variable");
ModifiablePolicyVariable mvariable = ctrl.getModifiableNode(variable);
mvariable.setEndpointValue("http://www.myserver.org/public");
ctrl.commit();
- Since:
- 8.5.0
- See Also:
OutboundConnectionModel
,
OutboundConnectionModelController
,
PolicyVariable
Method Summary |
void |
setDynamicPolicyValues(java.util.Collection<java.lang.String> values)
Set the dynamic policy values |
void |
setEndpointValue(java.lang.String replacementValue)
Set the endpoint value |
setEndpointValue
void setEndpointValue(java.lang.String replacementValue)
throws CannotModifyPropertyException
- Set the endpoint value
- Parameters:
replacementValue
- the new endpoint value. Note that this method only has any effect if
the VariableType is VariableType.Endpoint.
- Throws:
CannotModifyPropertyException
setDynamicPolicyValues
void setDynamicPolicyValues(java.util.Collection<java.lang.String> values)
throws CannotModifyPropertyException
- Set the dynamic policy values
- Parameters:
values
- the new dynamic policy values. Note that this method only has any effect if
the VariableType is VariableType.Endpoint.
- Throws:
CannotModifyPropertyException