|
||||||||||
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(javax.servlet.ServletRequest aRequest,
javax.servlet.ServletResponse aResponse)
Returns the administraive portlet model applicable to the current request. |
PortletModel |
getPortletModel(ContentPage page,
javax.servlet.ServletRequest aRequest,
javax.servlet.ServletResponse aResponse)
Returns the portlet model applicable to the given page in the current request. |
Method Detail |
---|
PortletModel getPortletModel(ContentPage page, javax.servlet.ServletRequest aRequest, javax.servlet.ServletResponse aResponse) throws ModelException
aRequest
- the current requestaResponse
- the current response
ModelException
- in case the model cannot be obtainedAdminPortletModel getAdminPortletModel(javax.servlet.ServletRequest aRequest, javax.servlet.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 |