<?xml version="1.0" encoding="ISO-8859-1"?>
<!--

    Copyright (C) 2009 eXo Platform SAS.
    
    This is free software; you can redistribute it and/or modify it
    under the terms of the GNU Lesser General Public License as
    published by the Free Software Foundation; either version 2.1 of
    the License, or (at your option) any later version.
    
    This software is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.
    
    You should have received a copy of the GNU Lesser General Public
    License along with this software; if not, write to the Free
    Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
    02110-1301 USA, or see the FSF site: http://www.fsf.org.

-->
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.exoplatform.org/xml/ns/kernel_1_2.xsd" xsi:schemaLocation="http://www.exoplatform.org/xml/ns/kernel_1_2.xsd http://www.exoplatform.org/xml/ns/kernel_1_2.xsd">
  <component>
    <type>org.exoplatform.services.deployment.WCMContentInitializerService</type>
  </component>
  <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.XMLDeploymentPlugin</type>
      <description>XML Deployment Plugin</description>
      <init-params>
        <value-param>
          <name>siteName</name>
          <description>name of site in which artifact is deployed</description>
          <value>WAIPortal</value>
        </value-param>      
        <value-param>
          <name>override</name>
          <description>indicates if this plugin will override data over legacy data, default value:false</description>
          <value>false</value>
        </value-param>      
        <object-param>
          <name>WAIPortal Stylesheet Blue data</name>
          <description>Deployment Descriptor</description>
          <object type="org.exoplatform.services.deployment.DeploymentDescriptor">
            <field name="target">
              <object type="org.exoplatform.services.deployment.DeploymentDescriptor$Target">
                <field name="workspace">
                  <string>collaboration</string>
                </field>
                <field name="nodePath">
                  <string>/sites content/live/WAIPortal/css</string>
                </field>
              </object>
            </field>
            <field name="sourcePath">
              <string>war:/conf/sample-portal/wcm/artifacts/site-resources/WAIPortal/StylesheetGreen.xml</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>Home content</name>
          <description>Deployment Descriptor</description>
          <object type="org.exoplatform.services.deployment.DeploymentDescriptor">
            <field name="target">
              <object type="org.exoplatform.services.deployment.DeploymentDescriptor$Target">
                <field name="workspace">
                  <string>collaboration</string>
                </field>
                <field name="nodePath">
                  <string>/sites content/live/WAIPortal/web contents</string>
                </field>
              </object>
            </field>
            <field name="sourcePath">
              <string>war:/conf/sample-portal/wcm/artifacts/site-resources/WAIPortal/home.xml</string>
            </field>
          </object>
        </object-param>
<!--
  Deployment of Folder Content
-->        
        <object-param>
          <name>Features Folder</name>
          <description>Deployment Descriptor</description>
          <object type="org.exoplatform.services.deployment.DeploymentDescriptor">
            <field name="target">
              <object type="org.exoplatform.services.deployment.DeploymentDescriptor$Target">
                <field name="workspace">
                  <string>collaboration</string>
                </field>
                <field name="nodePath">
                  <string>/sites content/live/WAIPortal/web contents</string>
                </field>
              </object>
            </field>
            <field name="sourcePath">
              <string>war:/conf/sample-portal/wcm/artifacts/site-resources/WAIPortal/Features.xml</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>Technology Folder</name>
          <description>Deployment Descriptor</description>
          <object type="org.exoplatform.services.deployment.DeploymentDescriptor">
            <field name="target">
              <object type="org.exoplatform.services.deployment.DeploymentDescriptor$Target">
                <field name="workspace">
                  <string>collaboration</string>
                </field>
                <field name="nodePath">
                  <string>/sites content/live/WAIPortal/web contents</string>
                </field>
              </object>
            </field>
            <field name="sourcePath">
              <string>war:/conf/sample-portal/wcm/artifacts/site-resources/WAIPortal/Technology.xml</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>Competence Folder</name>
          <description>Deployment Descriptor</description>
          <object type="org.exoplatform.services.deployment.DeploymentDescriptor">
            <field name="target">
              <object type="org.exoplatform.services.deployment.DeploymentDescriptor$Target">
                <field name="workspace">
                  <string>collaboration</string>
                </field>
                <field name="nodePath">
                  <string>/sites content/live/WAIPortal/web contents</string>
                </field>
              </object>
            </field>
            <field name="sourcePath">
              <string>war:/conf/sample-portal/wcm/artifacts/site-resources/WAIPortal/Competence.xml</string>
            </field>
          </object>
        </object-param>        
        <object-param>
          <name>Customers Folder</name>
          <description>Deployment Descriptor</description>
          <object type="org.exoplatform.services.deployment.DeploymentDescriptor">
            <field name="target">
              <object type="org.exoplatform.services.deployment.DeploymentDescriptor$Target">
                <field name="workspace">
                  <string>collaboration</string>
                </field>
                <field name="nodePath">
                  <string>/sites content/live/WAIPortal/web contents</string>
                </field>
              </object>
            </field>
            <field name="sourcePath">
              <string>war:/conf/sample-portal/wcm/artifacts/site-resources/WAIPortal/Customers.xml</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>French Folder</name>
          <description>Deployment Descriptor</description>
          <object type="org.exoplatform.services.deployment.DeploymentDescriptor">
            <field name="target">
              <object type="org.exoplatform.services.deployment.DeploymentDescriptor$Target">
                <field name="workspace">
                  <string>collaboration</string>
                </field>
                <field name="nodePath">
                  <string>/sites content/live/WAIPortal/web contents</string>
                </field>
              </object>
            </field>
            <field name="sourcePath">
              <string>war:/conf/sample-portal/wcm/artifacts/site-resources/WAIPortal/FR.xml</string>
            </field>
          </object>
        </object-param>
        
<!--
  Deployment of Site Artifacts
-->
        <object-param>
          <name>Portal Footer</name>
          <description>Deployment Descriptor</description>
          <object type="org.exoplatform.services.deployment.DeploymentDescriptor">
            <field name="target">
              <object type="org.exoplatform.services.deployment.DeploymentDescriptor$Target">
                <field name="workspace">
                  <string>collaboration</string>
                </field>
                <field name="nodePath">
                  <string>/sites content/live/WAIPortal/web contents/site artifacts</string>
                </field>
              </object>
            </field>
            <field name="sourcePath">
              <string>war:/conf/sample-portal/wcm/artifacts/site-resources/WAIPortal/WAIPortalFooter.xml</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>Portal SiteArtifact FR</name>
          <description>Deployment Descriptor</description>
          <object type="org.exoplatform.services.deployment.DeploymentDescriptor">
            <field name="target">
              <object type="org.exoplatform.services.deployment.DeploymentDescriptor$Target">
                <field name="workspace">
                  <string>collaboration</string>
                </field>
                <field name="nodePath">
                  <string>/sites content/live/WAIPortal/web contents/site artifacts</string>
                </field>
              </object>
            </field>
            <field name="sourcePath">
              <string>war:/conf/sample-portal/wcm/artifacts/site-resources/WAIPortal/WAIPortal_FR.xml</string>
            </field>
          </object>
        </object-param>
        
        <object-param>
          <name>Accessibility content</name>
          <description>Deployment Descriptor</description>
          <object type="org.exoplatform.services.deployment.DeploymentDescriptor">
            <field name="target">
              <object type="org.exoplatform.services.deployment.DeploymentDescriptor$Target">
                <field name="workspace">
                  <string>collaboration</string>
                </field>
                <field name="nodePath">
                  <string>/sites content/live/WAIPortal/web contents</string>
                </field>
              </object>
            </field>
            <field name="sourcePath">
              <string>war:/conf/sample-portal/wcm/artifacts/site-resources/WAIPortal/Accessibility.xml</string>
            </field>
          </object>
        </object-param>
        
      </init-params>
    </component-plugin>
  </external-component-plugins>
  
  
  <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>
        <value-param>
          <name>siteName</name>
          <description>name of site in which artifact is deployed</description>
          <value>WAIPortal</value>
        </value-param>      
        <value-param>
          <name>override</name>
          <description>indicates if this plugin will override data over legacy data, default value:false</description>
          <value>false</value>
        </value-param>      
	<object-param>
          <name>link01</name>
          <description>Deployment Descriptor</description>
          <object type="org.exoplatform.services.deployment.plugins.LinkDeploymentDescriptor">
            <field name="sourcePath">
              <string>${gatein.jcr.repository.default:repository}:collaboration:/sites content/live/WAIPortal/web contents/home</string>
            </field>
            <field name="targetPath">
              <string>${gatein.jcr.repository.default:repository}:collaboration:/sites content/live/WAIPortal/categories/WAIPortal</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>${gatein.jcr.repository.default:repository}:collaboration:/sites content/live/WAIPortal/web contents/competence/prepare-your-team</string>
            </field>
            <field name="targetPath">
              <string>${gatein.jcr.repository.default:repository}:collaboration:/sites content/live/WAIPortal/categories/WAIPortal/Competence</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>${gatein.jcr.repository.default:repository}:collaboration:/sites content/live/WAIPortal/web contents/competence/work-with-a-partner</string>
            </field>
            <field name="targetPath">
              <string>${gatein.jcr.repository.default:repository}:collaboration:/sites content/live/WAIPortal/categories/WAIPortal/Competence</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>link04</name>
          <description>Deployment Descriptor</description>
          <object type="org.exoplatform.services.deployment.plugins.LinkDeploymentDescriptor">
            <field name="sourcePath">
              <string>${gatein.jcr.repository.default:repository}:collaboration:/sites content/live/WAIPortal/web contents/customers/customer-success-stories</string>
            </field>
            <field name="targetPath">
              <string>${gatein.jcr.repository.default:repository}:collaboration:/sites content/live/WAIPortal/categories/WAIPortal/Customers</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>link05</name>
          <description>Deployment Descriptor</description>
          <object type="org.exoplatform.services.deployment.plugins.LinkDeploymentDescriptor">
            <field name="sourcePath">
              <string>${gatein.jcr.repository.default:repository}:collaboration:/sites content/live/WAIPortal/web contents/customers/subscription-support</string>
            </field>
            <field name="targetPath">
              <string>${gatein.jcr.repository.default:repository}:collaboration:/sites content/live/WAIPortal/categories/WAIPortal/Customers</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>link06</name>
          <description>Deployment Descriptor</description>
          <object type="org.exoplatform.services.deployment.plugins.LinkDeploymentDescriptor">
            <field name="sourcePath">
              <string>${gatein.jcr.repository.default:repository}:collaboration:/sites content/live/WAIPortal/web contents/features/portal-content</string>
            </field>
            <field name="targetPath">
              <string>${gatein.jcr.repository.default:repository}:collaboration:/sites content/live/WAIPortal/categories/WAIPortal/Features</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>link07</name>
          <description>Deployment Descriptor</description>
          <object type="org.exoplatform.services.deployment.plugins.LinkDeploymentDescriptor">
            <field name="sourcePath">
              <string>${gatein.jcr.repository.default:repository}:collaboration:/sites content/live/WAIPortal/web contents/features/social-collaboration</string>
            </field>
            <field name="targetPath">
              <string>${gatein.jcr.repository.default:repository}:collaboration:/sites content/live/WAIPortal/categories/WAIPortal/Features</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>link08</name>
          <description>Deployment Descriptor</description>
          <object type="org.exoplatform.services.deployment.plugins.LinkDeploymentDescriptor">
            <field name="sourcePath">
              <string>${gatein.jcr.repository.default:repository}:collaboration:/sites content/live/WAIPortal/web contents/features/the-platform-difference</string>
            </field>
            <field name="targetPath">
              <string>${gatein.jcr.repository.default:repository}:collaboration:/sites content/live/WAIPortal/categories/WAIPortal/Features</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>link09</name>
          <description>Deployment Descriptor</description>
          <object type="org.exoplatform.services.deployment.plugins.LinkDeploymentDescriptor">
            <field name="sourcePath">
              <string>${gatein.jcr.repository.default:repository}:collaboration:/sites content/live/WAIPortal/web contents/technology/integration</string>
            </field>
            <field name="targetPath">
              <string>${gatein.jcr.repository.default:repository}:collaboration:/sites content/live/WAIPortal/categories/WAIPortal/Technology</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>link10</name>
          <description>Deployment Descriptor</description>
          <object type="org.exoplatform.services.deployment.plugins.LinkDeploymentDescriptor">
            <field name="sourcePath">
              <string>${gatein.jcr.repository.default:repository}:collaboration:/sites content/live/WAIPortal/web contents/technology/technical-specifications</string>
            </field>
            <field name="targetPath">
              <string>${gatein.jcr.repository.default:repository}:collaboration:/sites content/live/WAIPortal/categories/WAIPortal/Technology</string>
            </field>
          </object>
        </object-param>
      </init-params>
    </component-plugin>
  </external-component-plugins>
  
  <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.wcm.extensions.deployment.PublicationDeploymentPlugin</type>
      <description>Publication Deployment Plugin</description>
      <init-params>
        <value-param>
          <name>siteName</name>
          <description>name of site in which artifact is deployed</description>
          <value>WAIPortal</value>
        </value-param>      
        <value-param>
          <name>override</name>
          <description>indicates if this plugin will override data over legacy data, default value:false</description>
          <value>false</value>
        </value-param>      
        <object-param>
          <name>pub01</name>
          <description>Deployment Descriptor</description>
          <object type="org.exoplatform.services.wcm.extensions.deployment.PublicationDeploymentDescriptor">
            <field name="contents">
              <collection type="java.util.ArrayList">
                <value><string>collaboration:/sites content/live/WAIPortal/web contents/home</string></value>
                <value><string>collaboration:/sites content/live/WAIPortal/web contents/accessibility</string></value>
                                
                <value><string>collaboration:/sites content/live/WAIPortal/web contents/technology/integration</string></value>
                <value><string>collaboration:/sites content/live/WAIPortal/web contents/technology/technical-specifications</string></value>
                <value><string>collaboration:/sites content/live/WAIPortal/web contents/features/portal-content</string></value>
                <value><string>collaboration:/sites content/live/WAIPortal/web contents/features/social-collaboration</string></value>
                <value><string>collaboration:/sites content/live/WAIPortal/web contents/features/the-platform-difference</string></value>
                <value><string>collaboration:/sites content/live/WAIPortal/web contents/customers/customer-success-stories</string></value>
                <value><string>collaboration:/sites content/live/WAIPortal/web contents/customers/subscription-support</string></value>
                <value><string>collaboration:/sites content/live/WAIPortal/web contents/competence/prepare-your-team</string></value>
                <value><string>collaboration:/sites content/live/WAIPortal/web contents/competence/work-with-a-partner</string></value>
                
                <value><string>collaboration:/sites content/live/WAIPortal/web contents/site artifacts/Footer</string></value>
              </collection>
            </field>
          </object>
        </object-param>
      </init-params>
    </component-plugin>
  </external-component-plugins>
  
</configuration>