com.ibm.portal.portlet.service.model
Interface MappingURLTreeModelProvider
- All Superinterfaces: 
 - PortletService
 
Deprecated. Use com.ibm.portal.portlet.service.model.VanityURLModelProvider
- 
public interface MappingURLTreeModelProvider
- extends PortletService
  
PortletService provider interface to retrieve MappingURLTreeModels
 
 
 PortletServiceHome psh;
 javax.naming.Context ctx = new javax.naming.InitialContext();
 boolean serviceAvailable = false;
 
 try {
     psh = (PortletServiceHome) ctx.lookup(MappingURLTreeModelProvider.JNDI_NAME);
     serviceAvailable = true;
 } catch(javax.naming.NameNotFoundException ex) {
     ... error handling ...
 }
 ...
 if (serviceAvailable) {
    MappingURLTreeModelProvider provider = (MappingURLTreeModelProvider) psh.getPortletService(MappingURLTreeModelProvider.class);
    MappingURLTreeModel model = provider.getMappingURLTreeModel(aRequest, aResponse);
     ...
 }
 
- Since:
 
  - 8.0
 
| 
Field Summary
 | 
| 
static java.lang.String | 
JNDI_NAME
 
          Deprecated. JNDI name under which the provider instance is bound | 
 
 
JNDI_NAME
static final java.lang.String JNDI_NAME
- Deprecated. 
- JNDI name under which the provider instance is bound
- See Also:
 - Constant Field Values
 
  
getMappingURLTreeModel
MappingURLTreeModel getMappingURLTreeModel(javax.portlet.PortletRequest aRequest,
                                           javax.portlet.PortletResponse aResponse)
                                           throws ModelException
- Deprecated. 
- Returns the MappingURLTreeModel applicable in the context of the
 current request and response
 
- Parameters:
 - aRequest - the current request
- aResponse - the current response
  - Returns:
 - the MappingURLTreeModel valid in the current context
 - Throws:
 - ModelException - in case the model cannot be obtained