2.2.3.4. New User Listener

This plugin is used to listen to events when new users are added to the system. As each user can have a default personal Wiki space created. The configuration can be found in wiki-webapp/src/main/webapp/WEB-INF/conf/configuration.xml.

Sample configuration:


<external-component-plugins>
  <target-component>org.exoplatform.services.organization.OrganizationService</target-component>
  <component-plugin>
      <name>ecm.new.user.event.listener</name>
      <set-method>addListenerPlugin</set-method>
      <type>org.exoplatform.services.jcr.ext.hierarchy.impl.NewUserListener</type>
      <description>description</description>
      <init-params>
        <object-param>
          <name>configuration</name>
          <description>description</description>
          <object type="org.exoplatform.services.jcr.ext.hierarchy.impl.HierarchyConfig">
            <field  name="jcrPaths">
              <collection type="java.util.ArrayList">
                <value>
                  <object type="org.exoplatform.services.jcr.ext.hierarchy.impl.HierarchyConfig$JcrPath">
                    <field name="alias"><string>userApplicationData</string></field>
                    <field name="path"><string>ApplicationData</string></field>
                    <field name="nodeType"><string>nt:unstructured</string></field>
                    <field name="permissions">
                      <collection type="java.util.ArrayList">
                        <value>
                          <object type="org.exoplatform.services.jcr.ext.hierarchy.impl.HierarchyConfig$Permission">
                            <field name="identity"><string>*:/platform/administrators</string></field>
                            <field name="read"><string>true</string></field>
                            <field name="addNode"><string>true</string></field>
                            <field name="setProperty"><string>true</string></field>
                            <field name="remove"><string>true</string></field>
                          </object>
                        </value>
                      </collection>
                    </field>
                  </object>
                </value>
              </collection>
            </field>
          </object>
        </object-param>
      </init-params>
    </component-plugin>
</external-component-plugins>

In which:

Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus