[parancoe] push by enricogi...@gmail.com - minor changes in the plugin and adapting basicwebappevolution to the n... on 2012-01-20 17:33 GMT

0 views
Skip to first unread message

para...@googlecode.com

unread,
Jan 20, 2012, 12:34:17 PM1/20/12
to parancoe...@googlegroups.com
Revision: 50e351e1998e
Author: enricogiurin <enrico...@gmail.com>
Date: Fri Jan 20 09:32:50 2012
Log: minor changes in the plugin and adapting basicwebappevolution to
the new plugin- still an issue is present at the boot of webapp
http://code.google.com/p/parancoe/source/detail?r=50e351e1998e

Added:
/examples/basicWebAppEvolution/src/main/resources/initialData/Group.yml
Deleted:
/examples/basicWebAppEvolution/src/main/resources/initialData/Authority.yml
/examples/basicWebAppEvolution/src/main/resources/initialData/User.yml
Modified:
/examples/basicWebAppEvolution/pom.xml
/examples/basicWebAppEvolution/src/main/webapp/WEB-INF/database.xml
/examples/basicWebAppEvolution/src/main/webapp/WEB-INF/parancoe-servlet.xml

/plugins/parancoe-plugin-springsecurity-evolution/src/main/resources/applicationContext-plugin.xml

/plugins/parancoe-plugin-springsecurity-evolution/src/main/resources/parancoe-plugin.xml

/plugins/parancoe-plugin-springsecurity-evolution/src/test/java/org/parancoe/plugins/securityevolution/SanityTest.java

=======================================
--- /dev/null
+++ /examples/basicWebAppEvolution/src/main/resources/initialData/Group.yml
Fri Jan 20 09:32:50 2012
@@ -0,0 +1,31 @@
+#
+# Copyright (C) 2006-2010 The Parancoe Team <in...@parancoe.org>
+#
+# This file is part of Parancoe Plugin Spring Security Evolution.
+#
+# 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.
+#
+
+- &Group-user
+ name: user
+ description: authenticated users with basic roles
+ authorities:
+ - *Authority-user
+
+- &Group-administrator
+ name: administrator
+ description: authenticated users with admin roles
+ authorities:
+ - *Authority-user
+ - *Authority-admin
+
=======================================
---
/examples/basicWebAppEvolution/src/main/resources/initialData/Authority.yml
Sat Oct 11 23:29:39 2008
+++ /dev/null
@@ -1,4 +0,0 @@
-- &Authority-parancoe
- role: ROLE_PARANCOE
-- &Authority-admin
- role: ROLE_ADMIN
=======================================
--- /examples/basicWebAppEvolution/src/main/resources/initialData/User.yml
Sun Oct 19 01:30:03 2008
+++ /dev/null
@@ -1,12 +0,0 @@
-- &User-parancoe
- username: parancoe
- password: d928b1a8468c96804da6fcc70bff826f
- enabled: true
- authorities:
- - *Authority-parancoe
-- &User-admin
- username: admin
- password: ceb4f32325eda6142bd65215f4c0f371
- enabled: true
- authorities:
- - *Authority-admin
=======================================
--- /examples/basicWebAppEvolution/pom.xml Tue Jan 17 09:35:08 2012
+++ /examples/basicWebAppEvolution/pom.xml Fri Jan 20 09:32:50 2012
@@ -87,7 +87,7 @@
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
- <version>5.1.6</version>
+ <version>5.1.13</version>
</dependency>
<dependency>
<groupId>commons-dbcp</groupId>
@@ -151,7 +151,7 @@
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
- <scope>provided</scope>
+ <scope>test</scope>
</dependency>
<dependency>
<groupId>commons-dbcp</groupId>
=======================================
--- /examples/basicWebAppEvolution/src/main/webapp/WEB-INF/database.xml Thu
Aug 26 09:01:23 2010
+++ /examples/basicWebAppEvolution/src/main/webapp/WEB-INF/database.xml Fri
Jan 20 09:32:50 2012
@@ -12,11 +12,11 @@
<property name="hibernateProperties">
<props merge="true">

- <prop
key="hibernate.dialect">org.hibernate.dialect.HSQLDialect</prop>
-
- <!--
+ <!-- <prop
key="hibernate.dialect">org.hibernate.dialect.HSQLDialect</prop> -->
+
+
<prop
key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
- -->
+
<prop key="hibernate.hbm2ddl.auto">create</prop>
<prop key="hibernate.show_sql">true</prop>
</props>
=======================================
---
/examples/basicWebAppEvolution/src/main/webapp/WEB-INF/parancoe-servlet.xml
Tue Jan 17 09:35:08 2012
+++
/examples/basicWebAppEvolution/src/main/webapp/WEB-INF/parancoe-servlet.xml
Fri Jan 20 09:32:50 2012
@@ -21,12 +21,21 @@
</bean>-->

<!-- begin security section -->
+ <sec:http auto-config="true" pattern="/people/**"
use-expressions="true" access-decision-manager-ref="accessDecisionManager" >
+ <sec:intercept-url pattern="*" access="hasRole('ROLE_USER')"/>
+ </sec:http>
+
+ <sec:http auto-config="true" pattern="/admin/**"
use-expressions="true" access-decision-manager-ref="accessDecisionManager" >
+ <sec:intercept-url pattern="*" access="hasRole('ROLE_ADMIN')"/>
+ </sec:http>
+ <!--
<sec:filter-security-metadata-source
id="pluginSecurityFilterDefinitions" lowercase-comparisons="true"
path-type="ant">
<sec:intercept-url pattern="/r/person/**" access="ROLE_ADMIN,
ROLE_PARANCOE"/>
<sec:intercept-url pattern="/people/**" access="ROLE_ADMIN,
ROLE_PARANCOE"/>
<sec:intercept-url pattern="/admin/**" access="ROLE_ADMIN"/>
<sec:intercept-url pattern="/**"
access="IS_AUTHENTICATED_ANONYMOUSLY"/>
</sec:filter-security-metadata-source>
+ -->
<!-- end security section -->

<!-- begin dwr section -->
=======================================
---
/plugins/parancoe-plugin-springsecurity-evolution/src/main/resources/applicationContext-plugin.xml
Wed Jan 18 09:35:16 2012
+++
/plugins/parancoe-plugin-springsecurity-evolution/src/main/resources/applicationContext-plugin.xml
Fri Jan 20 09:32:50 2012
@@ -47,11 +47,11 @@
<bean id="userDetailsService"
class="org.parancoe.plugins.securityevolution.ParancoeUserDetailsService"/>


- <!-- <security:http auto-config="true" pattern="/admin/**"
use-expressions="true" access-decision-manager-ref="accessDecisionManager" >
+ <!-- <security:http auto-config="true" pattern="/admin/**"
use-expressions="true" access-decision-manager-ref="accessDecisionManager" >
<security:intercept-url pattern="*"
access="hasRole('ROLE_ADMIN')"/>
- </security:http>
-
-
+ </security:http> -->
+
+ <!--
<security:http auto-config="true" pattern="/pages/**"
use-expressions="true" access-decision-manager-ref="accessDecisionManager" >
<security:intercept-url pattern="*" access="hasRole('ROLE_USER')"/>
</security:http> -->
=======================================
---
/plugins/parancoe-plugin-springsecurity-evolution/src/main/resources/parancoe-plugin.xml
Tue Dec 13 13:41:54 2011
+++
/plugins/parancoe-plugin-springsecurity-evolution/src/main/resources/parancoe-plugin.xml
Fri Jan 20 09:32:50 2012
@@ -41,7 +41,7 @@

<bean id="filterChainProxy"
class="org.springframework.web.filter.DelegatingFilterProxy">

- </bean>
+ </bean>


<!-- -->
=======================================
---
/plugins/parancoe-plugin-springsecurity-evolution/src/test/java/org/parancoe/plugins/securityevolution/SanityTest.java
Mon Jan 9 09:24:24 2012
+++
/plugins/parancoe-plugin-springsecurity-evolution/src/test/java/org/parancoe/plugins/securityevolution/SanityTest.java
Fri Jan 20 09:32:50 2012
@@ -23,6 +23,7 @@
import org.parancoe.web.test.PluginTest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
+import org.springframework.web.filter.DelegatingFilterProxy;

import javax.annotation.Resource;

@@ -38,9 +39,11 @@
/* test everything has been loaded properly */
public void testSanity() {
assertNotNull(applicationContextPlugin);
+
+
for(String s:applicationContext.getBeanDefinitionNames())
{
- logger.debug("bean: "+s);
+ logger.debug("bean: "+s+" -
class: "+applicationContext.getType(s));
}
}

Reply all
Reply to author
Forward
0 new messages