Changeset 29506

Show
Ignore:
Timestamp:
01/22/08 10:06:29 (11 months ago)
Author:
bdelbosc
Message:

update nuxeo-archetype-simple using latest org.nuxeo.project.sample

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/pom.xml

    r25864 r29506  
    33  <groupId>org.nuxeo.archetypes</groupId> 
    44  <artifactId>nuxeo-archetype-simple</artifactId> 
    5   <version>5.2-SNAPSHOT</version> 
     5  <version>5.1.3-SNAPSHOT</version> 
    66  <packaging>jar</packaging> 
    77  <name>Simple nuxeo 5 archetype</name> 
  • org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/META-INF/archetype.xml

    r25864 r29506  
    22  <id>nuxeo-archetype-simple</id> 
    33  <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> 
    715  </sources> 
    816  <resources> 
     
    1422    <!-- OSGI INF --> 
    1523    <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> 
    1627    <resource>src/main/resources/OSGI-INF/core-types-contrib.xml</resource> 
    1728    <resource>src/main/resources/OSGI-INF/deployment-fragment.xml</resource> 
    1829    <resource>src/main/resources/OSGI-INF/directories-contrib.xml</resource> 
    19     <resource>src/main/resources/OSGI-INF/ecm-types-contrib.xml</resource> 
    2030    <resource>src/main/resources/OSGI-INF/event-listener-contrib.xml</resource> 
     31    <resource>src/main/resources/OSGI-INF/filemanager-contrib.xml</resource> 
    2132    <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> 
    2339    <resource>src/main/resources/OSGI-INF/l10n/messages_en.properties</resource> 
    2440    <resource>src/main/resources/OSGI-INF/l10n/messages_fr.properties</resource> 
    2541    <!-- 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> 
    3054    <resource>src/main/resources/seam.properties</resource> 
    3155  </resources> 
  • org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/build.xml

    r25864 r29506  
    11<?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}" /> 
    35 
    46  <!-- Create a build.properties file from build.properties.sample 
    57       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" /> 
    911 
    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" /> 
    1214 
    1315  <!-- 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" /> 
    1719 
    1820  <condition property="osfamily-unix"> 
    19     <os family="unix"/> 
     21    <os family="unix" /> 
    2022  </condition> 
    2123  <condition property="osfamily-windows"> 
    22     <os family="windows"/> 
     24    <os family="windows" /> 
    2325  </condition> 
    2426 
    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" /> 
    2628 
    27   <target name="install" depends="install-unix,install-windows" description="Build"/> 
     29  <target name="install" depends="install-unix,install-windows" description="Build" /> 
    2830  <target name="install-unix" if="osfamily-unix"> 
    2931    <exec executable="mvn" failonerror="true"> 
     
    4244 
    4345  <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" /> 
    5047    <!-- Could copy other files to .../config too --> 
    5148  </target> 
    5249 
    5350  <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/" /> 
    5753    </copy> 
    5854  </target> 
  • org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/pom.xml

    r27395 r29506  
    1313 
    1414    <!-- Nuxeo 5.1 last released version --> 
     15 
    1516    <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> 
    1819 
    1920    <!-- 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> 
    2324    --> 
    2425  </properties> 
     
    9899      <type>ejb</type> 
    99100    </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> 
    100113 
    101114    <dependency> 
     
    109122      <artifactId>jboss-seam</artifactId> 
    110123      <scope>provided</scope> 
    111       <version>1.1.5</version> 
     124      <version>1.1.5.NX3</version> 
    112125    </dependency> 
    113126    <dependency> 
     
    123136      <version>3.0-RC8</version> 
    124137    </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> 
    125144  </dependencies> 
    126145</project> 
  • org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/META-INF/MANIFEST.MF

    r18419 r29506  
    1111 org.nuxeo.ecm.webapp.core 
    1212Nuxeo-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, 
    1415 OSGI-INF/lifecycle-contrib.xml, 
    1516 OSGI-INF/actions-contrib.xml, 
    1617 OSGI-INF/event-listener-contrib.xml, 
    1718 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  
    11<?xml version="1.0"?> 
    2 <component name="${package}.actions"> 
     2<component name="org.nuxeo.project.sample.actions"> 
    33 
    44  <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"> 
    88      <category>VIEW_ACTION_LIST</category> 
    9       <filter id="sample_filter"> 
     9      <filter id="book_filter"> 
    1010        <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> 
    1224        </rule> 
    1325      </filter> 
     
    1628 
    1729  <extension target="org.nuxeo.ecm.platform.actions.ActionService" point="filters"> 
    18     <filter id="rights"
     30    <filter id="rights" append="true"
    1931      <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> 
    3833      </rule> 
    3934    </filter> 
  • org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/core-types-contrib.xml

    r18419 r29506  
    11<?xml version="1.0"?> 
     2<component name="${package}.core-types"> 
    23 
    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" /> 
    77  </extension> 
    88 
    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" /> 
    1617    </doctype> 
    1718  </extension> 
  • org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/deployment-fragment.xml

    r18587 r29506  
    11<?xml version="1.0"?> 
    2  
    32<fragment> 
    43 
    54  <extension target="application#MODULE"> 
    6  
    75    <module> 
    86      <java>${bundle.fileName}</java> 
    97    </module> 
     8  </extension> 
    109 
     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> 
    1116  </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 
    1243 
    1344  <install> 
    1445 
    15     <!-- Unzip the war template --> 
     46    <!-- Unzip the war template --> 
    1647    <unzip from="${bundle.fileName}" to="/"> 
    1748      <include>nuxeo.war/**</include> 
    1849    </unzip> 
    1950 
    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" /> 
    2464 
    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"/> 
    3665  </install> 
    3766 
  • org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/directories-contrib.xml

    r22123 r29506  
    22<component name="${package}.directories"> 
    33 
    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"> 
    68      <schema>vocabulary</schema> 
     9      <idField>id</idField> 
     10 
    711      <dataSource>java:/nxsqldirectory</dataSource> 
    8       <table>sample_languages</table> 
    9       <idField>id</idField> 
    10       <autoincrementIdField>false</autoincrementIdField> 
     12      <table>book_keywords</table> 
    1113      <!-- 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> 
    1416    </directory> 
     17 
    1518  </extension> 
    1619 
  • org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/event-listener-contrib.xml

    r18419 r29506  
    11<?xml version="1.0"?> 
     2<component name="${package}.event-listeners"> 
    23 
    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" 
    66    point="listener"> 
    77 
    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> 
    1018 
    1119  </extension> 
  • org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/lifecycle-contrib.xml

    r18419 r29506  
    11<?xml version="1.0"?> 
     2<component name="${package}.lifecycles"> 
    23 
    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"> 
    426    <types> 
    43       <type name="Sample">sample</type> 
     7      <type name="Book">default</type> 
    448    </types> 
    459  </extension> 
  • org.nuxeo.archetypes/nuxeo-archetype-simple/trunk/src/main/resources/archetype-resources/src/main/resources/OSGI-INF/theme-contrib.xml

    r18419 r29506  
    11<?xml version="1.0"?> 
     2<component name="${package}.themes"> 
    23 
    3 <component name="${package}.theme"> 
    4  
     4  <!-- 
    55  <extension target="org.nuxeo.theme.services.ThemeService" point="themes"> 
    66    <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> 
    810    </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> 
    958  </extension> 
    1059