com.ibm.portal.outbound.config
Interface ModifiablePolicyMapping
- All Superinterfaces:
- Administrable, Modifiable, ModifiableNode, PolicyMapping
-
public interface ModifiablePolicyMapping
- extends PolicyMapping, ModifiableNode
The interface is provided by ModelController#getModifiableNode().
It contains functions to modify outbound connection policy mappings. 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 PolicyMapping settings:
OutboundConnectionModelController ctrl;
OutboundConnectionModel model;
OutboundConnectionProfile profile;
˙˙˙
PolicyMapping mapping = model.getPolicyMappingLocator(profile).getDefaultMapping();
ModifiablePolicyMapping mmapping = ctrl.getModifiableNode(mapping);
mmapping.setUrl("http://the.new.url/");
mmapping.setContextPath("/new_context_path");
ctrl.commit();
- Since:
- 8.5.0
- See Also:
- OutboundConnectionModel,
OutboundConnectionModelController,
PolicyMapping
setContextPath
void setContextPath(java.lang.String contextPath)
throws CannotModifyPropertyException
- set a new context path
- Parameters:
- contextPath - the new context path. Never null
- Throws:
- CannotModifyPropertyException - Invalid context path specified.
setUrl
void setUrl(java.lang.String url)
throws CannotModifyPropertyException
- Set a new URL setting
- Parameters:
- url - The new URL setting
- Throws:
- CannotModifyPropertyException
setIPFilterSettings
void setIPFilterSettings(IterableListModel<IPFilterSetting> filters)
throws CannotModifyPropertyException
- Set a new list of IP filters
- Parameters:
- filters - the new IP filter list. Note that the presented list replaces the existing settings.
null or an empty list remives the IP filter list.
- Throws:
- CannotModifyPropertyException - Invalid parameters specified.
setMetaData
void setMetaData(java.util.Map<java.lang.String,java.lang.String> metaData)
throws CannotModifyPropertyException
- Replace the metadata settings with the given map.
- Parameters:
- metaData - The new metadata. null or an empty map deletes the existing metadata.
- Throws:
- CannotModifyPropertyException