portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r526855 - /portals/jetspeed-2/trunk/etc/sql/j2-seed.xml
Date Mon, 09 Apr 2007 17:49:22 GMT
Author: taylor
Date: Mon Apr  9 10:49:21 2007
New Revision: 526855

URL: http://svn.apache.org/viewvc?view=rev&rev=526855
Log:
example of using _hostnames as subsites with user rules

Modified:
    portals/jetspeed-2/trunk/etc/sql/j2-seed.xml

Modified: portals/jetspeed-2/trunk/etc/sql/j2-seed.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/etc/sql/j2-seed.xml?view=diff&rev=526855&r1=526854&r2=526855
==============================================================================
--- portals/jetspeed-2/trunk/etc/sql/j2-seed.xml (original)
+++ portals/jetspeed-2/trunk/etc/sql/j2-seed.xml Mon Apr  9 10:49:21 2007
@@ -314,6 +314,16 @@
 				<Rule locator="page" rule="j2"/>
 			</Rules>
 		</User>
+		<User name="local">
+			<credentials password="local" enabled="TRUE" requiresUpdate="FALSE"/>
+			<roles>user</roles>
+			<groups>accounting</groups>
+			<preferences/>
+			<userinfo/>
+			<Rules>
+				<Rule locator="page" rule="localhost"/>
+			</Rules>
+		</User>
 		<User name="tomcat">
 			<credentials password="tomcat" enabled="TRUE" requiresUpdate="FALSE"/>
 			<roles></roles>
@@ -730,5 +740,67 @@
 				</Criterion>
 			</Criteria>
 		</ProfilingRule>
+		
+		<ProfilingRule id="localhost" standardRule="true">
+			<description value="A hosting rule"/>
+			<Criteria>
+				<Criterion name="hostname">
+					<type value="hostname"/>
+					<fallBackOrder value="0"/>
+					<fallBackType value="2"/>
+				</Criterion>
+				<Criterion name="user">
+					<type value="user"/>
+					<fallBackOrder value="1"/>
+					<fallBackType value="2"/>
+				</Criterion>
+				<Criterion name="page">
+					<type value="path.session"/>
+					<value value="home"/>
+					<fallBackOrder value="2"/>
+					<fallBackType value="1"/>
+				</Criterion>
+			</Criteria>
+		</ProfilingRule>
+
+		<ProfilingRule id="localhost-fallback" standardRule="false">
+			<description value="A hosting rule with role fallback"/>
+			<Criteria>
+				<Criterion name="hostname">
+					<type value="hostname"/>
+					<fallBackOrder value="0"/>
+					<fallBackType value="2"/>
+				</Criterion>
+				<Criterion name="user">
+					<type value="user"/>
+					<fallBackOrder value="1"/>
+					<fallBackType value="2"/>
+				</Criterion>
+				<Criterion name="navigation">
+					<type value="navigation"/>
+					<value value="/"/>
+					<fallBackOrder value="2"/>
+					<fallBackType value="2"/>
+				</Criterion>
+				<Criterion name="hostname2">
+					<type value="hostname"/>
+					<fallBackOrder value="3"/>
+					<fallBackType value="2"/>
+				</Criterion>
+				<Criterion name="role">
+					<type value="role"/>
+					<fallBackOrder value="4"/>
+					<fallBackType value="2"/>
+				</Criterion>				
+				<Criterion name="page">
+					<type value="path.session"/>
+					<value value="home"/>
+					<fallBackOrder value="5"/>
+					<fallBackType value="1"/>
+				</Criterion>
+			</Criteria>
+		</ProfilingRule>
+		
 	</ProfilingRules>
+
 </Snapshot>



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