You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2006/10/06 00:05:20 UTC

svn commit: r453404 - in /portals/jetspeed-2/trunk/src/webapp/WEB-INF/assembly: ajax-layout.xml mulitple-action.xml pipelines.xml

Author: taylor
Date: Thu Oct  5 15:05:20 2006
New Revision: 453404

URL: http://svn.apache.org/viewvc?view=rev&rev=453404
Log:
Two new features:

1. Create User Pages from Roles on first login feature
   The CreatePageValve creates a new user's home page from the user's role pages

2. Ajax Multi-action - contribution from David Gurney
   Execute n ajax actions in one request

Added:
    portals/jetspeed-2/trunk/src/webapp/WEB-INF/assembly/mulitple-action.xml
Modified:
    portals/jetspeed-2/trunk/src/webapp/WEB-INF/assembly/ajax-layout.xml
    portals/jetspeed-2/trunk/src/webapp/WEB-INF/assembly/pipelines.xml

Modified: portals/jetspeed-2/trunk/src/webapp/WEB-INF/assembly/ajax-layout.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/src/webapp/WEB-INF/assembly/ajax-layout.xml?view=diff&rev=453404&r1=453403&r2=453404
==============================================================================
--- portals/jetspeed-2/trunk/src/webapp/WEB-INF/assembly/ajax-layout.xml (original)
+++ portals/jetspeed-2/trunk/src/webapp/WEB-INF/assembly/ajax-layout.xml Thu Oct  5 15:05:20 2006
@@ -1,5 +1,20 @@
 <?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>
 
 <!-- AJAX Actions 
@@ -434,6 +449,9 @@
             <entry key="constraints">
                 <ref bean="AjaxSecurityConstraints"/>
             </entry>			                                    
+            <entry key="multiple">
+                <ref bean="AjaxMultipleAction"/>
+            </entry>
         </map>
     </constructor-arg>
     <constructor-arg index="1">

Added: portals/jetspeed-2/trunk/src/webapp/WEB-INF/assembly/mulitple-action.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/src/webapp/WEB-INF/assembly/mulitple-action.xml?view=auto&rev=453404
==============================================================================
--- portals/jetspeed-2/trunk/src/webapp/WEB-INF/assembly/mulitple-action.xml (added)
+++ portals/jetspeed-2/trunk/src/webapp/WEB-INF/assembly/mulitple-action.xml Thu Oct  5 15:05:20 2006
@@ -0,0 +1,61 @@
+<?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="AjaxMultipleActionTarget" -->
+    <bean id="AjaxMultipleAction"
+          class="org.apache.jetspeed.layout.impl.MultipleAction">
+        <constructor-arg index="0">
+            <ref bean="AjaxRequestService"/>
+        </constructor-arg>
+        <constructor-arg index="1">
+            <value>org/apache/jetspeed/layout/ajax-xml/multiaction.vm</value>
+        </constructor-arg>
+        <constructor-arg index="2">
+            <value>org/apache/jetspeed/layout/ajax-xml/multiactionerror.vm</value>
+        </constructor-arg>
+        <constructor-arg index='3'>
+            <ref bean="org.apache.jetspeed.page.PageManager"/>        
+        </constructor-arg>
+        <constructor-arg index='4'>
+            <ref bean="PortletActionSecurityBehavior"/>        
+        </constructor-arg>    		        
+        <constructor-arg index='5'>
+            <ref bean="AjaxVelocityEngine"/>        
+        </constructor-arg>    		        
+    </bean>
+    
+<!--    
+    <bean name="AjaxMultipleAction" parent="baseTransactionProxy">
+        <property name="proxyInterfaces">
+            <list>
+                <value>org.apache.jetspeed.ajax.AjaxAction</value>
+                <value>org.apache.jetspeed.ajax.AjaxBuilder</value>
+            </list>
+        </property>
+        <property name="target">
+            <ref bean="AjaxMultipleActionTarget" />
+        </property>
+        <property name="transactionAttributes">
+            <props>
+                <prop key="*">PROPAGATION_SUPPORTS,timeout_$failover{alltransactions.transactionTimeout}</prop>
+                <prop key="run">PROPAGATION_REQUIRED,timeout_$failover{alltransactions.transactionTimeout},-org.apache.jetspeed.ajax.AJAXException</prop>
+            </props>
+        </property>
+    </bean>
+-->    
+</beans>

Modified: portals/jetspeed-2/trunk/src/webapp/WEB-INF/assembly/pipelines.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/src/webapp/WEB-INF/assembly/pipelines.xml?view=diff&rev=453404&r1=453403&r2=453404
==============================================================================
--- portals/jetspeed-2/trunk/src/webapp/WEB-INF/assembly/pipelines.xml (original)
+++ portals/jetspeed-2/trunk/src/webapp/WEB-INF/assembly/pipelines.xml Thu Oct  5 15:05:20 2006
@@ -99,8 +99,21 @@
        the folder), is always selected
    -->
    <constructor-arg index="4"><value>true</value></constructor-arg>    
-  </bean> 
-  
+  </bean>
+     
+  <!-- 
+      To create a new page when a user first logs in from their roles,
+      add this valve after each profilerValve entry in the pipeline configs 
+      below
+   -->  
+  <bean id="createPageValve"
+        class="org.apache.jetspeed.profiler.impl.CreatePageValveImpl"
+  >
+   <constructor-arg index="0">
+       <ref bean="PortletActionSecurityBehavior" />
+   </constructor-arg>
+  </bean>
+
   <bean id="containerValve"
         class="org.apache.jetspeed.container.ContainerValve"
         init-method="initialize"



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