Import site

Goal

This packaging task goal is to import a new site.

If a site with the same name already exist, an exception will be launched.

Warning

This packaging task is unstable and may not work as expected.

Packaging task configuration

The packaging task need some configuration :

<extension name="com.axemble.vdoc.update.easysite.ImportSiteExtension" critical="true">
	<param name="file" value="my-site.zip"/>
	<param name="organization" value="uril://vdoc/organization/OrgaName"/>
	<param name="name" value="siteName"/>
	<param name="library" value="Library name"/>
	<param name="indexationEnable" value="true"/>
</extension>
Parameter Mandatory Description
name true System name of the site to update.
file false The site file name (located in custom/resources directory). It is mandatory if the templateparameter is not defined.
template false The template file name (located in custom/resources directory). If the file parameter is already define, the template will be ignored.
organization true The protocol URI of the organization associated to the library and the site.
createLibrary false Default to true. Create the library is it does not exists. If set to false, the library parameter become mandatory.
library false The name of the associated library.
indexationEnable false Default to true. The site will not be indexed if this parameter is set to false. Not used if the createLibrary parameter is set to false.