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:
Name:
Content Initializer Service
Set-method:
addPlugin
Type:
org.exoplatform.services.wcm.webcontent.InitialWebContentPlugin
Object type:
org.exoplatform.services.deployment.plugins.LinkDeploymentDescriptor
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. |