|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ModifiablePolicyMapping
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();
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 |
---|
void setContextPath(java.lang.String contextPath) throws CannotModifyPropertyException
contextPath
- the new context path. Never null
CannotModifyPropertyException
- Invalid context path specified.void setUrl(java.lang.String url) throws CannotModifyPropertyException
url
- The new URL setting
CannotModifyPropertyException
void setIPFilterSettings(IterableListModel<IPFilterSetting> filters) throws CannotModifyPropertyException
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.
CannotModifyPropertyException
- Invalid parameters specified.void setMetaData(java.util.Map<java.lang.String,java.lang.String> metaData) throws CannotModifyPropertyException
metaData
- The new metadata. null or an empty map deletes the existing metadata.
CannotModifyPropertyException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |