GateIn WCM offers a simplified API as an alternative to templates mechanism.
WCM API allows to access posts, categories, comments and uploads from third party applications deployed on GateIn / JBoss Portal.
WCM API is composed by the following packages:
|org.gatein.wcm.api.domain||It contains WCM classes representing Category, Comment, Post and Upload|
|org.gatein.wcm.api.services||It contains main interface API for WCM query operations|
|org.gatein.wcm.api.util||It contains helper classes for html manipulation|
|org.gatein.wcm.api||It contains WcmApi used to get an instance of WCM API|
We can see in the example that main entry point of API is
WcmApi is just a helper class to give access to the EJB in a simplistic way.
This package represents main elements of WCM domain:
There are some examples available under the examples/api-example folder