Commit 223557d0 authored by Bert Leunis's avatar Bert Leunis

HIPPLUG-1481 add demo as essentials plugin

parent 04eafe6e
Hippo Essentials Plugin Feature
===============================
This project is a Hippo Essentials Plugin Feature. Add this as a dependency to the Essentials module of a Hippo
project. After a (re)build it will show up as a Feature in the Feature Library.
This Poll Demo feature will only work correctly if the Poll feature is installed BEFORE this feature.
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.onehippo.cms7</groupId>
<artifactId>hippo-plugin-poll</artifactId>
<version>4.0.1-SNAPSHOT</version>
</parent>
<name>Hippo Essentials Poll Plugin Demo</name>
<description>Hippo Essentials Poll Plugin Demo</description>
<artifactId>hippo-essentials-plugin-poll-demo</artifactId>
<packaging>jar</packaging>
<properties>
<!--***START temporary override of versions*** -->
<!-- ***END temporary override of versions*** -->
<essentials.version>4.0.0</essentials.version>
</properties>
<!--
The below project elements are emptied/overridden as otherwise their metadata would be
inherited or merged from the parent hippo-cms7-release pom (or its hippo-cms7-project pom).
DO NOT remove these tags but instead fill them in appropriately as needed,
UNLESS the inherited values are valid for your project.
-->
<licenses>
<license />
</licenses>
<mailingLists>
<mailingList />
</mailingLists>
<developers>
<developer />
</developers>
<contributors>
<contributor />
</contributors>
<ciManagement />
<scm>
<connection/>
<developerConnection/>
<url/>
</scm>
<distributionManagement>
<repository>
<id>-</id>
<url>-</url>
</repository>
<snapshotRepository>
<id>-</id>
<url>-</url>
</snapshotRepository>
</distributionManagement>
<!-- End of emptied/overridden metadata from parent hippo-cms7-release pom. -->
<repositories>
<repository>
<id>hippo</id>
<name>Hippo maven 2 repository.</name>
<url>http://maven.onehippo.com/maven2/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.onehippo.cms7</groupId>
<artifactId>hippo-essentials-plugin-sdk-api</artifactId>
</dependency>
<dependency>
<groupId>org.onehippo.cms7</groupId>
<artifactId>hippo-essentials-plugin-sdk-implementation</artifactId>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<!-- PLUGIN API -->
<dependency>
<groupId>org.onehippo.cms7</groupId>
<artifactId>hippo-essentials-plugin-sdk-api</artifactId>
<version>${essentials.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.onehippo.cms7</groupId>
<artifactId>hippo-essentials-plugin-sdk-implementation</artifactId>
<version>${essentials.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<defaultGoal>package</defaultGoal>
<resources>
<resource>
<filtering>false</filtering>
<directory>${basedir}/src/main/java</directory>
<includes>
<include>**/*.woff</include>
<include>**/*.xml</include>
<include>**/*.eot</include>
<include>**/*.ttf</include>
<include>**/*.svg</include>
<include>**/*.html</include>
<include>**/*.css</include>
<include>**/*.png</include>
<include>**/*.gif</include>
<include>**/*.js</include>
<include>**/*.properties</include>
</includes>
</resource>
<resource>
<filtering>false</filtering>
<directory>${basedir}/src/main/resources</directory>
<includes>
<include>**/*.cnd</include>
<include>**/*.xml</include>
<include>**/*.js</include>
<include>**/*.html</include>
<include>**/*.jsp</include>
<include>**/*.ftl</include>
<include>**/*.ttf</include>
<include>**/*.svg</include>
<include>**/*.woff</include>
<include>**/*.woff2</include>
<include>**/*.eot</include>
<include>**/*.png</include>
<include>**/*.jpg</include>
<include>**/*.json</include>
<include>**/*.txt</include>
<include>**/*.ico</include>
<include>**/*.css</include>
<include>**/*.gif</include>
<include>**/*.MF</include>
<include>**/*.properties</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!-- 'nullify' the inherited but 'Hippo only' specific maven-war-plugin and maven-remote-resources-plugin
handling of LICENSE and NOTICE files as configured in the hippo-cms7-project parent.
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-remote-resources-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>process</goal>
</goals>
<configuration>
<resourceBundles combine.self="override">
</resourceBundles>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<!-- end of 'nullify' inherited configuration -->
</pluginManagement>
</build>
<profiles>
<profile>
<id>default</id>
<activation>
<activeByDefault>true</activeByDefault>
<property>
<name>jrebel</name>
</property>
</activation>
</profile>
</profiles>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<instructions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.onehippo.org/essentials/instructions/instructions.xsd" xmlns="http://www.onehippo.org/essentials/instructions">
<instructionSet>
<!-- load cnd -->
<cnd documentType="customPollDocument" superType="{{namespace}}:basedocument,hippostd:relaxed,hippotranslation:translated"/>
<!-- java classes -->
<file action="copy" source="java/CustomPollDocument.txt" target="{{beansFolder}}/CustomPollDocument.java"/>
<file action="copy" source="java/CustomPollDocumentComponent.txt" target="{{componentsFolder}}/CustomPollDocumentComponent.java"/>
<file action="copy" source="java/CustomPollDocumentComponentInfo.txt" target="{{componentsFolder}}/CustomPollDocumentComponentInfo.java"/>
</instructionSet>
<!-- group "freemarker" is used when that option is chosen in the general settings -->
<instructionSet group="freemarker">
<freemarker action="copy" source="freemarker/custompoll.component.ftl" target="{{freemarkerRoot}}/{{namespace}}/custompoll.component.ftl"/>
<xml action="copy" source="freemarker/custompoll-template.xml" target="/hst:hst/hst:configurations/{{namespace}}/hst:templates"/>
</instructionSet>
<!-- group "jsp" is used when that option is chosen in the general settings -->
<instructionSet group="jsp">
<!-- TODO: create custompol.component.jsp also. Do the same for the jsp: -->
<!-- (this file was created from contents of the standard template at
/hst:hst/hst:configurations/hst:default/hst:templates/poll.component.ftl plus some extra code to show the custom title) -->
<!--<file action="copy" source="jsp/example.jsp" target="{{jspRoot}}/example.jsp"/>-->
<!--<xml action="copy" source="hst/example-template-jsp.xml" target="/hst:hst/hst:configurations/hst:default/hst:templates"/>-->
</instructionSet>
<!-- sample data -->
<instructionSet group="sampleData">
<!--<folder path="/content/documents/{{namespace}}/polls" template="xml/poll-folder.xml"/>-->
<xml action="copy" source="xml/content-custom-example-poll.xml" target="/content/documents/{{namespace}}/polls"/>
<xml action="copy" source="xml/custompoll-catalogitem.xml" target="/hst:hst/hst:configurations/{{namespace}}/hst:catalog/{{namespace}}-catalog"/>
<xml action="copy" source="xml/custompoll-page.xml" target="/hst:hst/hst:configurations/{{namespace}}/hst:pages"/>
<xml action="copy" source="xml/custompoll-sitemapitem.xml" target="/hst:hst/hst:configurations/{{namespace}}/hst:sitemap"/>
<xml action="copy" source="xml/custompoll-workspace-container.xml" target="/hst:hst/hst:configurations/{{namespace}}/hst:workspace/hst:containers"/>
<xml action="copy" source="xml/menu-item.xml" target="/hst:hst/hst:configurations/{{namespace}}/hst:workspace/hst:sitemenus/main"/>
<xml action="copy" source="xml/namespaceCustomDocument.xml" target="/hippo:namespaces/{{namespace}}"/>
<xml action="copy" source="xml/polldata-polldemo.xml" target="/"/>
</instructionSet>
</instructions>
\ No newline at end of file
<essentials-simple-install-plugin
plugin-id="hippo-essentials-plugin-poll-demoId"
has-sample-data="true">
</essentials-simple-install-plugin>
<?xml version="1.0" encoding="UTF-8"?>
<web-fragment id="WebFragment_ID" version="3.0" metadata-complete="true"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-fragment_3_0.xsd">
<display-name>hippo-essentials-plugin-poll-demoId</display-name>
<ordering>
<after>
<others/>
</after>
</ordering>
</web-fragment>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2016 Hippo B.V. (http://www.onehippo.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<sv:node xmlns:sv="http://www.jcp.org/jcr/sv/1.0" sv:name="custompoll-component">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>hst:template</sv:value>
</sv:property>
<sv:property sv:name="hst:renderpath" sv:type="String">
<sv:value>webfile:/freemarker/{{namespace}}/custompoll.component.ftl</sv:value>
</sv:property>
</sv:node>
<#--
Copyright 2016 Hippo B.V. (http://www.onehippo.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<#assign hst=JspTaglibs["http://www.hippoecm.org/jsp/hst/core"]>
<div id="poll">
<#if pollDocument??>
<#if pollDocument.title??>
<h2>${pollDocument.title}</h2>
</#if>
<#if pollDocument.poll.text??>
<h3>${pollDocument.poll.text}</h3>
</#if>
<span id="noCookieSupportMessage">The poll cannot be shown because the browser does not support cookies</span>
<#-- Render Poll Form if not yet voted (voteSuccess not defined) or voting failed (voteSuccess is false) -->
<#if !(voteSuccess??) || voteSuccess == false>
<div id="pollDiv">
<#if pollDocument.poll.introduction??>
<p id="">${pollDocument.poll.introduction}</p>
</#if>
<!-- The Poll -->
<form id="form-poll" method="post" action="<@hst.actionURL />">
<input type="hidden" name="path" value="${path}"/>
<div>
<#list pollDocument.poll.options as curOption>
<div>
<input id="${curOption.value}" name="option" type="radio" value="${curOption.value}"
<#if option?? && curOption == option>selected="true"</#if> />
<label for="${curOption.value}">${curOption.label}</label>
</div>
</#list>
</div>
<button class="submit" type="submit">Vote</button>
<#if voteSuccess??> <#-- Implies voteSuccess == "false" -->
<div>Sorry, processing the vote has failed</div>
</#if>
</form>
</div>
</#if>
<ul id="pollResults" class="poll-results-list">
<#list pollVotes.options as curOption>
<li>
<div class="poll-graph-bar">
<span class="poll-meter" style="width: ${curOption.votesPercentage}%"> </span>
</div>
<#if curOption.votesCount == 1>
${curOption.label} - ${curOption.votesPercentage}% (${curOption.votesCount} vote)
<#else>
${curOption.label} - ${curOption.votesPercentage}% (${curOption.votesCount} votes)
</#if>
</li>
</#list>
<#if pollVotes.totalVotesPercentage != 100>
<li>
Due to rounding the percentages don't add up to 100%
</li>
</#if>
</ul>
<script type="text/javascript">
if (<#if voteSuccess?? && voteSuccess == true>1<#else>0</#if>) {
hide("noCookieSupportMessage");
} else if (checkBrowserSupportsCookies()) {
hide("noCookieSupportMessage");
hide("pollResults");
} else {
hide("pollDiv");
hide("pollResults");
}
function hide(id) {
var element = document.getElementById(id);
element.parentNode.removeChild(element);
}
function checkBrowserSupportsCookies() {
var cookieDate=new Date();
var cookieString="testCookieSupport"+cookieDate.toUTCString();
document.cookie="testCookieSupport="+cookieString;
return document.cookie.length > 0;
}
</script>
<#else>
No poll available
</#if>
</div>
package {{beansPackage}};
/*
* Copyright 2017 Hippo B.V. (http://www.onehippo.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.onehippo.cms7.essentials.dashboard.annotations.HippoEssentialsGenerated;
import org.hippoecm.hst.content.beans.Node;
import org.onehippo.forge.poll.contentbean.compound.Poll;
@HippoEssentialsGenerated(internalName = "{{namespace}}:customPollDocument")
@Node(jcrType = "{{namespace}}:customPollDocument")
public class CustomPollDocument extends BaseDocument {
@HippoEssentialsGenerated(internalName = "{{namespace}}:title")
public String getTitle() {
return getProperty("{{namespace}}:title");
}
@HippoEssentialsGenerated(internalName = "{{namespace}}:poll", allowModifications = false)
public Poll getPoll() {
return getBean("{{namespace}}:poll");
}
}
/*
* Copyright 2017 Hippo B.V. (http://www.onehippo.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package {{componentsPackage}};
import org.hippoecm.hst.core.parameters.ParametersInfo;
import org.onehippo.forge.poll.component.PollDocumentComponent;
/**
* Custom HST poll component that has a poll document picker as parameter.
*/
@ParametersInfo(type = CustomPollDocumentComponentInfo.class)
public class CustomPollDocumentComponent extends PollDocumentComponent {
}
/*
* Copyright 2017 Hippo B.V. (http://www.onehippo.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package {{componentsPackage}};
import org.hippoecm.hst.core.parameters.JcrPath;
import org.hippoecm.hst.core.parameters.Parameter;
import org.onehippo.forge.poll.component.PollDocumentComponentInfo;
interface CustomPollDocumentComponentInfo extends PollDocumentComponentInfo {
@Override
@Parameter(name = "poll-docsPath", required = true, displayName = "Poll Document")
@JcrPath(pickerSelectableNodeTypes = "{{namespace}}:customPollDocument")
String getPollDocsPath();
}
{
"@type": "plugin",
"id": "hippo-essentials-plugin-poll-demoId",
"name": "Polls Demo",
"icon": "",
"introduction": "This plugin shows how you can extend the Poll plugin and use it in a custom document. NOTE: the Poll feature must be installed BEFORE this one for this feature to work.",
"packageFile": "/META-INF/instructions.xml",
"restClasses": [],
"type": "feature",
"vendor" : {
"@type": "vendor",
"name" : "BloomReach",
"url" : "https://www.bloomreach.com"
},
"categories": {
"application": [
"content"
],
"type": [
"feature"
],
"license": [
"community"
]
},
"libraries": [
{
"items": []
}
]
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2016 Hippo B.V. (http://www.onehippo.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<sv:node xmlns:sv="http://www.jcp.org/jcr/sv/1.0" sv:name="custom-example-poll">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>hippo:handle</sv:value>
</sv:property>
<sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true">
<sv:value>hippo:named</sv:value>
<sv:value>mix:referenceable</sv:value>
</sv:property>
<sv:property sv:name="hippo:name" sv:type="String">
<sv:value>custom-example-poll</sv:value>
</sv:property>
<sv:node sv:name="custom-example-poll">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>{{namespace}}:customPollDocument</sv:value>
</sv:property>
<sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true">
<sv:value>hippotranslation:translated</sv:value>
<sv:value>mix:referenceable</sv:value>
</sv:property>
<sv:property sv:name="hippo:availability" sv:type="String" sv:multiple="true">
<sv:value>live</sv:value>
<sv:value>preview</sv:value>
</sv:property>
<sv:property sv:name="hippostd:holder" sv:type="String">
<sv:value>admin</sv:value>
</sv:property>
<sv:property sv:name="hippostd:state" sv:type="String">
<sv:value>published</sv:value>
</sv:property>
<sv:property sv:name="hippostd:stateSummary" sv:type="String">
<sv:value>live</sv:value>
</sv:property>
<sv:property sv:name="hippostdpubwf:createdBy" sv:type="String">
<sv:value>admin</sv:value>
</sv:property>
<sv:property sv:name="hippostdpubwf:creationDate" sv:type="Date">
<sv:value>2012-11-15T16:11:11.569+01:00</sv:value>
</sv:property>
<sv:property sv:name="hippostdpubwf:lastModificationDate" sv:type="Date">
<sv:value>2012-11-15T16:13:17.757+01:00</sv:value>
</sv:property>
<sv:property sv:name="hippostdpubwf:lastModifiedBy" sv:type="String">
<sv:value>admin</sv:value>
</sv:property>
<sv:property sv:name="hippostdpubwf:publicationDate" sv:type="Date">
<sv:value>2012-11-19T13:15:37.802+01:00</sv:value>
</sv:property>
<sv:property sv:name="hippotranslation:id" sv:type="String">
<sv:value>088038f6-cd72-4628-a259-374dcc642b76</sv:value>
</sv:property>
<sv:property sv:name="hippotranslation:locale" sv:type="String">
<sv:value>en</sv:value>
</sv:property>
<sv:property sv:name="{{namespace}}:title" sv:type="String">
<sv:value>Title of Custom Poll Document</sv:value>
</sv:property>
<sv:node sv:name="{{namespace}}:poll">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>poll:poll</sv:value>
</sv:property>
<sv:property sv:name="poll:active" sv:type="Boolean">
<sv:value>true</sv:value>
</sv:property>
<sv:property sv:name="poll:introduction" sv:type="String">
<sv:value>Introduction of the poll compound. Feel free to vote.</sv:value>
</sv:property>
<sv:property sv:name="poll:text" sv:type="String">
<sv:value>Text of the poll compound. Do you like ice cream?</sv:value>
</sv:property>
<sv:node sv:name="poll:option">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>poll:option</sv:value>
</sv:property>
<sv:property sv:name="poll:label" sv:type="String">
<sv:value>Yes</sv:value>
</sv:property>
<sv:property sv:name="poll:value" sv:type="String">
<sv:value>yes</sv:value>
</sv:property>
</sv:node>
<sv:node sv:name="poll:option">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>poll:option</sv:value>
</sv:property>
<sv:property sv:name="poll:label" sv:type="String">
<sv:value>No</sv:value>
</sv:property>
<sv:property sv:name="poll:value" sv:type="String">
<sv:value>no</sv:value>
</sv:property>
</sv:node>
</sv:node>
</sv:node>
</sv:node>
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2016 Hippo B.V. (http://www.onehippo.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<sv:node xmlns:sv="http://www.jcp.org/jcr/sv/1.0" sv:name="custompoll">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>hst:containeritemcomponent</sv:value>
</sv:property>
<sv:property sv:name="hst:componentclassname" sv:type="String">
<sv:value>{{componentsPackage}}.CustomPollDocumentComponent</sv:value>
</sv:property>
<sv:property sv:name="hst:label" sv:type="String">
<sv:value>Custom Poll</sv:value>
</sv:property>
<sv:property sv:name="hst:parameternames" sv:type="String" sv:multiple="true">
<sv:value>poll-pollCompoundName</sv:value>
<sv:value>poll-docsPath</sv:value>
<sv:value>poll-dataPath</sv:value>
<sv:value>poll-docsClass</sv:value>
</sv:property>
<sv:property sv:name="hst:parametervalues" sv:type="String" sv:multiple="true">
<sv:value>{{namespace}}:poll</sv:value>
<sv:value>/content/documents/{{namespace}}/polls/custom-example-poll</sv:value>
<sv:value>polldata</sv:value>
<sv:value>{{beansPackage}}.CustomPollDocument</sv:value>
</sv:property>
<sv:property sv:name="hst:template" sv:type="String">
<sv:value>custompoll-component</sv:value>
</sv:property>
<sv:property sv:name="hst:xtype" sv:type="String">
<sv:value>hst.item</sv:value>
</sv:property>
</sv:node>
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2016 Hippo B.V. (http://www.onehippo.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<sv:node xmlns:sv="http://www.jcp.org/jcr/sv/1.0" sv:name="custompoll">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>hst:component</sv:value>
</sv:property>
<sv:property sv:name="hst:referencecomponent" sv:type="String">
<sv:value>hst:abstractpages/base</sv:value>
</sv:property>