JCR Organization service
JCR Organization service
This is an implementation of the exo.core.component.organization.api API. The information will be stored in the root node /exo:organization of the workspace. The workspace name has to be configured in the configuration file (see below).- You need to comment out the previous initialization of the organization service, e.g. DummyOrganizationService
<!--component> <type>org.exoplatform.services.organization.impl.mock.DummyOrganizationService</type> </component-->
- Add jcr organization service
<component> <key>org.exoplatform.services.organization.OrganizationService</key> <type>org.exoplatform.services.jcr.ext.organization.JCROrganizationServiceImpl</type> <init-params> <value-param> <name>storage-workspace</name> <description>Workspace in default repository where organization storage will be created</description> <value>ws</value> </value-param> </init-params> </component>
<value-param> <name>repository</name> <description>The name of repository where organization storage will be created</description> <value>db1</value> </value-param> <value-param> <name>storage-path</name> <description>The relative path where organization storage will be created</description> <value>/exo:organization</value> </value-param>
storage-path - the relative path to the stored data
You should also read how to use the Organization Service Initializer.