com.ibm.portal.outbound.config
Interface PolicyMappingLocator

All Superinterfaces:
AdministrableLocator<PolicyMapping>

public interface PolicyMappingLocator
extends AdministrableLocator<PolicyMapping>

A locator to access PolicyMapping items.
The locator provides methods to get to the PolicyMapping objects that are owned by a given Outbound Connection profile.
Example:

OutboundConnectionModel model;
OutboundConnectionProfile profile;
˙˙˙
PolicyMapppingLocator locator = model.getPolicyMappingLocator(profile);
System.out.println ("Always returns the default mapping: "+locator.getDefaultMapping());
System.out.println ("Returns the mapping for the Ajax Proxy access via "/myproxy" : "+
locator.findByContextPath("/myproxy"));

Since:
8.5.0
See Also:
OutboundConnectionModel, OutboundConnectionProfile, PolicyMapping, AdministrableLocator

Method Summary
 PolicyMapping findByContextPath(java.lang.String mappingPath)
          locates and returns an outbound mapping item via its mapping path.
 PolicyMapping getDefaultMapping()
          Return the default Policy mapping
 
Methods inherited from interface com.ibm.portal.outbound.config.AdministrableLocator
collectAllMatching, findByName, listAll
 

Method Detail

findByContextPath

PolicyMapping findByContextPath(java.lang.String mappingPath)
locates and returns an outbound mapping item via its mapping path.

Parameters:
mappingPath - the mapping path.
Returns:
The context mapping with the given context path. The method returns null if there is no PolicyMapping object with the specified context path.

getDefaultMapping

PolicyMapping getDefaultMapping()
Return the default Policy mapping

Returns:
The default policy mapping. Never null.