com.ibm.workplace.wcm.api
Class WebContentService

java.lang.Object
  |
  +--com.ibm.wps.services.Service
        |
        +--com.ibm.workplace.wcm.api.WebContentService

public abstract class WebContentService
extends com.ibm.wps.services.Service

WebContentService 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.WebContentService = com.ibm.workplace.wcm.api.WebContentServiceImpl

Here is an example of how to retrieve the WebContentService:

 try
 {
    // Construct and inital Context
    InitialContext ctx = new InitialContext();
    
    // Retrieve WebContentService using JNDI name
    WebContentService webContentService = (WebContentService) ctx.lookup("portal:service/wcm/WebContentService");
 }
 catch (NamingException ne)
 {
    System.out.print("Naming Exception: " + ne);
 }
 


Constructor Summary
WebContentService()
           
 
Method Summary
abstract  com.ibm.workplace.wcm.api.Repository getRepository()
          Retrieve the Repository used to access WCM.
 
Methods inherited from class com.ibm.wps.services.Service
inspect
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebContentService

public WebContentService()
Method Detail

getRepository

public abstract com.ibm.workplace.wcm.api.Repository getRepository()
Retrieve the Repository used to access WCM.

Returns:
com.ibm.workplace.wcm.api.Repository