JBoss.orgCommunity Documentation

ActivityResourceBundlePlugin

This plugin is used to register the external resource bundle for the internationalized activity type.

Sample configuration:



      <component-plugin>
        <name>exosocial:spaces</name> <!-- activity type -->
        <set-method>addActivityResourceBundlePlugin</set-method>
        <type>org.exoplatform.social.core.processor.ActivityResourceBundlePlugin</type>
        <init-params>
          <object-param>
            <name>locale.social.Core</name> <!-- resource bundle key file -->
            <description>activity key type resource bundle mapping for exosocial:spaces</description>
            <object type="org.exoplatform.social.core.processor.ActivityResourceBundlePlugin">
              <field name="activityKeyTypeMapping">
                <map type="java.util.HashMap">
                  <entry>
                    <key><string>space_created</string></key>
                    <value><string>SpaceActivityPublisher.space_created</string></value>
                  </entry>
                  <entry>
                    <key><string>manager_role_granted</string></key>
                    <value><string>SpaceActivityPublisher.manager_role_granted</string></value>
                  </entry>
                  <entry>
                    <key><string>user_joined</string></key>
                    <value><string>SpaceActivityPublisher.user_joined</string></value>
                  </entry>
                  <entry>
                    <key><string>member_left</string></key>
                    <value><string>SpaceActivityPublisher.member_left</string></value>
                  </entry>
                </map>
              </field>
            </object>
          </object-param>
        </init-params>
      </component-plugin>

In which:

Object-param Description
locale.social.Core The resource bundle key file.