Overview | Package | Class | Tree | Serialized | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
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()

  Retrieve the Repository used to access WCM.

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

Overview | Package | Class | Tree | Serialized | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD