weaver      2004/09/03 06:28:30

  Modified:    portal/src/webapp/WEB-INF/assembly jetspeed-spring.xml
  Added:       portal/src/webapp/WEB-INF/assembly page-manager.xml
  Log:
  - Moved PageManager to its own assembly file.
  - Added assembly for Node/Document CMSish api
  
  Revision  Changes    Path
  1.10      +5 -11     
jakarta-jetspeed-2/portal/src/webapp/WEB-INF/assembly/jetspeed-spring.xml
  
  Index: jetspeed-spring.xml
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/portal/src/webapp/WEB-INF/assembly/jetspeed-spring.xml,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- jetspeed-spring.xml       6 Aug 2004 19:05:32 -0000       1.9
  +++ jetspeed-spring.xml       3 Sep 2004 13:28:30 -0000       1.10
  @@ -86,22 +86,16 @@
     
     <!-- Page File Cache -->
     <bean id="PageFileCache" 
  -        class="org.apache.jetspeed.cache.file.FileCache" >
  +        class="org.apache.jetspeed.cache.file.FileCache" 
  +        init-method="startFileScanner"
  +        destroy-method="stopFileScanner"
  +        >
           <!-- Scan rate for changes in cached files on the file system -->
  -        <constructor-arg index="0"><value>120</value></constructor-arg>
  +        <constructor-arg index="0"><value>10</value></constructor-arg>
           <!-- Cache size -->
           <constructor-arg index="1"><value>100</value></constructor-arg>         
     </bean>
     
  -  <!-- PageManager -->
  -  <bean id="org.apache.jetspeed.page.PageManager" 
  -        class="org.apache.jetspeed.page.impl.CastorXmlPageManager" 
init-method="start" destroy-method="stop">           
  -        <constructor-arg index="0"><ref bean="IdGenerator"/></constructor-arg>
  -        <constructor-arg index="1"><ref bean="PageFileCache"/></constructor-arg>
  -        <constructor-arg 
index="2"><value>${applicationRoot}/WEB-INF/pages</value></constructor-arg>            
  -  </bean>
  -  
  -
     <!-- Persistence Store -->
     <bean id="persistenceStoreTarget" 
           class="org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore"     
    
  
  
  
  1.1                  
jakarta-jetspeed-2/portal/src/webapp/WEB-INF/assembly/page-manager.xml
  
  Index: page-manager.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" 
"http://www.springframework.org/dtd/spring-beans.dtd";>
  <!--
  Copyright 2004 The Apache Software Foundation
  
  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.
  -->
  <beans>
        
    <bean id="PsmlDocumentHandler"        
           class="org.apache.jetspeed.page.document.CastorFileSystemDocumentHandler" > 
            
           <constructor-arg 
index="0"><value>/META-INF/page-mapping.xml</value></constructor-arg>
           <constructor-arg index="1"><value>.psml</value></constructor-arg>
           <constructor-arg index="2" 
><value>org.apache.jetspeed.om.page.Page</value></constructor-arg>           
           <constructor-arg index="3" 
><value>${applicationRoot}/WEB-INF/pages</value></constructor-arg>
           <constructor-arg index="4" ><ref bean="PageFileCache"/></constructor-arg>
    </bean>
    
    <bean id="LinkDocumentHandler"         
           class="org.apache.jetspeed.page.document.CastorFileSystemDocumentHandler" > 
            
           <constructor-arg 
index="0"><value>/META-INF/page-mapping.xml</value></constructor-arg>
           <constructor-arg index="1"><value>.link</value></constructor-arg>
           <constructor-arg index="2" 
><value>org.apache.jetspeed.om.page.Link</value></constructor-arg>           
           <constructor-arg index="3" 
><value>${applicationRoot}/WEB-INF/pages</value></constructor-arg>
           <constructor-arg index="4" ><ref bean="PageFileCache"/></constructor-arg>
    </bean>
    
    <bean id="FolderMetaDataDocumentHandler"       
           class="org.apache.jetspeed.page.document.CastorFileSystemDocumentHandler" > 
            
           <constructor-arg 
index="0"><value>/META-INF/page-mapping.xml</value></constructor-arg>
           <constructor-arg index="1"><value>folder.metadata</value></constructor-arg>
           <constructor-arg index="2" 
><value>org.apache.jetspeed.om.folder.FolderMetaData</value></constructor-arg>       
           <constructor-arg index="3" 
><value>${applicationRoot}/WEB-INF/pages</value></constructor-arg>
           <constructor-arg index="4" ><ref bean="PageFileCache"/></constructor-arg>
    </bean>
    
    <bean id="DocumentHandlerFactory"              
           class="org.apache.jetspeed.page.document.DocumentHandlerFactoryImpl" >      
    
          <constructor-arg>
                <map>
                  <entry key=".psml">
                        <ref bean="PsmlDocumentHandler" />
                  </entry>
                  <entry key=".link">
                        <ref bean="LinkDocumentHandler" />
                  </entry>      
                  <entry key="folder.metadata">
                        <ref bean="FolderMetaDataDocumentHandler" />
                  </entry>                
                </map>
           </constructor-arg>
    </bean>
    
    <bean id="FolderHandler"       
           class="org.apache.jetspeed.page.document.FileSystemFolderHandler" >         
    
           <constructor-arg 
index="0"><value>${applicationRoot}/WEB-INF/pages</value></constructor-arg>
           <constructor-arg index="1"><ref 
bean="DocumentHandlerFactory"/></constructor-arg>
           <constructor-arg index="2"><ref bean="PageFileCache"/></constructor-arg>    
    
    </bean>
        
        
    <!-- PageManager -->
    <bean id="org.apache.jetspeed.page.PageManager" 
           name="pageManager"
           class="org.apache.jetspeed.page.impl.CastorXmlPageManager">             
           <constructor-arg index="0"><ref bean="IdGenerator"/></constructor-arg>
           <constructor-arg index="1"><ref 
bean="DocumentHandlerFactory"/></constructor-arg>
           <constructor-arg index="2"><ref bean="FolderHandler"/></constructor-arg>
    </bean>
  
  </beans>
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to