JBoss.orgCommunity Documentation
The ContactDataInjector plug-in is used to manage data injection of the Address Book application.
To use this plug-in, do as follows:
1. Add the following configuration to the configuration.xml file to register the plug-in to the DataInjectorService component:
<external-component-plugins>
<target-component>org.exoplatform.services.bench.DataInjectorService</target-component>
<component-plugin>
<name>ContactDataInjector</name>
<set-method>addInjector</set-method>
<type>org.exoplatform.contact.service.bench.ContactDataInjector</type>
<description>inject data for Contact</description>
<init-params>
<value-param>
<name>mA</name> <!-- maximum number of address books -->
<value>5</value>
</value-param>
<value-param>
<name>mC</name> <!-- maximum number of contacts per a address books -->
<value>10</value>
</value-param>
</init-params>
</component-plugin>
</external-component-plugins>
In which:
Name: ContactDataInjector
Set-method: addInjector
Type: org.exoplatform.contact.service.bench.ContactDataInjector
Parameters | Possible Values | Default Values | Description |
---|---|---|---|
mA | number | 5 | The maximum number of address books of the Address Book application in each injection. |
mC | number | 5 | The maximum number of contacts of an address book in each injection. |
2. Execute the injector by the RESTful request as follows:
http://{domain}/{rest}/bench/inject/ContactDataInjector?mA=5&mC=10
In which:
{domain}: The domain name of the server.
{rest}: The name of eXo REST service.