com.ibm.portal.cor.service
Interface PortletModelProvider


public interface PortletModelProvider

An interface for a provider of portlet models. Context ctx = new InitialContext();
PortletModelHome home = (PortletModelHome) ctx.lookup(PortletModelHome.JNDI_HOME);
if (home != null) {
PortletModel model = home.getPortletModelProvider().getPortletModel(ctx);
...
}

Since:
6.1.0.1

Method Summary
 AdminPortletModel getAdminPortletModel(Context aCtx)
          Returns the administraive portlet model applicable to the current COR context.
 PortletModel getPortletModel(ContentPage page, Context aCtx)
          Returns the portlet model applicable to the given page in the current COR context.
 PortletModel getPortletModel(Context aCtx)
          Returns the portlet model for the request
 

Method Detail

getAdminPortletModel

AdminPortletModel getAdminPortletModel(Context aCtx)
                                       throws ModelException
Returns the administraive portlet model applicable to the current COR context.

Parameters:
aCtx - the COR context
Returns:
the adminstrative portlet model valid in the current COR context
Throws:
ModelException - in case the model cannot be obtained

getPortletModel

PortletModel getPortletModel(ContentPage page,
                             Context aCtx)
                             throws ModelException
Returns the portlet model applicable to the given page in the current COR context.

Parameters:
The - content page
aCtx - the COR context
Returns:
the portlet model valid in the current COR context
Throws:
ModelException - in case the model cannot be obtained

getPortletModel

PortletModel getPortletModel(Context aCtx)
                             throws ModelException
Returns the portlet model for the request

Parameters:
aCtx - the COR context
Returns:
the model
Throws:
ModelException