Changeset 29506
- Timestamp:
- 01/22/08 10:06:29 (11 months ago)
- Files:
-
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/pom.xml (modified) (1 diff)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/META-INF/archetype.xml (modified) (2 diffs)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/build.xml (modified) (2 diffs)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/pom.xml (modified) (4 diffs)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/java/BookEventListener.java (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/java/BookFileManagerPlugin.java (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/java/BookISBNEventListener.java (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/java/BookIntegerConverter.java (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/java/BookIntegerValidator.java (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/java/BookManager.java (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/java/BookManagerBean.java (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/java/BookResultsProvider.java (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/java/BookTitleDescriptor.java (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/java/BookTitleService.java (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/java/BookTitleServiceImpl.java (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/java/SampleAction.java (deleted)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/java/SampleActionBean.java (deleted)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/java/SampleEventListener.java (deleted)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/META-INF/MANIFEST.MF (modified) (1 diff)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/actions-contrib.xml (modified) (2 diffs)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/booktitle-contrib.xml (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/booktitle-service-contrib.xml (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/content-template-contrib.xml (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/core-types-contrib.xml (modified) (1 diff)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/deployment-fragment.xml (modified) (1 diff)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/directories-contrib.xml (modified) (1 diff)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/ecm-types-contrib.xml (deleted)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/event-listener-contrib.xml (modified) (1 diff)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/filemanager-contrib.xml (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/l10n/messages.properties (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/lifecycle-contrib.xml (modified) (1 diff)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/querymodel-contrib.xml (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/resultsprovider-contrib.xml (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/search-contrib.xml (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/theme-contrib.xml (modified) (1 diff)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/ui-types-contrib.xml (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/directories/book_keywords.csv (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/directories/sample_languages.csv (deleted)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/nuxeo.war/bookwizard.xhtml (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/nuxeo.war/incl/book_listing_fragment.xhtml (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/nuxeo.war/incl/bookwizard_page1.xhtml (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/nuxeo.war/incl/bookwizard_page2.xhtml (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/nuxeo.war/incl/bookwizard_page3.xhtml (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/nuxeo.war/incl/tabs/book_view.xhtml (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/nuxeo.war/incl/tabs/folder_books_view.xhtml (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/nuxeo.war/incl/tabs/sample_view.xhtml (deleted)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/schemas/book.xsd (added)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/schemas/sample.xsd (deleted)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/seam.properties (deleted)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/themes/nxthemes-setup.xml (deleted)
- org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/themes/theme-book.xml (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/pom.xml
r25864 r29506 3 3 <groupId>org.nuxeo.archetypes</groupId> 4 4 <artifactId>nuxeo-archetype-simple</artifactId> 5 <version>5. 2-SNAPSHOT</version>5 <version>5.1.3-SNAPSHOT</version> 6 6 <packaging>jar</packaging> 7 7 <name>Simple nuxeo 5 archetype</name> org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/META-INF/archetype.xml
r25864 r29506 2 2 <id>nuxeo-archetype-simple</id> 3 3 <sources> 4 <source>src/main/java/SampleAction.java</source> 5 <source>src/main/java/SampleActionBean.java</source> 6 <source>src/main/java/SampleEventListener.java</source> 4 <source>src/main/java/BookEventListener.java</source> 5 <source>src/main/java/BookFileManagerPlugin.java</source> 6 <source>src/main/java/BookIntegerConverter.java</source> 7 <source>src/main/java/BookIntegerValidator.java</source> 8 <source>src/main/java/BookISBNEventListener.java</source> 9 <source>src/main/java/BookManagerBean.java</source> 10 <source>src/main/java/BookManager.java</source> 11 <source>src/main/java/BookResultsProvider.java</source> 12 <source>src/main/java/BookTitleDescriptor.java</source> 13 <source>src/main/java/BookTitleServiceImpl.java</source> 14 <source>src/main/java/BookTitleService.java</source> 7 15 </sources> 8 16 <resources> … … 14 22 <!-- OSGI INF --> 15 23 <resource>src/main/resources/OSGI-INF/actions-contrib.xml</resource> 24 <resource>src/main/resources/OSGI-INF/booktitle-contrib.xml</resource> 25 <resource>src/main/resources/OSGI-INF/booktitle-service-contrib.xml</resource> 26 <resource>src/main/resources/OSGI-INF/content-template-contrib.xml</resource> 16 27 <resource>src/main/resources/OSGI-INF/core-types-contrib.xml</resource> 17 28 <resource>src/main/resources/OSGI-INF/deployment-fragment.xml</resource> 18 29 <resource>src/main/resources/OSGI-INF/directories-contrib.xml</resource> 19 <resource>src/main/resources/OSGI-INF/ecm-types-contrib.xml</resource>20 30 <resource>src/main/resources/OSGI-INF/event-listener-contrib.xml</resource> 31 <resource>src/main/resources/OSGI-INF/filemanager-contrib.xml</resource> 21 32 <resource>src/main/resources/OSGI-INF/lifecycle-contrib.xml</resource> 22 <resource>src/main/resources/OSGI-INF/theme-contrib.xml</resource> 33 <resource>src/main/resources/OSGI-INF/querymodel-contrib.xml</resource> 34 <resource>src/main/resources/OSGI-INF/resultsprovider-contrib.xml</resource> 35 <resource>src/main/resources/OSGI-INF/search-contrib.xml</resource> 36 <resource>src/main/resources/OSGI-INF/theme-contrib.xml</resource> 37 <resource>src/main/resources/OSGI-INF/ui-types-contrib.xml</resource> 38 <resource>src/main/resources/OSGI-INF/l10n/messages.properties</resource> 23 39 <resource>src/main/resources/OSGI-INF/l10n/messages_en.properties</resource> 24 40 <resource>src/main/resources/OSGI-INF/l10n/messages_fr.properties</resource> 25 41 <!-- OTHERS --> 26 <resource>src/main/resources/directories/sample_languages.csv</resource> 27 <resource>src/main/resources/nuxeo.war/incl/tabs/sample_view.xhtml</resource> 28 <resource>src/main/resources/schemas/sample.xsd</resource> 29 <resource>src/main/resources/themes/nxthemes-setup.xml</resource> 42 <resource>src/main/resources/directories/book_keywords.csv</resource> 43 44 <resource>src/main/resources/nuxeo.war/bookwizard.xhtml</resource> 45 <resource>src/main/resources/nuxeo.war/incl/book_listing_fragment.xhtml</resource> 46 <resource>src/main/resources/nuxeo.war/incl/tabs/folder_books_view.xhtml</resource> 47 <resource>src/main/resources/nuxeo.war/incl/tabs/book_view.xhtml</resource> 48 <resource>src/main/resources/nuxeo.war/incl/bookwizard_page1.xhtml</resource> 49 <resource>src/main/resources/nuxeo.war/incl/bookwizard_page3.xhtml</resource> 50 <resource>src/main/resources/nuxeo.war/incl/bookwizard_page2.xhtml</resource> 51 52 <resource>src/main/resources/schemas/book.xsd</resource> 53 <resource>src/main/resources/themes/theme-book.xml</resource> 30 54 <resource>src/main/resources/seam.properties</resource> 31 55 </resources> org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/build.xml
r25864 r29506 1 1 <?xml version="1.0"?> 2 <project name="${package}" default="deploy" basedir="."> 2 <project name="${artifactId}" default="deploy" basedir="."> 3 <property name="name" value="${artifactId}" /> 4 <property name="version" value="${version}" /> 3 5 4 6 <!-- Create a build.properties file from build.properties.sample 5 7 if you wish to override the JBoss paths --> 6 <property file="build.properties" />7 <property name="jboss.home" value="/opt/jboss" />8 <property name="jboss.config" value="default" />8 <property file="build.properties" /> 9 <property name="jboss.home" value="/opt/jboss" /> 10 <property name="jboss.config" value="default" /> 9 11 10 <property name="javac.debug" value="true" />11 <property name="javac.deprecation" value="false" />12 <property name="javac.debug" value="true" /> 13 <property name="javac.deprecation" value="false" /> 12 14 13 15 <!-- Boilerplate configuration --> 14 <property name="build.dir" value=" ${basedir}/target"/>15 <property name="deploy.dir" value="${jboss.home}/server/${jboss.config}/deploy" />16 <property name="nuxeo.ear" value="nuxeo.ear" />16 <property name="build.dir" value="\${basedir}/target" /> 17 <property name="deploy.dir" value="${jboss.home}/server/${jboss.config}/deploy" /> 18 <property name="nuxeo.ear" value="nuxeo.ear" /> 17 19 18 20 <condition property="osfamily-unix"> 19 <os family="unix" />21 <os family="unix" /> 20 22 </condition> 21 23 <condition property="osfamily-windows"> 22 <os family="windows" />24 <os family="windows" /> 23 25 </condition> 24 26 25 <target name="deploy" depends="install,copy" description="Build and copy to JBoss" />27 <target name="deploy" depends="install,copy" description="Build and copy to JBoss" /> 26 28 27 <target name="install" depends="install-unix,install-windows" description="Build" />29 <target name="install" depends="install-unix,install-windows" description="Build" /> 28 30 <target name="install-unix" if="osfamily-unix"> 29 31 <exec executable="mvn" failonerror="true"> … … 42 44 43 45 <target name="copy" description="Copy files to JBoss"> 44 <copy todir="${deploy.dir}/${nuxeo.ear}/plugins" overwrite="true" flatten="true"> 45 <fileset dir="${build.dir}"> 46 <include name="*.jar" /> 47 <exclude name="*-sources.jar" /> 48 </fileset> 49 </copy> 46 <copy todir="${deploy.dir}/${nuxeo.ear}/plugins/" file="${build.dir}/${name}-${version}.jar" overwrite="true" /> 50 47 <!-- Could copy other files to .../config too --> 51 48 </target> 52 49 53 50 <target name="web" description="Copy web files to a live JBoss"> 54 <copy todir="${deploy.dir}/${nuxeo.ear}/nuxeo.war" 55 overwrite="true"> 56 <fileset dir="${basedir}/src/main/resources/nuxeo.war/"/> 51 <copy todir="${deploy.dir}/${nuxeo.ear}/nuxeo.war" overwrite="true"> 52 <fileset dir="\${basedir}/src/main/resources/nuxeo.war/" /> 57 53 </copy> 58 54 </target> org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/pom.xml
r27395 r29506 13 13 14 14 <!-- Nuxeo 5.1 last released version --> 15 15 16 <jboss.version>4.0.4.GA</jboss.version> 16 <nuxeo-ecm-core.version>1. 3.4</nuxeo-ecm-core.version>17 <nuxeo-ecm.version>5.1. 2</nuxeo-ecm.version>17 <nuxeo-ecm-core.version>1.4.0-RC</nuxeo-ecm-core.version> 18 <nuxeo-ecm.version>5.1.3-RC</nuxeo-ecm.version> 18 19 19 20 <!-- Nuxeo SNAPSHOT 5.2 updated each day 20 <jboss.version>4.0.4.GA</jboss.version>21 <nuxeo-ecm-core.version>1.4-SNAPSHOT</nuxeo-ecm-core.version>22 <nuxeo-ecm.version>5.2-SNAPSHOT</nuxeo-ecm.version>21 <jboss.version>4.0.4.GA</jboss.version> 22 <nuxeo-ecm-core.version>1.4-SNAPSHOT</nuxeo-ecm-core.version> 23 <nuxeo-ecm.version>5.2-SNAPSHOT</nuxeo-ecm.version> 23 24 --> 24 25 </properties> … … 98 99 <type>ejb</type> 99 100 </dependency> 101 <dependency> 102 <!-- for the filemanager plugin --> 103 <groupId>org.nuxeo.ecm.platform</groupId> 104 <artifactId>nuxeo-platform-filemanager-core</artifactId> 105 <version>${nuxeo-ecm.version}</version> 106 </dependency> 107 <dependency> 108 <!-- for the image transformations --> 109 <groupId>org.nuxeo.ecm.platform</groupId> 110 <artifactId>nuxeo-platform-imaging-transform</artifactId> 111 <version>${nuxeo-ecm.version}</version> 112 </dependency> 100 113 101 114 <dependency> … … 109 122 <artifactId>jboss-seam</artifactId> 110 123 <scope>provided</scope> 111 <version>1.1.5 </version>124 <version>1.1.5.NX3</version> 112 125 </dependency> 113 126 <dependency> … … 123 136 <version>3.0-RC8</version> 124 137 </dependency> 138 <dependency> 139 <groupId>javax.faces</groupId> 140 <artifactId>jsf-api</artifactId> 141 <scope>provided</scope> 142 <version>1.2_04</version> 143 </dependency> 125 144 </dependencies> 126 145 </project> org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/META-INF/MANIFEST.MF
r18419 r29506 11 11 org.nuxeo.ecm.webapp.core 12 12 Nuxeo-Component: OSGI-INF/core-types-contrib.xml, 13 OSGI-INF/ecm-types-contrib.xml, 13 OSGI-INF/search-contrib.xml, 14 OSGI-INF/ui-types-contrib.xml, 14 15 OSGI-INF/lifecycle-contrib.xml, 15 16 OSGI-INF/actions-contrib.xml, 16 17 OSGI-INF/event-listener-contrib.xml, 17 18 OSGI-INF/directories-contrib.xml, 18 OSGI-INF/theme-contrib.xml 19 OSGI-INF/theme-contrib.xml, 20 OSGI-INF/querymodel-contrib.xml, 21 OSGI-INF/resultsprovider-contrib.xml, 22 OSGI-INF/content-template-contrib.xml, 23 OSGI-INF/filemanager-contrib.xml, 24 OSGI-INF/booktitle-service-contrib.xml, 25 OSGI-INF/booktitle-contrib.xml org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/actions-contrib.xml
r18833 r29506 1 1 <?xml version="1.0"?> 2 <component name=" ${package}.actions">2 <component name="org.nuxeo.project.sample.actions"> 3 3 4 4 <extension target="org.nuxeo.ecm.platform.actions.ActionService" point="actions"> 5 <action id="tab_ sample_view"6 link="/incl/tabs/ sample_view.xhtml" enabled="true"7 label=" action.sample.view" icon="/icons/file.gif" order="9">5 <action id="tab_book_view" 6 link="/incl/tabs/book_view.xhtml" enabled="true" 7 label="Book" icon="/icons/file.gif" order="9"> 8 8 <category>VIEW_ACTION_LIST</category> 9 <filter id=" sample_filter">9 <filter id="book_filter"> 10 10 <rule grant="true"> 11 <type>Sample</type> 11 <type>Book</type> 12 </rule> 13 </filter> 14 </action> 15 16 <action id="tab_folder_books_list" 17 link="/incl/tabs/folder_books_view.xhtml" enabled="true" 18 label="Books" icon="/icons/file.gif" order="15"> 19 <category>VIEW_ACTION_LIST</category> 20 <filter id="workspace_books_filter"> 21 <rule grant="true"> 22 <type>Folder</type> 23 <type>Workspace</type> 12 24 </rule> 13 25 </filter> … … 16 28 17 29 <extension target="org.nuxeo.ecm.platform.actions.ActionService" point="filters"> 18 <filter id="rights" >30 <filter id="rights" append="true"> 19 31 <rule grant="true"> 20 <!-- Merging filter rules failed, repeat the default nuxeo ep rules 21 TODO: remove this when fixed --> 22 <permission>WriteSecurity</permission> 23 <facet>Folderish</facet> 24 </rule> 25 <rule grant="true"> 26 <type>Sample</type> 27 </rule> 28 </filter> 29 <filter id="view"> 30 <rule grant="true"> 31 <!-- Merging filter rules failed, repeat the default nuxeo ep rules 32 TODO: remove this when fixed --> 33 <type>File</type> 34 <type>Note</type> 35 </rule> 36 <rule grant="true"> 37 <type>Sample</type> 32 <type>Book</type> 38 33 </rule> 39 34 </filter> org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/core-types-contrib.xml
r18419 r29506 1 1 <?xml version="1.0"?> 2 <component name="${package}.core-types"> 2 3 3 <component name="${package}.coreTypes"> 4 5 <extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema"> 6 <schema name="sample" src="schemas/sample.xsd" prefix="smp"/> 4 <extension target="org.nuxeo.ecm.core.schema.TypeService" 5 point="schema"> 6 <schema name="book" src="schemas/book.xsd" prefix="bk" /> 7 7 </extension> 8 8 9 <extension target="org.nuxeo.ecm.core.schema.TypeService" point="doctype"> 10 <doctype name="Sample" extends="Document"> 11 <schema name="common"/> 12 <schema name="file"/> 13 <schema name="dublincore"/> 14 <schema name="sample"/> 15 <facet name="Downloadable"/> 9 <extension target="org.nuxeo.ecm.core.schema.TypeService" 10 point="doctype"> 11 <doctype name="Book" extends="Document"> 12 <schema name="common" /> 13 <schema name="dublincore" /> 14 <schema name="book" /> 15 <schema name="file" /> 16 <facet name="Commentable" /> 16 17 </doctype> 17 18 </extension> org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/deployment-fragment.xml
r18587 r29506 1 1 <?xml version="1.0"?> 2 3 2 <fragment> 4 3 5 4 <extension target="application#MODULE"> 6 7 5 <module> 8 6 <java>${bundle.fileName}</java> 9 7 </module> 8 </extension> 10 9 10 <extension target="faces-config#NAVIGATION"> 11 <navigation-case> 12 <from-outcome>bookwizard</from-outcome> 13 <to-view-id>/bookwizard.xhtml</to-view-id> 14 <redirect /> 15 </navigation-case> 11 16 </extension> 17 18 <extension target="faces-config#CONVERTER"> 19 <converter> 20 <converter-id>BookIntegerConverter</converter-id> 21 <converter-class> 22 ${package}.BookIntegerConverter 23 </converter-class> 24 </converter> 25 </extension> 26 27 <extension target="faces-config#VALIDATOR"> 28 <validator> 29 <validator-id>BookIntegerValidator</validator-id> 30 <validator-class> 31 ${package}.BookIntegerValidator 32 </validator-class> 33 </validator> 34 </extension> 35 36 <extension target="web#CONTEXT-PARAM"> 37 <context-param> 38 <param-name>org.jboss.seam.core.init.debug</param-name> 39 <param-value>true</param-value> 40 </context-param> 41 </extension> 42 12 43 13 44 <install> 14 45 15 <!-- Unzip the war template -->46 <!-- Unzip the war template --> 16 47 <unzip from="${bundle.fileName}" to="/"> 17 48 <include>nuxeo.war/**</include> 18 49 </unzip> 19 50 20 <!-- Create a temp dir --> 21 <!-- Make sure no directory with that name exists --> 22 <delete path="${artifactId}.tmp"/> 23 <mkdir path="${artifactId}.tmp"/> 51 <!-- Append .properties files --> 52 <delete path="${artifactId}dir.tmp" /> 53 <mkdir path="${artifactId}dir.tmp" /> 54 <unzip from="${bundle.fileName}" to="${artifactId}dir.tmp"> 55 <include>**/*.properties</include> 56 </unzip> 57 <append from="${artifactId}dir.tmp/OSGI-INF/l10n/messages.properties" 58 to="nuxeo.war/WEB-INF/classes/messages.properties" 59 addNewLine="true" /> 60 <append from="${artifactId}dir.tmp/OSGI-INF/l10n/messages_fr.properties" 61 to="nuxeo.war/WEB-INF/classes/messages_fr.properties" 62 addNewLine="true" /> 63 <delete path="${artifactId}dir.tmp" /> 24 64 25 <unzip from="${bundle.fileName}" to="${artifactId}.tmp"/>26 27 <append from="${artifactId}.tmp/OSGI-INF/l10n/messages_en.properties"28 to="nuxeo.war/WEB-INF/classes/messages_en.properties"29 addNewLine="true"/>30 31 <append from="${artifactId}.tmp/OSGI-INF/l10n/messages_fr.properties"32 to="nuxeo.war/WEB-INF/classes/messages_fr.properties"33 addNewLine="true"/>34 35 <delete path="${artifactId}.tmp"/>36 65 </install> 37 66 org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/directories-contrib.xml
r22123 r29506 2 2 <component name="${package}.directories"> 3 3 4 <extension target="org.nuxeo.ecm.directory.sql.SQLDirectoryFactory" point="directories"> 5 <directory name="sample_languages"> 4 <extension target="org.nuxeo.ecm.directory.sql.SQLDirectoryFactory" 5 point="directories"> 6 7 <directory name="book_keywords"> 6 8 <schema>vocabulary</schema> 9 <idField>id</idField> 10 7 11 <dataSource>java:/nxsqldirectory</dataSource> 8 <table>sample_languages</table> 9 <idField>id</idField> 10 <autoincrementIdField>false</autoincrementIdField> 12 <table>book_keywords</table> 11 13 <!-- one of "never", "on_missing_columns" or "always" --> 12 <createTablePolicy> always</createTablePolicy>13 <dataFile>directories/ sample_languages.csv</dataFile>14 <createTablePolicy>on_missing_columns</createTablePolicy> 15 <dataFile>directories/book_keywords.csv</dataFile> 14 16 </directory> 17 15 18 </extension> 16 19 org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/event-listener-contrib.xml
r18419 r29506 1 1 <?xml version="1.0"?> 2 <component name="${package}.event-listeners"> 2 3 3 <component name="${package}.listener"> 4 5 <extension target="org.nuxeo.ecm.core.listener.CoreEventListenerService" 4 <extension 5 target="org.nuxeo.ecm.core.listener.CoreEventListenerService" 6 6 point="listener"> 7 7 8 <listener name="sample_listener" 9 class="${package}.SampleEventListener"/> 8 <listener name="book_create" 9 class="${package}.BookEventListener"> 10 <eventId>emptyDocumentModelCreated</eventId> 11 </listener> 12 13 <listener name="book_update_isbn" 14 class="${package}.BookISBNEventListener"> 15 <eventId>documentCreated</eventId> 16 <eventId>documentModified</eventId> 17 </listener> 10 18 11 19 </extension> org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/lifecycle-contrib.xml
r18419 r29506 1 1 <?xml version="1.0"?> 2 <component name="${package}.lifecycles"> 2 3 3 <component name="${package}.lifecycle"> 4 5 <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService" point="lifecycle"> 6 7 <lifecycle name="sample" lifecyclemanager="jcrlifecyclemanager" 8 initial="project"> 9 10 <states> 11 <state name="project"> 12 <transitions> 13 <transition>validate</transition> 14 </transitions> 15 </state> 16 <state name="valid"> 17 <transitions> 18 <transition>back_to_project</transition> 19 <transition>make_obsolete</transition> 20 </transitions> 21 </state> 22 <state name="obsolete"> 23 </state> 24 </states> 25 26 <transitions> 27 <transition name="validate" 28 destinationState="valid"> 29 <description>Validate</description> 30 </transition> 31 <transition name="back_to_project" destinationState="project"> 32 <description>Back to project</description> 33 </transition> 34 <transition name="make_obsolete" destinationState="obsolete"> 35 <description>Make obsolete</description> 36 </transition> 37 </transitions> 38 </lifecycle> 39 </extension> 40 41 <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService" point="types"> 4 <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService" 5 point="types"> 42 6 <types> 43 <type name=" Sample">sample</type>7 <type name="Book">default</type> 44 8 </types> 45 9 </extension> org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/theme-contrib.xml
r18419 r29506 1 1 <?xml version="1.0"?> 2 <component name="${package}.themes"> 2 3 3 <component name="${package}.theme"> 4 4 <!-- 5 5 <extension target="org.nuxeo.theme.services.ThemeService" point="themes"> 6 6 <theme> 7 <src>themes/nxthemes-setup.xml</src> 7 <src>themes/theme-book.xml</src> 8 OR: 9 <src>file:///tmp/theme-book.xml</src> 8 10 </theme> 11 </extension> 12 --> 13 14 <!-- 15 <extension target="org.nuxeo.theme.services.ThemeService" 16 point="applications"> 17 18 <application root="/nuxeo"> 19 20 <negotiation> 21 <strategy>nuxeo5</strategy> 22 <default-engine>default</default-engine> 23 <default-theme>alternative/default</default-theme> 24 <default-perspective>default</default-perspective> 25 </negotiation> 26 27 <resource-caching> 28 <lifetime>36000</lifetime> 29 </resource-caching> 30 31 <style-caching> 32 <lifetime>900</lifetime> 33 </style-caching> 34 35 <view id="/create_relation_search_document_popup.xhtml"> 36 <theme>default/popup</theme> 37 </view> 38 <view id="/user_dashboard.xhtml"> 39 <theme>default/user_dashboard</theme> 40 </view> 41 <view id="/view_calendar.xhtml"> 42 <perspective>view_calendar</perspective> 43 </view> 44 <view id="/print.xhtml"> 45 <perspective>print</perspective> 46 </view> 47 </application> 48 </extension> 49 --> 50 51 <extension target="org.nuxeo.theme.services.ThemeService" 52 point="views"> 53 <view name="book listing fragment"> 54 <format-type>widget</format-type> 55 <class>org.nuxeo.theme.jsf.views.JSFView</class> 56 <template>incl/book_listing_fragment.xhtml</template> 57 </view> 9 58 </extension> 10 59
