|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WcmContentService
WcmContentService enables access to the WCM API through Portal services. To ensure that the service is available at runtime, the below line must be added to the services.properties file (<wps>\shared\app\config\services.properties),
com.ibm.workplace.wcm.api.WcmContentService = com.ibm.workplace.wcm.api.WcmContentServiceImpl
Here is an example of how to retrieve the WcmContentService
:
try { // Construct an initial Context InitialContext ctx = new InitialContext(); // Retrieve WcmContentService using JNDI name WcmContentService webContentService = (WcmContentService) ctx.lookup("portal:service/wcm/WcmContentService"); } catch (NamingException ne) { System.out.print("Naming Exception: " + ne); }
Field Summary | |
---|---|
static java.lang.String |
JNDI_NAME
JNDI name of this service |
Method Summary | |
---|---|
Repository |
getRepository()
Retrieve the Repository used to access WCM. |
Field Detail |
---|
static final java.lang.String JNDI_NAME
Method Detail |
---|
Repository getRepository()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |