incubator-graffito-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clomb...@apache.org
Subject svn commit: r164134 - in /incubator/graffito/trunk/jetspeed2-deploy/src/assembly: jetspeed-spring.xml security-managers.xml
Date Thu, 21 Apr 2005 22:08:19 GMT
Author: clombart
Date: Thu Apr 21 15:08:18 2005
New Revision: 164134

URL: http://svn.apache.org/viewcvs?rev=164134&view=rev
Log:
work on the permission management

Added:
    incubator/graffito/trunk/jetspeed2-deploy/src/assembly/jetspeed-spring.xml
    incubator/graffito/trunk/jetspeed2-deploy/src/assembly/security-managers.xml

Added: incubator/graffito/trunk/jetspeed2-deploy/src/assembly/jetspeed-spring.xml
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/jetspeed2-deploy/src/assembly/jetspeed-spring.xml?rev=164134&view=auto
==============================================================================
--- incubator/graffito/trunk/jetspeed2-deploy/src/assembly/jetspeed-spring.xml (added)
+++ incubator/graffito/trunk/jetspeed2-deploy/src/assembly/jetspeed-spring.xml Thu Apr 21
15:08:18 2005
@@ -0,0 +1,557 @@
+<?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>
+   
+   <!-- Commons configuration object generated from jetspeed.properties -->
+   <bean id="portal_configuration"
+      class="org.apache.commons.configuration.PropertiesConfiguration">
+    <constructor-arg>
+      <value>${applicationRoot}/WEB-INF/conf/jetspeed.properties</value>
+    </constructor-arg>
+  </bean>  
+  
+  <!-- ServletConfig -->
+    <bean id="javax.servlet.ServletConfig"
+        class="org.apache.jetspeed.components.factorybeans.ServletConfigFactoryBean"
+  />             
+
+
+   
+  <!-- Portlet Services  -->
+  <bean id="PortalServices" 
+  	   class="org.apache.jetspeed.services.JetspeedPortletServices" >
+  	   <constructor-arg>
+  	   	<map>
+                  <entry key="PermissionManager">
+		        <ref bean="org.apache.jetspeed.security.PermissionManager"/>
+	           </entry>
+		   <entry key="ContentServer"><ref bean="org.apache.portals.graffito.ContentServerService"/></entry><entry
key="ContentModel"><ref bean="org.apache.portals.graffito.ContentModelService"/></entry>
 	   	  <entry key="PortletRegistryComponent">
+  	   	  	<ref bean="org.apache.jetspeed.components.portletregistry.PortletRegistry" />
+  	   	  </entry>
+  	   	  <entry key="SearchComponent">
+  	   	  	<ref bean="org.apache.jetspeed.search.SearchEngine"/>
+  	   	  </entry>
+  	   	  <entry key="PAM">
+  	   	  	<ref bean="PAM" />
+  	   	  </entry>		  
+  	   	  <entry key="UserManager">
+  	   	    <ref bean="org.apache.jetspeed.security.UserManager"/>
+  	   	  </entry>
+  	   	  <entry key="PageManager">
+  	   	    <ref bean="org.apache.jetspeed.page.PageManager"/>
+  	   	  </entry>
+  	   	  <entry key="RoleManager">
+  	   	    <ref bean="org.apache.jetspeed.security.RoleManager"/>
+  	   	  </entry>
+  	   	  <entry key="GroupManager">
+  	   	    <ref bean="org.apache.jetspeed.security.GroupManager"/>
+  	   	  </entry>  	
+  	   	  <entry key="Profiler">
+  	   	  	<ref bean="org.apache.jetspeed.profiler.Profiler"/>
+  	   	  </entry>   	  
+  	   	  <entry key="SSO">
+  	   	  	<ref bean="org.apache.jetspeed.sso.SSOProvider"/>
+  	   	  </entry>   	  
+  	   	  <entry key="EntityAccessor">
+  	   	  	 <ref bean='org.apache.jetspeed.components.portletentity.PortletEntityAccessComponent'/>
+  	   	  </entry>
+          <!-- ApplicationServerManager currently only supported for Tomcat. Comment out
for others like JBoss -->
+          <entry key="ApplicationServerManager">
+            <ref bean="org.apache.jetspeed.tools.pamanager.servletcontainer.ApplicationServerManager"/>
+          </entry>
+          <entry key="PortletFactory">
+            <ref bean="portletFactory"/>
+          </entry>
+          <entry key="DeploymentManager">
+            <ref bean="deploymentManager"/>
+          </entry>
+  	   	</map>
+  	   </constructor-arg>
+  </bean>
+  
+  <!-- Template Locators -->
+  <bean id="TemplateLocator" 
+  	   class="org.apache.jetspeed.locator.JetspeedTemplateLocator" 
+  	   init-method="start" destroy-method="stop" 
+   >
+  	   <constructor-arg>
+  	   	 <list>
+            <value>${applicationRoot}/WEB-INF/templates</value>         
+         </list>
+  	   </constructor-arg>
+  	   <constructor-arg><value>${applicationRoot}</value></constructor-arg>
+  </bean>
+  
+  <bean id="DecorationLocator" 
+  	   class="org.apache.jetspeed.locator.JetspeedTemplateLocator" 
+  	   init-method="start" destroy-method="stop"  
+  >
+  	   <constructor-arg>
+  	   	 <list>
+            <value>${applicationRoot}/WEB-INF/decorations</value>         
+         </list>
+  	   </constructor-arg>
+  	   <constructor-arg><value>${applicationRoot}</value></constructor-arg>
+  </bean>
+  
+  <!-- ID Generator -->
+  <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>
+  
+  <!-- Page File Cache -->
+  <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>
+    
+  <!-- Portlet Registry DAO-->
+  <bean id="portletRegistryImpl" class="org.apache.jetspeed.components.portletregistry.PersistenceBrokerPortletRegistry"
init-method="init">
+    	<constructor-arg>
+    		<value>META-INF/registry_repository.xml</value>
+    	</constructor-arg>
+    </bean>
+		    
+	<bean id="org.apache.jetspeed.components.portletregistry.PortletRegistry"
+		  name="portletRegistry"
+		  parent="baseTransactionProxy" >
+		<property name="proxyInterfaces">
+			<value>org.apache.jetspeed.components.portletregistry.PortletRegistry</value>
+		</property>
+
+		<property name="target"> 
+			<ref bean="portletRegistryImpl"/>
+		</property>
+		<property name="transactionAttributes">
+			<props>				
+				<prop key="register*">PROPAGATION_REQUIRED,-org.apache.jetspeed.components.portletregistry.RegistryException</prop>
+				<prop key="remove*">PROPAGATION_REQUIRED,-org.apache.jetspeed.components.portletregistry.RegistryException</prop>
+				<prop key="update*">PROPAGATION_REQUIRED,-org.apache.jetspeed.components.portletregistry.RegistryException</prop>
+				<prop key="save*">PROPAGATION_REQUIRED,-org.apache.jetspeed.components.portletregistry.RegistryException</prop>
+				<prop key="*">PROPAGATION_SUPPORTS</prop>
+			</props>
+		</property>
+	</bean>
+  
+  <!-- Portlet Entity Access DAO-->
+  <!--
+  <bean id="systemCache" class="org.apache.jetspeed.cache.general.SimpleHashMapCache"
/>
+     
+     <bean id="systemCachingInterceptor" class="org.apache.jetspeed.components.interceptors.CachingInterceptor"
>
+    	<constructor-arg>
+    		<ref bean="systemCache"/>
+    	</constructor-arg>
+     </bean>
+    
+    <bean id="systemRemoveFromCacheInterceptor" class="org.apache.jetspeed.components.interceptors.RemoveFromCacheInterceptor"
>
+    	<constructor-arg>
+    		<ref bean="systemCache"/>
+    	</constructor-arg>
+    </bean>   	
+    
+    <bean id="portletEntityCachingAdvisor" class="org.springframework.aop.support.RegexpMethodPointcutAdvisor">
+        <property name="advice">
+             <ref bean="systemCachingInterceptor"/>
+        </property>
+        <property name="patterns">
+         <list>
+            <value>.*getPortletEntity.*</value>
+        </list>
+       </property>
+    </bean>
+    
+    <bean id="portletEntityRemoveFromCacheAdvisor" class="org.springframework.aop.support.RegexpMethodPointcutAdvisor">
+        <property name="advice">
+             <ref bean="systemRemoveFromCacheInterceptor"/>
+        </property>
+        <property name="patterns">
+         <list>
+            <value>.*removePortletEntity.*</value>
+        </list>
+       </property>
+    </bean>
+    
+    -->
+    <!--
+	  - PortletEntity business object: OJB implementation, as an inner bean wrapped
+		- by an outer transactional proxy. The two bean definitions could have been separate,
+		- but this is cleaner as there is no need to ever access the unwrapped object.
+    -->
+
+    <bean id="portletEntityAccessImpl" class="org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess"
>
+    	<constructor-arg>
+    		<ref bean="portletRegistry"/>    		
+    	</constructor-arg>
+    </bean>
+    
+
+	<bean id="org.apache.jetspeed.components.portletentity.PortletEntityAccessComponent"
parent="baseTransactionProxy" 
+		name="portletEntityAccess" >
+		<property name="proxyInterfaces">
+			<value>org.apache.jetspeed.components.portletentity.PortletEntityAccessComponent</value>
+		</property>
+		<property name="target">
+			<ref bean="portletEntityAccessImpl"/>
+		</property>
+		<!--
+		<property name="preInterceptors">
+			<list>
+				<ref bean="portletEntityCachingAdvisor"/>
+				<ref bean="portletEntityRemoveFromCacheAdvisor"/>
+			</list>
+		</property>
+		-->
+		<property name="transactionAttributes">
+			<props>				
+				<prop key="remove*">PROPAGATION_REQUIRED</prop>
+				<prop key="store*">PROPAGATION_REQUIRED,-org.apache.jetspeed.components.portletentity.PortletEntityNotStoredException</prop>
+				<prop key="*">PROPAGATION_SUPPORTS</prop>
+			</props>
+		</property>
+	</bean>
+      
+  <!-- Capabilities DAO-->
+  <bean id="capabilitiesImpl" class="org.apache.jetspeed.capabilities.impl.JetspeedCapabilities"
init-method="init">
+    	<constructor-arg>
+    		<value>META-INF/capabilities-ojb.xml</value>
+    	</constructor-arg>
+    </bean>
+  
+  <!-- Capabilities -->  
+  <bean id="org.apache.jetspeed.capabilities.Capabilities" 
+        name="capabilities"
+        parent="baseTransactionProxy"        
+  >  	   
+		<property name="proxyInterfaces">
+			<value>org.apache.jetspeed.capabilities.Capabilities</value>
+		</property>
+		<property name="target">
+			<ref bean="capabilitiesImpl"/>
+		</property>
+		<property name="transactionAttributes">
+			<props>				
+				<prop key="*">PROPAGATION_SUPPORTS</prop>
+			</props>
+		</property>		  	   
+  </bean>
+  
+  
+  <!-- SSO Implementation -->
+   <bean id="PersistenceBrokerSSOProvider" 
+  	   class="org.apache.jetspeed.sso.impl.PersistenceBrokerSSOProvider"
+  	   init-method="init"
+   >  	   
+  	   <constructor-arg index="0"><value>META-INF/sso_repository.xml</value></constructor-arg>
 	    	     	   
+  </bean>
+   
+  <bean id="org.apache.jetspeed.sso.SSOProvider" parent="baseTransactionProxy" 
+  	name="ssoProvider"
+  	>
+		<property name="proxyInterfaces">
+			<value>org.apache.jetspeed.sso.SSOProvider</value>
+		</property>
+
+		<property name="target"> 
+			<ref bean="PersistenceBrokerSSOProvider"/>
+		</property>
+		<property name="transactionAttributes">
+			<props>
+				<prop key="addSite">PROPAGATION_REQUIRED</prop>
+				<prop key="removeSite">PROPAGATION_REQUIRED</prop>
+				<prop key="addCredentialsForSite">PROPAGATION_REQUIRED</prop>
+				<prop key="updateCredentialsForSite">PROPAGATION_REQUIRED</prop>
+				<prop key="removeCredentialsForSite">PROPAGATION_REQUIRED</prop>
+				<prop key="*">PROPAGATION_SUPPORTS</prop>
+			</props>
+		</property>
+		
+  </bean> 
+ 
+ <!-- Preferences Implementation -->
+   <bean id="PreferencesProviderImpl" 
+  	   class="org.apache.jetspeed.prefs.impl.PersistenceBrokerPreferencesProvider"
+  	   init-method="init"
+   >  	   
+  	   <constructor-arg index="0"><value>META-INF/prefs_repository.xml</value></constructor-arg>
 	   
+  	   <constructor-arg type="boolean" index="1"><value>false</value></constructor-arg>
 	     	   
+  </bean>
+  
+  
+  <bean id="org.apache.jetspeed.prefs.PreferencesProvider" parent="baseTransactionProxy"

+  	name="prefsProvider"
+  	>
+		<property name="proxyInterfaces">
+			<value>org.apache.jetspeed.prefs.PreferencesProvider</value>
+		</property>
+
+		<property name="target"> 
+			<ref bean="PreferencesProviderImpl"/>
+		</property>
+		<property name="transactionAttributes">
+			<props>
+				<prop key="createNode*">PROPAGATION_REQUIRED</prop>
+				<prop key="storeNode*">PROPAGATION_REQUIRED</prop>
+				<prop key="removeNode*">PROPAGATION_REQUIRED</prop>
+				<prop key="*">PROPAGATION_SUPPORTS</prop>
+			</props>
+		</property>
+  </bean>
+  
+  <!-- PreferencesFaactory implementation -->
+  
+  <bean id="java.util.prefs.PreferencesFactory" 
+  	class="org.apache.jetspeed.prefs.impl.PreferencesFactoryImpl"
+  	name="prefsFactory" init-method="init"
+  	>
+  		<property name="prefsProvider"> 
+			<ref bean="prefsProvider"/>
+		</property>	
+  </bean>
+  
+  
+   <!-- Property Manager -->
+   <bean id="PropertyManagerImpl" 
+  	   class="org.apache.jetspeed.prefs.impl.PropertyManagerImpl"
+  >  	   
+      <!-- We don't use the Tx proxied prefs provider so that we can demarcate Txs
+      	   exclusively for the PropertyManager -->
+  	   <constructor-arg ><ref bean="PreferencesProviderImpl"/></constructor-arg>
 	   
+  </bean>
+  
+  
+  <bean id="org.apache.jetspeed.prefs.PropertyManager" parent="baseTransactionProxy" 
+  	     name="propertyManager"
+  	     >
+		<property name="proxyInterfaces">
+			<value>org.apache.jetspeed.prefs.PropertyManager</value>
+		</property>
+
+		<property name="target"> 
+			<ref bean="PropertyManagerImpl"/>
+		</property>		
+		<property name="transactionAttributes">
+			<props>				
+				<prop key="add*">PROPAGATION_REQUIRED</prop>
+				<prop key="remove*">PROPAGATION_REQUIRED</prop>
+				<prop key="update*">PROPAGATION_REQUIRED</prop>
+				<prop key="*">PROPAGATION_SUPPORTS</prop>
+			</props>
+		</property>		
+  </bean>
+      
+  <!-- User Info -->
+  <bean id="org.apache.jetspeed.userinfo.UserInfoManager" 
+  	   class="org.apache.jetspeed.userinfo.impl.UserInfoManagerImpl"
+  >
+     <constructor-arg ><ref bean="org.apache.jetspeed.security.UserManager"/></constructor-arg>
 	     	   
+     <constructor-arg ><ref bean="org.apache.jetspeed.components.portletregistry.PortletRegistry"/></constructor-arg>
+
+  </bean>
+  
+  <!--  Navigational State component -->
+  <bean id="org.apache.jetspeed.container.state.NavigationalStateComponent" 
+  	   class="org.apache.jetspeed.container.state.impl.JetspeedNavigationalStateComponent"
+  >  	   
+       <constructor-arg index="0"><value>org.apache.jetspeed.container.state.impl.SessionFullNavigationalState</value></constructor-arg>
+       <constructor-arg index="1"><value>org.apache.jetspeed.container.url.impl.PathInfoEncodingPortalURL</value></constructor-arg>
+       <constructor-arg index="2"><value>org.apache.jetspeed.container.state.impl.JetspeedNavigationalStateCodec</value></constructor-arg>
      
+  </bean>
+  
+  <!-- Request Context -->
+   <bean id="org.apache.jetspeed.request.RequestContextComponent" 
+  	   class="org.apache.jetspeed.request.JetspeedRequestContextComponent"
+  >  	   
+  	   <constructor-arg ><value>org.apache.jetspeed.request.JetspeedRequestContext</value></constructor-arg>
+  	   <constructor-arg ><ref bean="org.apache.jetspeed.userinfo.UserInfoManager"
/></constructor-arg>
+  </bean>
+  
+  <!-- Portlet Window Component -->
+  <bean id="org.apache.jetspeed.container.window.PortletWindowAccessor" 
+  	   class="org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl"
+  >  	   
+  	   <constructor-arg ><ref bean="org.apache.jetspeed.components.portletentity.PortletEntityAccessComponent"
/></constructor-arg>
+  </bean>
+  
+  <!-- Pluto Portlet Container -->
+  <bean id="Pluto" class="org.apache.pluto.PortletContainerImpl" />  	   
+  
+  <!-- Jetspeed 2's wrapper around Pluto -->
+  <bean id="org.apache.pluto.PortletContainer" 
+  	   class="org.apache.jetspeed.container.JetspeedPortletContainerWrapper"  >  	   
+  	   <constructor-arg ><ref bean="Pluto" /></constructor-arg>
+  </bean>
+  
+  <!-- Portlet Renderer -->
+  <bean id="org.apache.jetspeed.aggregator.PortletRenderer" 
+  	   class="org.apache.jetspeed.aggregator.impl.PortletRendererImpl"  
+  	   init-method="start" destroy-method="stop"
+  >  	   
+  	   <constructor-arg ><ref bean="org.apache.pluto.PortletContainer" /></constructor-arg>
+  	   <constructor-arg ><ref bean="org.apache.jetspeed.container.window.PortletWindowAccessor"
/></constructor-arg>
+  </bean>
+  
+  <!-- Portlet Factory -->
+  <bean id="portletFactory" 
+  	   class="org.apache.jetspeed.factory.JetspeedPortletFactory"  
+  >  	   
+  </bean>
+  	   
+  <!-- Aggregation: Page -->
+  <bean id="org.apache.jetspeed.aggregator.PageAggregator" 
+  	   class="org.apache.jetspeed.aggregator.impl.PageAggregatorImpl"  >  	   
+  	   <constructor-arg index="0" ><ref bean="org.apache.jetspeed.aggregator.PortletRenderer"
/></constructor-arg>
+  	   <!-- Aggregation Strategies:
+  	   	    0 = PageAggregatorImpl.STRATEGY_SEQUENTIAL
+  	   	    1 = PageAggregatorImpl.STRATEGY_PARALLEL
+  	   	 -->
+  	   <constructor-arg index="1"><value>0</value></constructor-arg>
+  	   <constructor-arg index="2">
+  	   	<list>
+  	   		<value>portlet/{mediaType}/jetspeed</value>
+  	   		<value>portlet/{mediaType}</value>
+  	   		<value>layout/{mediaType}</value>
+  	   		<value>generic/{mediaType}</value>  	   		
+  	   		<value>{mediaType}</value>  	   		
+  	   	</list>
+  	   </constructor-arg>
+  </bean>
+  
+  <!-- Aggregation: Portlet -->
+  <bean id="org.apache.jetspeed.aggregator.PortletAggregator" 
+  	   class="org.apache.jetspeed.aggregator.impl.PortletAggregatorImpl"  >  	   
+  	   <constructor-arg  ><ref bean="org.apache.jetspeed.aggregator.PortletRenderer"
/></constructor-arg>
+  </bean>
+  
+  <!-- Application Server Manager for Tomcat. Comment out for others like JBoss
+  	   Provides hooks into the application server to help us deploy portlet applications
+  	   as web application into that server.  This manager is for Tomcat 5
+  	-->
+
+  <bean id="org.apache.jetspeed.tools.pamanager.servletcontainer.ApplicationServerManager"

+  	   class="org.apache.jetspeed.tools.pamanager.servletcontainer.TomcatManager" 
+  	   init-method="start" destroy-method="stop"
+  >  	   
+       <constructor-arg index="0"><value>${autodeployment.catalina.base}</value></constructor-arg>
+       <constructor-arg index="1"><value>${autodeployment.catalina.engine}</value></constructor-arg>
+  	   <constructor-arg index="2"><value>${autodeployment.server}</value></constructor-arg>
+  	   <constructor-arg index="3"><value>${autodeployment.port}</value></constructor-arg>
+  	   <constructor-arg index="4"><value>${autodeployment.user}</value></constructor-arg>
+  	   <constructor-arg index="5"><value>${autodeployment.password}</value></constructor-arg>
+  </bean>
+ 
+  <bean id="deployFactory" class="org.apache.jetspeed.tools.deploy.JetspeedDeployFactory"/>
+  <bean id="PAM" 
+  	   class="org.apache.jetspeed.tools.pamanager.PortletApplicationManager"
+  >  	   
+  	   <constructor-arg><ref bean="portletFactory"/></constructor-arg>
+  	   <constructor-arg><ref bean="org.apache.jetspeed.components.portletregistry.PortletRegistry"/></constructor-arg>
+  	   <constructor-arg><ref bean="org.apache.jetspeed.components.portletentity.PortletEntityAccessComponent"/></constructor-arg>
+  	   <constructor-arg><ref bean="org.apache.jetspeed.container.window.PortletWindowAccessor"/></constructor-arg>
+  	   <property name="searchEngine"><ref bean="org.apache.jetspeed.search.SearchEngine"/></property>
+   <!-- optional configuration for automatic creation of not yet existing roles as defined
in the deployed web.xml:
+       <property name="roleManager"><ref bean="org.apache.jetspeed.security.RoleManager"/></property>
+       <property name="autoCreateRoles"><value>true</value></property>
+   -->      
+  </bean>
+
+  <!-- Portlet Application and Decorator deployment event listeners -->
+  <bean id="portletAppDeploymentListener" 
+  	   class="org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener"   	   
+  > 	
+  	   <constructor-arg index="0"><ref bean="PAM"/></constructor-arg>
+  	   <constructor-arg index="1"><ref bean="org.apache.jetspeed.components.portletregistry.PortletRegistry"/></constructor-arg>
+       <constructor-arg index="2"><value>${autodeployment.target.dir}</value></constructor-arg>
+       <constructor-arg index="3"><value>${applicationRoot}/WEB-INF/apps</value></constructor-arg>
+       <!-- strip commons-logging and/or log4j jars from war files: for JBoss set this
to true -->
+       <constructor-arg index="4"><value>false</value></constructor-arg>
+  </bean>
+  <bean id="decoratorDeploymentRegistry" 
+  	   class="org.apache.jetspeed.deployment.simpleregistry.impl.InMemoryRegistryImpl"
+  >  	   
+  </bean>
+  <bean id="decoratorDeploymentListener" 
+  	   class="org.apache.jetspeed.deployment.impl.DeployDecoratorEventListener"   	   
+  > 	
+       <constructor-arg ><value>${applicationRoot}/WEB-INF/decorations</value></constructor-arg>
+  </bean>
+
+  <!-- The deployment manager watches a specific staging directory for
+  	   deploying components.  What components get deployed depend of
+  	   DeploymentEventListeners registered to it.
+   -->
+  <bean id="deploymentManager" 
+  	   class="org.apache.jetspeed.deployment.impl.StandardDeploymentManager" 
+  	   init-method="start" destroy-method="stop"
+  >  	   
+  	   <constructor-arg ><value>${autodeployment.staging.dir}</value></constructor-arg>
+       <constructor-arg type="long" ><value>${autodeployment.delay}</value></constructor-arg>
+       <constructor-arg >
+         <list>
+            <ref bean="portletAppDeploymentListener"/>      
+            <ref bean="decoratorDeploymentListener"/>      
+         </list>
+       </constructor-arg>
+  </bean>
+  
+  <!--SEARCH COMPONENT-->
+  <bean id="org.apache.jetspeed.search.HandlerFactory"
+  	class="org.apache.jetspeed.search.handlers.HandlerFactoryImpl"
+  >
+  	<constructor-arg>
+  		<map>
+  			<entry key="java.net.URL"><value>org.apache.jetspeed.search.handlers.URLToDocHandler</value></entry>
+  			<entry key="org.apache.jetspeed.om.portlet.impl.PortletApplicationDefinitionImpl"><value>org.apache.jetspeed.search.handlers.pam.PortletApplicationHandler</value></entry>
+  			<entry key="org.apache.jetspeed.om.portlet.impl.PortletDefinitionImpl"><value>org.apache.jetspeed.search.handlers.pam.PortletDefinitionHandler</value></entry>
+  		</map>
+	</constructor-arg>
+  </bean>
+  
+  
+  <bean id="org.apache.jetspeed.search.SearchEngine"
+  	class="org.apache.jetspeed.search.lucene.SearchEngineImpl"
+  >
+  	<constructor-arg index="0"><value>${applicationRoot}/WEB-INF/search_index</value></constructor-arg>
+  	<constructor-arg index="1"><null /></constructor-arg>
+  	<constructor-arg type="boolean"><value>true</value></constructor-arg>
+  	<constructor-arg><ref bean="org.apache.jetspeed.search.HandlerFactory"/></constructor-arg>
+  	
+  </bean>
+
+  
+  
+  <!-- Adds jetspeed.properties as our configuration object to support ${...} vars -->
+  <!-- ${applicationRoot} is acutally set as a system property via the SpringEngine -->
+
+  <bean id="placeholderConfig"
+      class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
+    <property name="location"><value>file:///${applicationRoot}/WEB-INF/conf/jetspeed.properties</value></property>
+  </bean>  
+  
+</beans>

Added: incubator/graffito/trunk/jetspeed2-deploy/src/assembly/security-managers.xml
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/jetspeed2-deploy/src/assembly/security-managers.xml?rev=164134&view=auto
==============================================================================
--- incubator/graffito/trunk/jetspeed2-deploy/src/assembly/security-managers.xml (added)
+++ incubator/graffito/trunk/jetspeed2-deploy/src/assembly/security-managers.xml Thu Apr 21
15:08:18 2005
@@ -0,0 +1,66 @@
+<?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>
+  
+  <!-- Security: User Manager -->
+  <bean id="org.apache.jetspeed.security.UserManager" 
+  	   class="org.apache.jetspeed.security.impl.UserManagerImpl"
+  >  	   
+  	   <constructor-arg ><ref bean="org.apache.jetspeed.security.SecurityProvider"/></constructor-arg>
+  </bean>
+  
+   <!-- Security: Group Manager -->
+  <bean id="org.apache.jetspeed.security.GroupManager" 
+  	   class="org.apache.jetspeed.security.impl.GroupManagerImpl"
+  >  	   
+  	   <constructor-arg ><ref bean="org.apache.jetspeed.security.SecurityProvider"/></constructor-arg>
  
+  </bean>
+  
+  <!-- Security: Role Manager -->
+  <bean id="org.apache.jetspeed.security.RoleManager" 
+  	   class="org.apache.jetspeed.security.impl.RoleManagerImpl"
+  >  	   
+  	   <constructor-arg ><ref bean="org.apache.jetspeed.security.SecurityProvider"/></constructor-arg>
  
+  </bean>
+  
+  <!-- Security: Permission Manager -->
+  <bean id="org.apache.jetspeed.security.impl.PermissionManagerImpl" 
+  	   class="org.apache.portals.graffito.impl.ContentPermissionServiceImpl"  />
+  
+  <bean id="org.apache.jetspeed.security.PermissionManager" parent="baseTransactionProxy"

+		name="permissionManager" >
+		<property name="proxyInterfaces">
+			<value>org.apache.portals.graffito.ContentPermissionService</value>			
+		</property>
+		<property name="target">
+			<ref bean="org.apache.jetspeed.security.impl.PermissionManagerImpl"/>
+		</property>
+		<property name="transactionAttributes">
+			<props>				
+				<prop key="remove*">PROPAGATION_REQUIRED</prop>
+				<prop key="grant*">PROPAGATION_REQUIRED</prop>
+				<prop key="revoke*">PROPAGATION_REQUIRED</prop>
+				<prop key="grant*">PROPAGATION_REQUIRED</prop>
+				<prop key="add*">PROPAGATION_REQUIRED</prop>
+				<prop key="*">PROPAGATION_SUPPORTS</prop>
+			</props>
+		</property>
+   </bean>
+
+
+</beans>



Mime
View raw message