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

Method Summary
 void setContextPath(java.lang.String contextPath)
          set a new context path
 void setIPFilterSettings(IterableListModel<IPFilterSetting> filters)
          Set a new list of IP filters
 void setMetaData(java.util.Map<java.lang.String,java.lang.String> metaData)
          Replace the metadata settings with the given map.
 void setUrl(java.lang.String url)
          Set a new URL setting
 
Methods inherited from interface com.ibm.portal.outbound.config.PolicyMapping
getContextPath, getIPFilterSettings, getMetaData, getUrl, isDefault
 
Methods inherited from interface com.ibm.portal.outbound.config.Administrable
getName, isReadOnly
 
Methods inherited from interface com.ibm.portal.outbound.config.ModifiableNode
setName
 

Method Detail

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