PREV CLASS NEXT CLASS
Tree SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD com.ibm.workplace.wcm.api
Interface WcmContentService
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); }
- Since:
- 8.5
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 JNDI_NAME
static final java.lang.String JNDI_NAME
- JNDI name of this service
- See Also:
- Constant Field Values
Method Detail getRepository
Repository getRepository()PREV CLASS NEXT CLASS
- Retrieve the Repository used to access WCM.
- Returns:
- com.ibm.workplace.wcm.api.Repository
Tree SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD