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/09/22 20:28:42 UTC
svn commit: r449036 - in /portals/jetspeed-2/trunk/etc/sql:
populate-db-default.sql populate-userinfo-for-default-psml.sql
Author: taylor
Date: Fri Sep 22 11:28:41 2006
New Revision: 449036
URL: http://svn.apache.org/viewvc?view=rev&rev=449036
Log:
A profiler rule which serves content based on the network associated with the http request
contribution from Philip Mark Donaghy
http://issues.apache.org/jira/browse/JS2-490
Modified:
portals/jetspeed-2/trunk/etc/sql/populate-db-default.sql
portals/jetspeed-2/trunk/etc/sql/populate-userinfo-for-default-psml.sql
Modified: portals/jetspeed-2/trunk/etc/sql/populate-db-default.sql
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/etc/sql/populate-db-default.sql?view=diff&rev=449036&r1=449035&r2=449036
==============================================================================
--- portals/jetspeed-2/trunk/etc/sql/populate-db-default.sql (original)
+++ portals/jetspeed-2/trunk/etc/sql/populate-db-default.sql Fri Sep 22 11:28:41 2006
@@ -425,6 +425,10 @@
insert into RULE_CRITERION values ('53', 'subsite2-role-fallback-home', 0, 'navigation', 'navigation', 'subsite-root', 2);
insert into RULE_CRITERION values ('54', 'subsite2-role-fallback-home', 1, 'role', 'role', null, 2);
insert into RULE_CRITERION values ('55', 'subsite2-role-fallback-home', 2, 'path', 'path', 'subsite2-default-page', 0);
+insert into PROFILING_RULE values ('ip-address',
+ 'org.apache.jetspeed.profiler.rules.impl.StandardProfilingRule',
+ 'Resolves pages based on the clients remote IP address.');
+insert into RULE_CRITERION values ('60', 'ip-address', 0, 'ip', 'ip', null, 0);
insert into PRINCIPAL_RULE_ASSOC values ( 'guest', 'page', 'j2' );
insert into PRINCIPAL_RULE_ASSOC values ( 'jetspeed', 'page', 'role-fallback' );
@@ -434,6 +438,8 @@
insert into PRINCIPAL_RULE_ASSOC values ('subsite', 'page', 'subsite-role-fallback-home');
insert into PRINCIPAL_RULE_ASSOC values ('subsite2', 'page', 'subsite2-role-fallback-home');
+
+insert into PRINCIPAL_RULE_ASSOC values ('geo', 'page', 'ip-address');
-- test data for db browser
insert into CLUBS values ('AC Milan', 'Italy', 'Milan', 'San Siro', 85700, 1926, '105x68m', '');
Modified: portals/jetspeed-2/trunk/etc/sql/populate-userinfo-for-default-psml.sql
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/etc/sql/populate-userinfo-for-default-psml.sql?view=diff&rev=449036&r1=449035&r2=449036
==============================================================================
--- portals/jetspeed-2/trunk/etc/sql/populate-userinfo-for-default-psml.sql (original)
+++ portals/jetspeed-2/trunk/etc/sql/populate-userinfo-for-default-psml.sql Fri Sep 22 11:28:41 2006
@@ -97,3 +97,7 @@
INSERT INTO SECURITY_PERMISSION VALUES(100,'org.apache.jetspeed.security.PortletPermission','j2-admin::*','view, edit','2004-05-22 16:27:12.572','2004-05-22 16:27:12.572');
INSERT INTO PRINCIPAL_PERMISSION VALUES(6,100);
+-- Test User for Mapping IP addresses to geographic locations
+-- And ip-address Profile rule
+INSERT INTO SECURITY_PRINCIPAL VALUES(60,'org.apache.jetspeed.security.JetspeedUserPrincipalImpl',0,1,'/user/geo','2006-09-03 12:07:25.234','2006-09-03 12:07:25.234');
+INSERT INTO SECURITY_CREDENTIAL VALUES(60,60,'geo',0,'org.apache.jetspeed.security.spi.impl.DefaultPasswordCredentialImpl',0,0,1,0,0,'2006-09-03 12:07:25.234','2006-09-03 12:07:25.234',null,null,null);
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org