Data Injector Configuration

Data Injector Configuration

1 Data Injector

Data-injector is an utility to initialize enterprise data for Portal. It is packed in a .jar and deployed under $TOMCAT_HOME/lib. It is started automatically when Tomcat starts.

2 OrganizationInitializer

OrganizationInitializer is the service that allows creating a large organization with many groups and users. It also creates portal navigation and page(s) for each group, each user.

3 Service configuration file

<configuration>

  <component>
	<key>org.exoplatform.portal.initializer.organization.OrganizationInitializer</key>

	<type>org.exoplatform.portal.initializer.organization.OrganizationInitializer</type>

     <init-params>
      	<value-param>
      		<name>auto.create.group.page.navigation</name>

      		<description>true or false</description>

      		<value>true</value>
      	</value-param>
      	
      	<value-param>
      		<name>auto.create.user.page.navigation</name>

      		<description>number of pages per user</description>

      		<value>10</value>
      	</value-param>

      	<object-param>
      		<name>organization</name>

      		<description>description</description>

      		<object type="org.exoplatform.portal.initializer.organization.OrganizationConfig"> <field name="groups">

	      	<collection type="java.util.ArrayList">
              	 <value>
		  <object type="org.exoplatform.portal.initializer.organization.OrganizationConfig$GroupsConfig"> <field name="group">

		   <object type="org.exoplatform.services.organization.OrganizationConfig$Group">

			 <field  name="name"><string>province</string></field>

			 <field  name="parentId"><string>/africa/tanzania</string></field>

			 <field  name="description"><string>Tanzania's province</string></field>

			 <field  name="label"><string>Province</string></field>
		    </object>				          		
			 </field>	
		    	<field name="from"><string>1</string></field>
		       	<field name="to"><string>10</string></field>
	           </object>
              	  </value>
                </collection>
	      		</field>
      			<field name="users">
      			       <collection type="java.util.ArrayList"> 
 
      				<value>

      		                 <object type="org.exoplatform.portal.initializer.organization.OrganizationConfig$UsersConfig">
      				    <field name="user">

		                  <object type="org.exoplatform.services.organization.OrganizationConfig$User">

		                      <field  name="userName"><string>user</string></field>

		                      <field  name="password"><string>eXoPlatform</string></field>

		                      <field  name="firstName"><string>First-Name</string></field>

		                      <field  name="lastName"><string>Last-Name</string></field>

		                      <field  name="email"><string>exo@localhost</string></field>

		                      <field  name="groups"><string>member:/africa</string></field>
		                  </object>
      				    </field>
      				      <field name="from"><string>0</string></field>

      				      <field name="to"><string>9</string></field>
      				 </object>

      				 </value>

      				</collection>

      			 </field>

      		</object>

      	    </object-param>

          </init-params>

	</component>  
   
</configuration>

4 Parameters for Group

  • name: The name of group.
  • parentId: The id of parent group. If the parent id is null, it means that the group is at the first level. If parent groups do not exist, it will be created automatically.
  • description: The description of group.
  • label: The label of group.
  • from and to: This group can be cloned to may copies and each copy is marked a number from number.png to number.png.

5 Parameters for User

  • userName: The ID of user.
  • password: The password of user.
  • firstName: The first name of user.
  • lastName: The last name of user.
  • email: The email of user.
  • groups: The list of groups that user join with membership type
  • from and to: This user can be cloned to may copies and each copy is marked a number from number.png to number.png.
With this configuration we can create a range of users and put them to various groups and other range to other groups.

The "auto.create.group.page.navigation" Parameter Value is true or false. If TRUE it automatically create portal navigation and page for each group. If FALSE it does not create portal navigation and page for each group.

The "auto.create.user.page.navigation" Parameter Value is number of pages that automatically created for each user.

Tags:
Created by QuynhLien on 03/16/2009
Last modified by Sören Schmidt on 04/07/2009

Products

generated on Fri Jul 30 19:07:57 UTC 2010

eXo Optional Modules

eXo Core Foundations


Copyright (c) 2000-2010. All Rights Reserved - eXo platform SAS
2.4.30451