portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r371440 - in /portals/jetspeed-2/trunk: etc/sql/populate-db-default.sql src/webapp/WEB-INF/assembly/profiler.xml
Date Mon, 23 Jan 2006 02:13:38 GMT
Author: taylor
Date: Sun Jan 22 18:13:36 2006
New Revision: 371440

URL: http://svn.apache.org/viewcvs?rev=371440&view=rev
Log:
New Criterion : Role combo resolver 
 Combines all roles into one rolename string
 Example: roles = a,b,c
 RoleCombo = a-b-c

Modified:
    portals/jetspeed-2/trunk/etc/sql/populate-db-default.sql
    portals/jetspeed-2/trunk/src/webapp/WEB-INF/assembly/profiler.xml

Modified: portals/jetspeed-2/trunk/etc/sql/populate-db-default.sql
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/etc/sql/populate-db-default.sql?rev=371440&r1=371439&r2=371440&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/etc/sql/populate-db-default.sql (original)
+++ portals/jetspeed-2/trunk/etc/sql/populate-db-default.sql Sun Jan 22 18:13:36 2006
@@ -404,6 +404,14 @@
 insert into RULE_CRITERION values ('32', 'user-role-fallback', 2, 'role', 'role', null, 2);
 insert into RULE_CRITERION values ('33', 'user-role-fallback', 3, 'path.session', 'page',
'default-page', 1);
 
+insert into PROFILING_RULE values ('user-rolecombo-fallback', 
+     'org.apache.jetspeed.profiler.rules.impl.RoleFallbackProfilingRule',
+     'A role based fallback algorithm based on Jetspeed-1 role-based fallback');
+insert into RULE_CRITERION values ('40', 'user-rolecombo-fallback', 0, 'user', 'user', null,
2);
+insert into RULE_CRITERION values ('41', 'user-rolecombo-fallback', 1, 'navigation', 'navigation',
'/', 2);
+insert into RULE_CRITERION values ('42', 'user-rolecombo-fallback', 2, 'rolecombo', 'role',
null, 2);
+insert into RULE_CRITERION values ('43', 'user-rolecombo-fallback', 3, 'path.session', 'page',
'default-page', 1);
+
 insert into PROFILING_RULE values ('subsite-role-fallback-home',
      'org.apache.jetspeed.profiler.rules.impl.RoleFallbackProfilingRule',
      'A rule based on role fallback algorithm with specified subsite and home page');

Modified: portals/jetspeed-2/trunk/src/webapp/WEB-INF/assembly/profiler.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/src/webapp/WEB-INF/assembly/profiler.xml?rev=371440&r1=371439&r2=371440&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/src/webapp/WEB-INF/assembly/profiler.xml (original)
+++ portals/jetspeed-2/trunk/src/webapp/WEB-INF/assembly/profiler.xml Sun Jan 22 18:13:36
2006
@@ -71,6 +71,9 @@
           <entry key="role">
             <ref bean="RoleCriterionResolver" />
           </entry>
+          <entry key="rolecombo">
+            <ref bean="RoleComboCriterionResolver" />
+          </entry>			
           <entry key="group">
             <ref bean="GroupCriterionResolver" />
           </entry>
@@ -106,6 +109,7 @@
     <bean id='HardCodedResolver' class='org.apache.jetspeed.profiler.rules.impl.HardCodedResolver'></bean>
     <bean id='UserCriterionResolver' class='org.apache.jetspeed.profiler.rules.impl.UserCriterionResolver'></bean>
     <bean id='RoleCriterionResolver' class='org.apache.jetspeed.profiler.rules.impl.RoleCriterionResolver'></bean>
+    <bean id='RoleComboCriterionResolver' class='org.apache.jetspeed.profiler.rules.impl.RoleComboCriterionResolver'></bean>

     <bean id='GroupCriterionResolver' class='org.apache.jetspeed.profiler.rules.impl.GroupCriterionResolver'></bean>
     <bean id='MediatypeCriterionResolver' class='org.apache.jetspeed.profiler.rules.impl.MediatypeCriterionResolver'></bean>
     <bean id='LanguageCriterionResolver' class='org.apache.jetspeed.profiler.rules.impl.LanguageCriterionResolver'></bean>



---------------------------------------------------------------------
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