2.2.4.9. Link Deployment

Warning

You are looking at documentation for an older release. Not what you want? See the current release documentation.

This plugin is used to create predefined Symlinks into the system.

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


<target-component>org.exoplatform.services.deployment.WCMContentInitializerService</target-component>

The configuration is applied mainly in samples/acme-website/webapp/src/main/webapp/WEB-INF/conf/acme-portal/wcm/deployment/acme-deployment-configuration.xml.

Sample configuration:


<external-component-plugins>
    <target-component>org.exoplatform.services.deployment.WCMContentInitializerService</target-component>
    <component-plugin>
        <name>Content Initializer Service</name>
        <set-method>addPlugin</set-method>
        <type>org.exoplatform.services.deployment.plugins.LinkDeploymentPlugin</type>
        <description>Link Deployment Plugin</description>
        <init-params>
            <object-param>
                <name>link01</name>
                <description>Deployment Descriptor</description>
                <object type="org.exoplatform.services.deployment.plugins.LinkDeploymentDescriptor">
                    <field name="sourcePath">
                        <string>repository:collaboration:/sites/acme/web contents/News/News1</string>
                    </field>
                    <field name="targetPath">
                        <string>repository:collaboration:/sites/acme/categories/powers</string>
                    </field>
                </object>
            </object-param>
            <object-param>
                <name>link02</name>
                <description>Deployment Descriptor</description>
                <object type="org.exoplatform.services.deployment.plugins.LinkDeploymentDescriptor">
                    <field name="sourcePath">
                        <string>repository:collaboration:/sites/acme/web contents/News/News2</string>
                    </field>
                    <field name="targetPath">
                        <string>repository:collaboration:/sites/acme/categories/powers</string>
                    </field>
                </object>
            </object-param>
            <object-param>
                <name>link03</name>
                <description>Deployment Descriptor</description>
                <object type="org.exoplatform.services.deployment.plugins.LinkDeploymentDescriptor">
                    <field name="sourcePath">
                        <string>repository:collaboration:/sites/acme/web contents/News/News3</string>
                    </field>
                    <field name="targetPath">
                        <string>repository:collaboration:/sites/acme/categories/powers</string>
                    </field>
                </object>
            </object-param>
        </init-params>
    </component-plugin>
</external-component-plugins>

In which:

Field Type Value Description
sourcePath string repository:collaboration:/sites/acme/web contents/News/News1 The path to the source where this plugin will get data.
targetPath string repository:collaboration:/sites/acme/categories/powers The path to the target where this plugin will deploy.
Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus