portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlest...@apache.org
Subject svn commit: r227128 - in /portals/jetspeed-2/trunk/components/portal-site/src/test/JETSPEED-INF: ./ spring/ spring/test-spring.xml test-spring.xml
Date Wed, 03 Aug 2005 00:28:28 GMT
Author: dlestrat
Date: Tue Aug  2 17:28:26 2005
New Revision: 227128

URL: http://svn.apache.org/viewcvs?rev=227128&view=rev
Log:
http://issues.apache.org/jira/browse/JS2-281

Added:
    portals/jetspeed-2/trunk/components/portal-site/src/test/JETSPEED-INF/
      - copied from r226947, portals/jetspeed-2/trunk/components/portal-site/src/test/META-INF/
    portals/jetspeed-2/trunk/components/portal-site/src/test/JETSPEED-INF/spring/
    portals/jetspeed-2/trunk/components/portal-site/src/test/JETSPEED-INF/spring/test-spring.xml
Removed:
    portals/jetspeed-2/trunk/components/portal-site/src/test/JETSPEED-INF/test-spring.xml

Added: portals/jetspeed-2/trunk/components/portal-site/src/test/JETSPEED-INF/spring/test-spring.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/portal-site/src/test/JETSPEED-INF/spring/test-spring.xml?rev=227128&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/components/portal-site/src/test/JETSPEED-INF/spring/test-spring.xml
(added)
+++ portals/jetspeed-2/trunk/components/portal-site/src/test/JETSPEED-INF/spring/test-spring.xml
Tue Aug  2 17:28:26 2005
@@ -0,0 +1,131 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
+
+<!--
+Copyright 2005 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.
+-->
+
+<!-- Portal Site Test Spring Configuration-->
+<beans>
+  
+  <!-- IDGenerator -->
+  <bean id="IdGenerator" 
+  	   class="org.apache.jetspeed.idgenerator.JetspeedIdGenerator" init-method="start" destroy-method="stop"
>
+  	   <!-- ID Start value -->
+  	   <constructor-arg index="0"><value>65536</value></constructor-arg>
+  	   <!-- ID Prefix -->
+  	   <constructor-arg index="1"><value>P-</value></constructor-arg>
+  	   <!-- ID Suffix -->
+  	   <constructor-arg index="2"><value></value></constructor-arg>
+  </bean>
+  
+  <!-- PageFileCache -->
+  <bean id="PageFileCache" 
+  	   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>10</value></constructor-arg>
+  	   <!-- Cache size -->
+  	   <constructor-arg index="1"><value>100</value></constructor-arg>
 	   
+  </bean>
+    
+  <!-- DocumentHandlerFactory -->
+  <bean id="PsmlDocumentHandler"      
+       class="org.apache.jetspeed.page.document.CastorFileSystemDocumentHandler" >   
     
+       <constructor-arg index="0"><value>/JETSPEED-INF/castor/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>target/testdata/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>/JETSPEED-INF/castor/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>target/testdata/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>/JETSPEED-INF/castor/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>target/testdata/pages</value></constructor-arg>
+       <constructor-arg index="4" ><ref bean="PageFileCache"/></constructor-arg>
+  </bean>
+  
+  <bean id="PageSecurityDocumentHandler"       
+       class="org.apache.jetspeed.page.document.CastorFileSystemDocumentHandler" >   
     
+       <constructor-arg index="0"><value>/JETSPEED-INF/castor/page-mapping.xml</value></constructor-arg>
+       <constructor-arg index="1"><value>page.security</value></constructor-arg>
+       <constructor-arg index="2" ><value>org.apache.jetspeed.om.page.PageSecurity</value></constructor-arg>
      
+       <constructor-arg index="3" ><value>target/testdata/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>        
+          <entry key="page.security">
+            <ref bean="PageSecurityDocumentHandler" />
+          </entry>        
+        </map>
+       </constructor-arg>
+  </bean>
+  
+  <!-- FolderHandler -->
+  <bean id="FolderHandler"         
+       class="org.apache.jetspeed.page.document.FileSystemFolderHandler" >         
+       <constructor-arg index="0"><value>target/testdata/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>
+       <constructor-arg index="3"><ref bean="PageFileCache"/></constructor-arg>
       
+       <!-- permissions security enabled flag, default=false -->
+       <constructor-arg index="4"><value>false</value></constructor-arg>
+       <!-- constraints security enabled flag, default=true -->
+       <constructor-arg index="5"><value>false</value></constructor-arg>
+  </bean>
+    
+  <!-- PortalSite -->
+  <bean id="org.apache.jetspeed.portalsite.PortalSite" 
+       name="portalSite"
+       class="org.apache.jetspeed.portalsite.impl.PortalSiteImpl">         
+       <constructor-arg index="0"><ref bean="pageManager"/></constructor-arg>
+  </bean>
+    
+</beans>



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message