JBoss.orgCommunity Documentation
The CalendarDataInjector plug-in is used to manage data injection in the Calendar 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>CalendarDataInjector</name>
<set-method>addInjector</set-method>
<type>org.exoplatform.calendar.bench.CalendarDataInjector</type>
<description>inject data for Calendar</description>
<init-params>
<value-param>
<name>mCt</name> <!-- maximum number of categories -->
<value>5</value>
</value-param>
<value-param>
<name>mEcat</name> <!-- maximum number of event categories -->
<value>10</value>
</value-param>
<value-param>
<name>mCal</name> <!-- maximum number of calendars -->
<value>10</value>
</value-param>
<value-param>
<name>mEv</name> <!-- maximum number of events -->
<value>5</value>
</value-param>
<value-param>
<name>mTa</name> <!-- maximum number of tasks -->
<value>5</value>
</value-param>
<value-param>
<name>typeOfInject</name> <!-- type of inject -->
<value>all</value> <!-- string all/public/private -->
</value-param>
</init-params>
</component-plugin>
</external-component-plugins>
In which:
Name: CalendarDataInjector
Set-method: addInjector
Type: org.exoplatform.calendar.bench.CalendarDataInjector
Parameters | Possible Values | Default Values | Description |
---|---|---|---|
mCt | number | 5 | The maximum number of categories in each injection. |
mEcat | number | 10 | The maximum number of event categories in each injection. |
mCal | number | 10 | The maximum number of calendars in each injection. |
mEv | number | 5 | The maximum number of events in one calendar in each injection. |
mTa | number | 5 | The maximum number of tasks in one calendar in each injection. |
typeOfInject | String | all | The type of injection, including "public", "private" and "all". If the type is set as "public", only public calendars are created. If the type is set as "private", only personal calendars are create. If the type is set as "all", both the public and private ones are created. |
2. Execute the injector by the RESTful request as follows.
http://{domain}/{rest}/bench/inject/CalendarDataInjector?mCt=5&mEcat=10&mCal=10&mEv=20&mTa=20&typeOfInject=private