|
||||||||||
| 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(PortletRequest request,
PortletResponse response)
Gets an instance of the WcmPageContextService. |
WcmPageContextService |
getWcmPageContextService(PortletRequest request,
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(PortletRequest request,
PortletResponse response)
throws PageContextServiceNotAvailableException
WcmPageContextService. When calling this method a new WCM workspace is created.
The workspace is ended when calling WcmPageContextService.dispose().
request - PortletRequestresponse - PortletResponse
WcmPageContextService
PageContextServiceNotAvailableException
WcmPageContextService getWcmPageContextService(PortletRequest request,
PortletResponse response,
Workspace workspace)
throws PageContextServiceNotAvailableException
WcmPageContextService.
request - PortletRequestresponse - PortletResponseworkspace - WCM workspace to be used by the service.
WcmPageContextService
PageContextServiceNotAvailableException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||