com.ibm.portal.portlet.service.model
Interface ContentMetaDataModelProvider

All Superinterfaces:
PortletService

public interface ContentMetaDataModelProvider
extends PortletService

An interface for a provider of the content node meta data model.

PortletServiceHome psh;
javax.naming.Context ctx = new javax.naming.InitialContext();
boolean serviceAvailable = false;

try {
psh = (PortletServiceHome) ctx.lookup("portletservice/com.ibm.portal.portlet.service.model.ContentMetaDataModelProvider");
serviceAvailable = true;
} catch(javax.naming.NameNotFoundException ex) {
... error handling ...
}
...
if (serviceAvailable) {
ContentMetaDataModelProvider provider = (ContentMetaDataModelProvider) psh.getPortletService(ContentMetaDataModelProvider.class);
ContentMetaDataModel model = provider.getContentMetaDataModel(aRequest, aResponse);
...
}

Since:
6.0

Field Summary
static java.lang.String JNDI_NAME
          The JNDI name of this provider
 
Method Summary
 ContentMetaDataModel getContentMetaDataModel(javax.portlet.PortletRequest aRequest, javax.portlet.PortletResponse aResponse)
          Returns the content node meta data model applicable in the current request.
 

Field Detail

JNDI_NAME

static final java.lang.String JNDI_NAME
The JNDI name of this provider

Since:
6.1.0.1
See Also:
Constant Field Values
Method Detail

getContentMetaDataModel

ContentMetaDataModel getContentMetaDataModel(javax.portlet.PortletRequest aRequest,
                                             javax.portlet.PortletResponse aResponse)
                                             throws ModelException
Returns the content node meta data model applicable in the current request.

Parameters:
aRequest - the current request
aResponse - the current response
Returns:
the model valid in the current request
Throws:
ModelException - in case the model cannot be obtained