2.2.1.10. Space Application Config

This plugin is used to configure the default applications when creating a new space.

Sample configuration:


<external-component-plugins>
  <target-component>org.exoplatform.social.core.space.spi.SpaceService</target-component>
  <component-plugin>
    <name>Space Application Configuration</name>
    <set-method>setSpaceApplicationConfigPlugin</set-method>
    <type>org.exoplatform.social.core.space.SpaceApplicationConfigPlugin</type>
    <init-params>
      <object-param>
        <name>spaceHomeApplication</name>
        <description>Space Home Application</description>
        <object type="org.exoplatform.social.core.space.SpaceApplicationConfigPlugin$SpaceApplication">
          <field name="portletApp">
            <string>social-portlet</string>
          </field>
          <field name="portletName">
            <string>SpaceActivityStreamPortlet</string>
          </field>
          <field name="appTitle">
            <string>Home</string>
          </field>
        </object>
      </object-param>
      <object-param>
        <name>spaceApplicationListConfig</name>
        <description>space application list configuration</description>
        <object type="org.exoplatform.social.core.space.SpaceApplicationConfigPlugin">
          <field name="spaceApplicationList">
            <collection type="java.util.ArrayList">
              <value>
                <object type="org.exoplatform.social.core.space.SpaceApplicationConfigPlugin$SpaceApplication">
                  <field name="portletApp">
                    <string/>
                  </field>
                  <field name="portletName">
                    <string>ForumPortlet</string>
                  </field>
                  <field name="appTitle">
                    <string>Forums</string>
                  </field>
                  <field name="removable">
                    <boolean>true</boolean>
                  </field>
                  <field name="order">
                    <int>2</int>
                  </field>
                  <field name="uri">
                    <string>forum</string>
                  </field>
                  <field name="preferences">
                    <map type="java.util.HashMap">
                      <entry>
                        <key>
                          <string>useAjax</string>
                        </key>
                        <value>
                          <string>false</string>
                        </value>
                      </entry>
                    </map>
                  </field>
                </object>
              </value>
              <!-- // Maybe put more the same configuration for your customization apps.
              value>
                ...
              </value
              -->
            </collection>
          </field>
        </object>
      </object-param>
    </init-params>
  </component-plugin>
</external-component-plugins>

In which:

Object-paramDescription
spaceHomeApplication Sets the Application portlet to be the home page of a space.
spaceApplicationListConfig The list of the applications that are installed by default to a new space.
Field namePossible valueDescription
portletAp string The .war name file which has the portlet.
portletName string The name of portlet which is registered in the system.
appTitle string The display name of the application.
removable boolean Specifies if the application is removed from the space or not.
order integer The order of the application in the space navigation.
uri string The URI of the application in the page node.
preferences Configures the default values or the init-parameters for the portlet.
Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus