|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PortletWcmPageContextServiceProvider
Portlet service interface of the WcmPageContextService
. An instance can be obtained as follows:
PortletServiceHome psh; final javax.naming.Context ctx = new javax.naming.InitialContext(); try { psh = (PortletServiceHome) ctx.lookup(PortletWcmPageContextServiceProvider.JNDI_NAME); } catch(javax.naming.NameNotFoundException e) { ... error handling ... } ... // Get the provider final PortletWcmPageContextServiceProvider provider = (PortletWcmPageContextServiceProvider) psh.getPortletService(PortletWcmPageContextServiceProvider.class); // Get the WcmPageContextService final WcmPageContextService service = provider.getWcmPageContextService(request, response) ...
Field Summary | |
---|---|
static java.lang.String |
JNDI_NAME
The JNDI name used to bind the PortletWcmPageContextServiceProvider singleton. |
Method Summary | |
---|---|
WcmPageContextService |
getWcmPageContextService(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response)
Gets an instance of the WcmPageContextService . |
WcmPageContextService |
getWcmPageContextService(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response,
Workspace workspace)
Gets an instance of the WcmPageContextService . |
Field Detail |
---|
static final java.lang.String JNDI_NAME
PortletWcmPageContextServiceProvider
singleton.
Method Detail |
---|
WcmPageContextService getWcmPageContextService(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response) throws com.ibm.workplace.wcm.api.pagecontext.exception.PageContextServiceNotAvailableException
WcmPageContextService
. When calling this method a new WCM workspace is created.
The workspace is ended when calling WcmPageContextService.dispose()
.
request
- PortletRequestresponse
- PortletResponse
WcmPageContextService
com.ibm.workplace.wcm.api.pagecontext.exception.PageContextServiceNotAvailableException
WcmPageContextService getWcmPageContextService(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response, Workspace workspace) throws com.ibm.workplace.wcm.api.pagecontext.exception.PageContextServiceNotAvailableException
WcmPageContextService
.
request
- PortletRequestresponse
- PortletResponseworkspace
- WCM workspace to be used by the service.
WcmPageContextService
com.ibm.workplace.wcm.api.pagecontext.exception.PageContextServiceNotAvailableException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |