com.ibm.workplace.wcm.api.pagecontext
Interface CorWcmPageContextServiceHome
-
public interface CorWcmPageContextServiceHome
Home interface of the WcmPageContextService. An instance can be obtained as follows:
Context ctx = new InitialContext();
CorWcmPageContextServiceHome myHome = (CorWcmPageContextServiceHome) ctx.lookup(CorWcmPageContextServiceHome.JNDI_NAME);
Field Summary
|
static java.lang.String |
JNDI_NAME
The JNDI name used to bind the CorWcmPageContextServiceHome singleton. |
JNDI_NAME
static final java.lang.String JNDI_NAME
- The JNDI name used to bind the CorWcmPageContextServiceHome singleton.
- See Also:
- Constant Field Values
getWcmPageContextService
WcmPageContextService getWcmPageContextService(Context context)
throws com.ibm.workplace.wcm.api.pagecontext.exception.PageContextServiceNotAvailableException
- Gets an instance of the WcmPageContextService. When calling this method a new WCM workspace is created.
The workspace is ended when calling WcmPageContextService.dispose().
- Parameters:
- context - cor context
- Returns:
- WcmPageContextService
- Throws:
- com.ibm.workplace.wcm.api.pagecontext.exception.PageContextServiceNotAvailableException
getWcmPageContextService
WcmPageContextService getWcmPageContextService(Context context,
Workspace workspace)
throws com.ibm.workplace.wcm.api.pagecontext.exception.PageContextServiceNotAvailableException
- Gets an instance of the WcmPageContextService.
- Parameters:
- context - cor context
- workspace - WCM workspace to be used by the service.
- Returns:
- WcmPageContextService
- Throws:
- com.ibm.workplace.wcm.api.pagecontext.exception.PageContextServiceNotAvailableException