JBoss.orgCommunity Documentation
The Init data plug-in is used to define the default data in the .xml file. It includes nodes (node of jcr). When the org.exoplatform.services.jcr.config.RepositoryServiceConfiguration component is initialized, the org.exoplatform.services.jcr.impl.config.RepositoryServiceConfigurationPlugin component will be get and the function addConfig is called. Then, the /ks-extension/jcr/repository-configuration.xml file is loaded and the component org.exoplatform.ks.common.jcr.KSDataLocation will be initialized. Next, the setLocation function is called, setting up the workspace and repository for KS. After that, the addPlugin function will be run, generating the DataLocation (some parent nodes) for eXo Knowledge.
The following is the list of applications in eXo Knowledge and the corresponding components used to initialize the default data.
Application | Component | Description |
---|---|---|
Forum | KSDataLocation, ForumServiceImpl | Initialize default data of the Forum portlet. |
Answers | KSDataLocation, AnswerServiceImpl | Initialize default data of the Answers portlet. |
Polls | KSDataLocation, PollServiceImpl | Initialize default data of the Polls portlet. |
In this section, you will understand how to initialize data via the sample configurations below.