|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PortletModelProvider
An interface for a provider of portlet models.
Context ctx = new InitialContext();
PortletModelHome home = (PortletModelHome) ctx.lookup(PortletModelHome.JNDI_NAME);
if (home != null) {
PortletModel model = home.getPortletModelProvider().getPortletModel(aPage, aRequest, aResponse);
...
}
Method Summary | |
---|---|
AdminPortletModel |
getAdminPortletModel(ServletRequest aRequest,
ServletResponse aResponse)
Returns the administraive portlet model applicable to the current request. |
PortletModel |
getPortletModel(ContentPage page,
ServletRequest aRequest,
ServletResponse aResponse)
Returns the portlet model applicable to the given page in the current request. |
Method Detail |
---|
PortletModel getPortletModel(ContentPage page, ServletRequest aRequest, ServletResponse aResponse) throws ModelException
aRequest
- the current requestaResponse
- the current response
ModelException
- in case the model cannot be obtainedAdminPortletModel getAdminPortletModel(ServletRequest aRequest, ServletResponse aResponse) throws ModelException
aRequest
- the current request - can be nullaResponse
- the current response - can be null
ModelException
- in case the model cannot be obtained
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |