2.2.4.2. New Group Listener

To use the plugin in the component configuration, you must use the target-component:


<target-component>org.exoplatform.services.organization.OrganizationService</target-component>

The configuration can be found here.


<component-plugin>
      <name>calendar.new.group.event.listener</name>
      <set-method>addListenerPlugin</set-method>
      <type>org.exoplatform.calendar.service.impl.NewGroupListener</type>
      <description>description</description>
      <init-params>
        <value-param>
          <name>defaultEditPermission</name>
          <value>*.*</value><!-- Multi value membership, use coma (,) to split values-->
        </value-param>
        <value-param>
          <name>defaultViewPermission</name>
          <value>*.*</value><!-- Multi value membership, use coma (,) to split values-->
        </value-param>

        <value-param>
          <name>defaultLocale</name>
          <value>BEL</value><!-- see more locale ids http://userpage.chemie.fu-berlin.de/diverse/doc/ISO_3166.html -->
        </value-param>

        <value-param>
          <name>defaultTimeZone</name>
          <value>Europe/Brussels</value><!-- see more for timeZone ids http://www.unicode.org/cldr/data/docs/design/formatting/zone_log.html#windows_ids -->
        </value-param>

        <values-param>
          <name>ignoredGroups</name>
          <description>Definition group to ignore create default calendar</description>
          <!--
          <value>/platform/guests</value>
           -->
          <value>/spaces/*</value> <!-- single value, use more <value> tags to add more group -->
        </values-param>

      </init-params>
    </component-plugin>

Details:

See the details about the init-params of the component in the following table:

Value-paramsPossible valuesDefault valueDescription
defaultEditPermission User id (Multi value membership, use coma (,) to split values) *.* means that all members in that group can modify and add, remove a calendar, events/tasks of the calendar The default permission assigned to membership in a specific group to edit calendars and events/tasks of the calendar.
defaultViewPermission User Id (Multi value membership, use coma (,) to split values) *.* means that all members in that group can view this calendar and all the events/tasks of this calendar. The default permission assigned to membership in a specific group to view a calendar and events /tasks of the calendar.
defaultLocale Valid locale Id BEL (see more locale ids http://userpage.chemie.fu-berlin.de/diverse/doc/ISO_3166.html ) The default locale of the calendar.
defaultTimeZone Valid timezone Id Europe/Brussels (see more for timeZone Ids http://www.unicode.org/cldr/data/docs/design/formatting/zone_log.html#windows_ids) The default time zone of the calendar.
ignoredGroups Group Id (use line to define multiple value) /spaces/* Definition group to ignore create the default calendar.
Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus