Merge lp:~dhis2-devs-core/dhis2/spring-hibernate-struts-upgrade into lp:dhis2

Proposed by Jo Størset
Status: Merged
Merged at revision: 1830
Proposed branch: lp:~dhis2-devs-core/dhis2/spring-hibernate-struts-upgrade
Merge into: lp:dhis2
Diff against target: 4191 lines (+1557/-1509)
56 files modified
dhis-2/dhis-api/pom.xml (+23/-23)
dhis-2/dhis-services/dhis-service-core/pom.xml (+80/-84)
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataelement/DefaultDataElementService.java (+2/-1)
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/DefaultUsernameSaltSource.java (+1/-1)
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/UsernameSaltSource.java (+1/-1)
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/hibernate/HibernateUserDetailsService.java (+7/-6)
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/spring/AbstractSpringSecurityCurrentUserService.java (+3/-3)
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/spring/SpringSecurityPasswordManager.java (+1/-1)
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/vote/AllRequiredRoleVoter.java (+12/-15)
dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml (+836/-836)
dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/user/hibernate/User.hbm.xml (+1/-1)
dhis-2/dhis-services/dhis-service-i18n/pom.xml (+33/-33)
dhis-2/dhis-services/dhis-service-patient/pom.xml (+30/-30)
dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/DefaultPatientIdentifierService.java (+2/-1)
dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/DefaultPatientService.java (+0/-2)
dhis-2/dhis-support/dhis-support-hibernate/pom.xml (+97/-79)
dhis-2/dhis-support/dhis-support-hibernate/src/main/resources/hibernate-default.properties (+2/-1)
dhis-2/dhis-support/dhis-support-system/pom.xml (+96/-92)
dhis-2/dhis-support/dhis-support-test/pom.xml (+56/-48)
dhis-2/dhis-web/dhis-web-caseentry/pom.xml (+47/-47)
dhis-2/dhis-web/dhis-web-commons/pom.xml (+2/-2)
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/GetOperandsAction.java (+1/-2)
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/encoding/velocity/EncoderVelocityContext.java (+3/-2)
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/interceptor/ExceptionInterceptor.java (+2/-2)
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/AbstractAutomaticAccessProvider.java (+2/-2)
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/GhostAutomaticAccessProvider.java (+5/-5)
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/SpringSecurityActionAccessResolver.java (+12/-11)
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/authority/DefaultRequiredAuthoritiesProvider.java (+11/-14)
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/authority/RequiredAuthoritiesProvider.java (+7/-7)
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/filter/UserAuditLogoutFilter.java (+3/-3)
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/intercept/SingleSecurityMetadataSource.java (+19/-18)
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/intercept/XWorkSecurityInterceptor.java (+9/-9)
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/listener/AuthenticationListener.java (+3/-3)
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/vote/AbstractPrefixedAccessDecisionVoter.java (+2/-2)
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/vote/ActionAccessVoter.java (+7/-10)
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/vote/LogicalOrAccessDecisionManager.java (+11/-10)
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/vote/ModuleAccessVoter.java (+7/-6)
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/vote/SimpleAccessVoter.java (+10/-8)
dhis-2/dhis-web/dhis-web-commons/src/main/resources/META-INF/dhis/beans.xml (+19/-11)
dhis-2/dhis-web/dhis-web-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/datasetcompleted/action/GetDataSetAndPeriodByPeriodTypeAction.java (+1/-2)
dhis-2/dhis-web/dhis-web-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/datasetcompleted/action/ViewDataSetCompletedAction.java (+1/-2)
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/java/org/hisp/dhis/dataadmin/action/databrowser/SearchAction.java (+1/-2)
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/resources/META-INF/dhis/beans.xml (+7/-10)
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/dataelement/GetDataElementAction.java (+2/-2)
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/dataelement/ShowAddDataElementForm.java (+1/-2)
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/dataelement/ShowUpdateDataElementFormAction.java (+1/-2)
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/indicatorgroup/GetAssignedIndicatorGroupsAction.java (+1/-1)
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patientattributegroup/GetPatientAttributeGroupAction.java (+1/-2)
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patientattributegroup/GetPatientAttributeGroupListAction.java (+1/-1)
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patientidentifiertype/GetPatientIdentifierTypeListAction.java (+1/-2)
dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetAllMapLegendsAction.java (+2/-2)
dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetMapLegendsByMapLegendSetAction.java (+1/-2)
dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/chart/action/SaveChartAction.java (+1/-2)
dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/pivottable/action/GetPivotTableAction.java (+1/-2)
dhis-2/dhis-web/dhis-web-validationrule/pom.xml (+0/-4)
dhis-2/pom.xml (+69/-37)
To merge this branch: bzr merge lp:~dhis2-devs-core/dhis2/spring-hibernate-struts-upgrade
Reviewer Review Type Date Requested Status
Lars Helge Øverland Pending
Review via email: mp+24665@code.launchpad.net

Description of the change

Bumped all frameworks to newest version, seems to survive cursory testing.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'dhis-2/dhis-api/pom.xml'
--- dhis-2/dhis-api/pom.xml 2010-04-08 16:55:35 +0000
+++ dhis-2/dhis-api/pom.xml 2010-05-07 11:16:36 +0000
@@ -1,26 +1,26 @@
1<project xmlns="http://maven.apache.org/POM/4.0.0"1<project xmlns="http://maven.apache.org/POM/4.0.0"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4 <modelVersion>4.0.0</modelVersion>4 <modelVersion>4.0.0</modelVersion>
5 5
6 <parent>6 <parent>
7 <groupId>org.hisp.dhis</groupId>7 <groupId>org.hisp.dhis</groupId>
8 <artifactId>dhis</artifactId>8 <artifactId>dhis</artifactId>
9 <version>2.0.5-SNAPSHOT</version>9 <version>2.0.5-SNAPSHOT</version>
10 </parent>10 </parent>
11 11
12 <artifactId>dhis-api</artifactId>12 <artifactId>dhis-api</artifactId>
13 <packaging>jar</packaging>13 <packaging>jar</packaging>
14 <name>DHIS API</name>14 <name>DHIS API</name>
15 15
16 <dependencies> 16 <dependencies>
17 <dependency>17 <dependency>
18 <groupId>junit</groupId>18 <groupId>junit</groupId>
19 <artifactId>junit</artifactId>19 <artifactId>junit</artifactId>
20 </dependency>20 </dependency>
21 </dependencies>21 </dependencies>
22 22
23 <properties>23 <properties>
24 <rootDir>../</rootDir>24 <rootDir>../</rootDir>
25 </properties>25 </properties>
26</project>26</project>
2727
=== modified file 'dhis-2/dhis-services/dhis-service-core/pom.xml'
--- dhis-2/dhis-services/dhis-service-core/pom.xml 2010-04-22 14:06:28 +0000
+++ dhis-2/dhis-services/dhis-service-core/pom.xml 2010-05-07 11:16:36 +0000
@@ -1,87 +1,83 @@
1<project xmlns="http://maven.apache.org/POM/4.0.0"1<project xmlns="http://maven.apache.org/POM/4.0.0"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4 <modelVersion>4.0.0</modelVersion>4 <modelVersion>4.0.0</modelVersion>
55
6 <parent>6 <parent>
7 <groupId>org.hisp.dhis</groupId>7 <groupId>org.hisp.dhis</groupId>
8 <artifactId>dhis-services</artifactId>8 <artifactId>dhis-services</artifactId>
9 <version>2.0.5-SNAPSHOT</version>9 <version>2.0.5-SNAPSHOT</version>
10 </parent>10 </parent>
1111
12 <artifactId>dhis-service-core</artifactId>12 <artifactId>dhis-service-core</artifactId>
13 <packaging>jar</packaging>13 <packaging>jar</packaging>
14 <name>DHIS Core API Implementations</name>14 <name>DHIS Core API Implementations</name>
1515
16 <dependencies>16 <dependencies>
1717
18 <!-- DHIS -->18 <!-- DHIS -->
1919
20 <dependency>20 <dependency>
21 <groupId>org.hisp.dhis</groupId>21 <groupId>org.hisp.dhis</groupId>
22 <artifactId>dhis-api</artifactId>22 <artifactId>dhis-api</artifactId>
23 </dependency>23 </dependency>
24 <dependency>24 <dependency>
25 <groupId>org.hisp.dhis</groupId>25 <groupId>org.hisp.dhis</groupId>
26 <artifactId>dhis-support-hibernate</artifactId>26 <artifactId>dhis-support-hibernate</artifactId>
27 </dependency>27 </dependency>
28 <dependency>28 <dependency>
29 <groupId>org.hisp.dhis</groupId>29 <groupId>org.hisp.dhis</groupId>
30 <artifactId>dhis-support-test</artifactId>30 <artifactId>dhis-support-test</artifactId>
31 </dependency>31 </dependency>
32 <dependency>32 <dependency>
33 <groupId>org.hisp.dhis</groupId>33 <groupId>org.hisp.dhis</groupId>
34 <artifactId>dhis-support-system</artifactId>34 <artifactId>dhis-support-system</artifactId>
35 </dependency>35 </dependency>
36 <dependency>36 <dependency>
37 <groupId>org.hisp.dhis</groupId>37 <groupId>org.hisp.dhis</groupId>
38 <artifactId>dhis-support-external</artifactId>38 <artifactId>dhis-support-external</artifactId>
39 </dependency>39 </dependency>
40 <dependency>40 <dependency>
41 <groupId>org.hisp.dhis</groupId>41 <groupId>org.hisp.dhis</groupId>
42 <artifactId>dhis-support-jdbc</artifactId>42 <artifactId>dhis-support-jdbc</artifactId>
43 </dependency>43 </dependency>
44 <dependency>44 <dependency>
45 <groupId>org.hisp.dhis</groupId>45 <groupId>org.hisp.dhis</groupId>
46 <artifactId>dhis-support-i18n</artifactId>46 <artifactId>dhis-support-i18n</artifactId>
47 </dependency>47 </dependency>
4848
49 <!-- Spring Security -->49 <!-- Spring Security -->
50 50
51 <dependency>51 <dependency>
52 <groupId>org.springframework.security</groupId>52 <groupId>org.springframework.security</groupId>
53 <artifactId>spring-security-core</artifactId>53 <artifactId>spring-security-core</artifactId>
54 </dependency>54 </dependency>
55 <dependency>55 <dependency>
56 <groupId>org.springframework.security</groupId>56 <groupId>org.springframework.security</groupId>
57 <artifactId>spring-security-core-tiger</artifactId>57 <artifactId>spring-security-web</artifactId>
58 </dependency>58 </dependency>
59 59
60 <!-- Other -->60 <!-- Other -->
6161
62 <dependency>62 <dependency>
63 <groupId>jep</groupId>63 <groupId>jep</groupId>
64 <artifactId>jep</artifactId>64 <artifactId>jep</artifactId>
65 </dependency>65 </dependency>
66 <dependency>66 <dependency>
67 <groupId>commons-codec</groupId>67 <groupId>commons-codec</groupId>
68 <artifactId>commons-codec</artifactId>68 <artifactId>commons-codec</artifactId>
69 </dependency>69 </dependency>
70 <dependency>70 <dependency>
71 <groupId>commons-collections</groupId>71 <groupId>commons-collections</groupId>
72 <artifactId>commons-collections</artifactId>72 <artifactId>commons-collections</artifactId>
73 </dependency>73 </dependency>
74 <dependency>74 <dependency>
75 <groupId>commons-logging</groupId>75 <groupId>org.springframework</groupId>
76 <artifactId>commons-logging</artifactId>76 <artifactId>spring-tx</artifactId>
77 </dependency>77 </dependency>
78 <dependency>78
79 <groupId>org.springframework</groupId>79 </dependencies>
80 <artifactId>spring-test</artifactId>
81 </dependency>
82
83 </dependencies>
84 <properties>80 <properties>
85 <rootDir>../../</rootDir>81 <rootDir>../../</rootDir>
86 </properties>82 </properties>
87</project>83</project>
8884
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataelement/DefaultDataElementService.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataelement/DefaultDataElementService.java 2010-05-04 06:47:28 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataelement/DefaultDataElementService.java 2010-05-07 11:16:36 +0000
@@ -27,10 +27,12 @@
27 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.27 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */28 */
2929
30
30import static org.hisp.dhis.i18n.I18nUtils.i18n;31import static org.hisp.dhis.i18n.I18nUtils.i18n;
3132
32import java.util.ArrayList;33import java.util.ArrayList;
33import java.util.Collection;34import java.util.Collection;
35import java.util.Collections;
34import java.util.Date;36import java.util.Date;
35import java.util.HashMap;37import java.util.HashMap;
36import java.util.HashSet;38import java.util.HashSet;
@@ -51,7 +53,6 @@
51import org.hisp.dhis.system.util.UUIdUtils;53import org.hisp.dhis.system.util.UUIdUtils;
52import org.springframework.transaction.annotation.Transactional;54import org.springframework.transaction.annotation.Transactional;
5355
54import edu.emory.mathcs.backport.java.util.Collections;
5556
56/**57/**
57 * @author Kristian Nordal58 * @author Kristian Nordal
5859
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/DefaultUsernameSaltSource.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/DefaultUsernameSaltSource.java 2010-04-21 19:45:12 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/DefaultUsernameSaltSource.java 2010-05-07 11:16:36 +0000
@@ -27,7 +27,7 @@
27 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.27 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */28 */
2929
30import org.springframework.security.userdetails.UserDetails;30import org.springframework.security.core.userdetails.UserDetails;
3131
32/**32/**
33 * @author Torgeir Lorange Ostby33 * @author Torgeir Lorange Ostby
3434
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/UsernameSaltSource.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/UsernameSaltSource.java 2010-04-21 19:45:12 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/UsernameSaltSource.java 2010-05-07 11:16:36 +0000
@@ -27,7 +27,7 @@
27 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.27 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */28 */
2929
30import org.springframework.security.providers.dao.SaltSource;30import org.springframework.security.authentication.dao.SaltSource;
3131
32/**32/**
33 * This interface adds a method for getting a salt based on a username. The33 * This interface adds a method for getting a salt based on a username. The
3434
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/hibernate/HibernateUserDetailsService.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/hibernate/HibernateUserDetailsService.java 2010-04-21 19:45:12 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/hibernate/HibernateUserDetailsService.java 2010-05-07 11:16:36 +0000
@@ -30,11 +30,6 @@
30import java.util.HashSet;30import java.util.HashSet;
31import java.util.Set;31import java.util.Set;
3232
33import org.springframework.security.GrantedAuthority;
34import org.springframework.security.GrantedAuthorityImpl;
35import org.springframework.security.userdetails.UserDetails;
36import org.springframework.security.userdetails.UserDetailsService;
37import org.springframework.security.userdetails.UsernameNotFoundException;
38import org.hibernate.Criteria;33import org.hibernate.Criteria;
39import org.hibernate.Session;34import org.hibernate.Session;
40import org.hibernate.SessionFactory;35import org.hibernate.SessionFactory;
@@ -42,6 +37,12 @@
42import org.hisp.dhis.user.UserAuthorityGroup;37import org.hisp.dhis.user.UserAuthorityGroup;
43import org.hisp.dhis.user.UserCredentials;38import org.hisp.dhis.user.UserCredentials;
44import org.springframework.dao.DataAccessException;39import org.springframework.dao.DataAccessException;
40import org.springframework.security.core.GrantedAuthority;
41import org.springframework.security.core.authority.GrantedAuthorityImpl;
42import org.springframework.security.core.userdetails.User;
43import org.springframework.security.core.userdetails.UserDetails;
44import org.springframework.security.core.userdetails.UserDetailsService;
45import org.springframework.security.core.userdetails.UsernameNotFoundException;
45import org.springframework.transaction.annotation.Transactional;46import org.springframework.transaction.annotation.Transactional;
4647
47/**48/**
@@ -80,7 +81,7 @@
8081
81 GrantedAuthority[] authorities = getGrantedAuthorities( credentials );82 GrantedAuthority[] authorities = getGrantedAuthorities( credentials );
8283
83 return new org.springframework.security.userdetails.User( credentials.getUsername(), credentials.getPassword(), true,84 return new User( credentials.getUsername(), credentials.getPassword(), true,
84 true, true, true, authorities );85 true, true, true, authorities );
85 }86 }
8687
8788
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/spring/AbstractSpringSecurityCurrentUserService.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/spring/AbstractSpringSecurityCurrentUserService.java 2010-04-21 19:45:12 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/spring/AbstractSpringSecurityCurrentUserService.java 2010-05-07 11:16:36 +0000
@@ -28,9 +28,9 @@
28 */28 */
2929
30import org.hisp.dhis.user.CurrentUserService;30import org.hisp.dhis.user.CurrentUserService;
31import org.springframework.security.Authentication;31import org.springframework.security.core.Authentication;
32import org.springframework.security.context.SecurityContextHolder;32import org.springframework.security.core.context.SecurityContextHolder;
33import org.springframework.security.userdetails.UserDetails;33import org.springframework.security.core.userdetails.UserDetails;
3434
35/**35/**
36 * @author Torgeir Lorange Ostby36 * @author Torgeir Lorange Ostby
3737
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/spring/SpringSecurityPasswordManager.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/spring/SpringSecurityPasswordManager.java 2010-04-21 19:45:12 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/spring/SpringSecurityPasswordManager.java 2010-05-07 11:16:36 +0000
@@ -29,7 +29,7 @@
2929
30import org.hisp.dhis.security.PasswordManager;30import org.hisp.dhis.security.PasswordManager;
31import org.hisp.dhis.security.UsernameSaltSource;31import org.hisp.dhis.security.UsernameSaltSource;
32import org.springframework.security.providers.encoding.PasswordEncoder;32import org.springframework.security.authentication.encoding.PasswordEncoder;
3333
34/**34/**
35 * @author Torgeir Lorange Ostby35 * @author Torgeir Lorange Ostby
3636
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/vote/AllRequiredRoleVoter.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/vote/AllRequiredRoleVoter.java 2010-04-21 19:45:12 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/vote/AllRequiredRoleVoter.java 2010-05-07 11:16:36 +0000
@@ -29,18 +29,18 @@
2929
30import java.util.Collection;30import java.util.Collection;
3131
32import org.springframework.security.Authentication;32import org.springframework.security.access.ConfigAttribute;
33import org.springframework.security.ConfigAttribute;33import org.springframework.security.access.vote.RoleVoter;
34import org.springframework.security.ConfigAttributeDefinition;34import org.springframework.security.core.Authentication;
35import org.springframework.security.vote.RoleVoter;35import org.springframework.security.core.GrantedAuthority;
3636
37/**37/**
38 * RoleVoter which requires all org.springframework.security.ConfigAttributes to be granted38 * RoleVoter which requires all org.springframework.security.ConfigAttributes to
39 * authorities, given that the ConfigAttributes have the specified prefix39 * be granted authorities, given that the ConfigAttributes have the specified
40 * ("ROLE_" by default). If there are no supported ConfigAttributes it abstains40 * prefix ("ROLE_" by default). If there are no supported ConfigAttributes it
41 * from voting.41 * abstains from voting.
42 * 42 *
43 * @see org.springframework.security.vote.RoleVoter43 * @see org.springframework.security.access.vote.RoleVoter
44 * 44 *
45 * @author Torgeir Lorange Ostby45 * @author Torgeir Lorange Ostby
46 * @version $Id: AllRequiredRoleVoter.java 6070 2008-10-28 17:49:23Z larshelg $46 * @version $Id: AllRequiredRoleVoter.java 6070 2008-10-28 17:49:23Z larshelg $
@@ -48,13 +48,10 @@
48public class AllRequiredRoleVoter48public class AllRequiredRoleVoter
49 extends RoleVoter49 extends RoleVoter
50{50{
51 public int vote( Authentication authentication, Object object, ConfigAttributeDefinition config )51 public int vote( Authentication authentication, Object object, Collection<ConfigAttribute> attributes )
52 {52 {
53 int supported = 0;53 int supported = 0;
5454
55 @SuppressWarnings( "unchecked" )
56 Collection<ConfigAttribute> attributes = config.getConfigAttributes();
57
58 for ( ConfigAttribute attribute : attributes )55 for ( ConfigAttribute attribute : attributes )
59 {56 {
60 if ( this.supports( attribute ) )57 if ( this.supports( attribute ) )
@@ -62,9 +59,9 @@
62 ++supported;59 ++supported;
63 boolean found = false;60 boolean found = false;
6461
65 for ( int i = 0; i < authentication.getAuthorities().length; i++ )62 for ( GrantedAuthority authority : authentication.getAuthorities() )
66 {63 {
67 if ( attribute.getAttribute().equals( authentication.getAuthorities()[i].getAuthority() ) )64 if ( attribute.getAttribute().equals( authority ) )
68 {65 {
69 found = true;66 found = true;
70 break;67 break;
7168
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml 2010-05-04 06:47:28 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml 2010-05-07 11:16:36 +0000
@@ -1,837 +1,837 @@
1<?xml version="1.0" encoding="UTF-8"?>1<?xml version="1.0" encoding="UTF-8"?>
2<beans xmlns="http://www.springframework.org/schema/beans"2<beans xmlns="http://www.springframework.org/schema/beans"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xmlns:aop="http://www.springframework.org/schema/aop"4 xmlns:aop="http://www.springframework.org/schema/aop"
5 xsi:schemaLocation="5 xsi:schemaLocation="
6http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd6http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
7http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">7http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">
8 8
9 <!-- Store definitions -->9 <!-- Store definitions -->
10 10
11 <bean id="org.hisp.dhis.dataentryform.DataEntryFormAssociationStore"11 <bean id="org.hisp.dhis.dataentryform.DataEntryFormAssociationStore"
12 class="org.hisp.dhis.dataentryform.hibernate.HibernateDataEntryFormAssociationStore">12 class="org.hisp.dhis.dataentryform.hibernate.HibernateDataEntryFormAssociationStore">
13 <property name="sessionFactory" ref="sessionFactory"/>13 <property name="sessionFactory" ref="sessionFactory"/>
14 </bean>14 </bean>
15 15
16 <bean id="org.hisp.dhis.dataentryform.DataEntryFormStore"16 <bean id="org.hisp.dhis.dataentryform.DataEntryFormStore"
17 class="org.hisp.dhis.dataentryform.hibernate.HibernateDataEntryFormStore">17 class="org.hisp.dhis.dataentryform.hibernate.HibernateDataEntryFormStore">
18 <property name="sessionFactory" ref="sessionFactory"/>18 <property name="sessionFactory" ref="sessionFactory"/>
19 </bean>19 </bean>
2020
21 <bean id="org.hisp.dhis.customvalue.CustomValueStore"21 <bean id="org.hisp.dhis.customvalue.CustomValueStore"
22 class="org.hisp.dhis.customvalue.hibernate.HibernateCustomValueStore">22 class="org.hisp.dhis.customvalue.hibernate.HibernateCustomValueStore">
23 <property name="clazz" value="org.hisp.dhis.customvalue.CustomValue"/>23 <property name="clazz" value="org.hisp.dhis.customvalue.CustomValue"/>
24 <property name="sessionFactory" ref="sessionFactory"/>24 <property name="sessionFactory" ref="sessionFactory"/>
25 </bean>25 </bean>
2626
27 <bean id="org.hisp.dhis.dataelement.DataElementStore"27 <bean id="org.hisp.dhis.dataelement.DataElementStore"
28 class="org.hisp.dhis.dataelement.hibernate.HibernateDataElementStore">28 class="org.hisp.dhis.dataelement.hibernate.HibernateDataElementStore">
29 <property name="sessionFactory" ref="sessionFactory"/>29 <property name="sessionFactory" ref="sessionFactory"/>
30 <property name="statementManager" ref="statementManager"/>30 <property name="statementManager" ref="statementManager"/>
31 </bean>31 </bean>
32 32
33 <bean id="org.hisp.dhis.dataelement.DataElementGroupStore"33 <bean id="org.hisp.dhis.dataelement.DataElementGroupStore"
34 class="org.hisp.dhis.hibernate.HibernateGenericStore">34 class="org.hisp.dhis.hibernate.HibernateGenericStore">
35 <property name="clazz" value="org.hisp.dhis.dataelement.DataElementGroup"/>35 <property name="clazz" value="org.hisp.dhis.dataelement.DataElementGroup"/>
36 <property name="sessionFactory" ref="sessionFactory"/>36 <property name="sessionFactory" ref="sessionFactory"/>
37 </bean>37 </bean>
38 38
39 <bean id="org.hisp.dhis.dataelement.DataElementGroupSetStore"39 <bean id="org.hisp.dhis.dataelement.DataElementGroupSetStore"
40 class="org.hisp.dhis.hibernate.HibernateGenericStore">40 class="org.hisp.dhis.hibernate.HibernateGenericStore">
41 <property name="clazz" value="org.hisp.dhis.dataelement.DataElementGroupSet"/>41 <property name="clazz" value="org.hisp.dhis.dataelement.DataElementGroupSet"/>
42 <property name="sessionFactory" ref="sessionFactory"/>42 <property name="sessionFactory" ref="sessionFactory"/>
43 </bean>43 </bean>
44 44
45 <bean id="org.hisp.dhis.datadictionary.DataDictionaryStore"45 <bean id="org.hisp.dhis.datadictionary.DataDictionaryStore"
46 class="org.hisp.dhis.hibernate.HibernateGenericStore">46 class="org.hisp.dhis.hibernate.HibernateGenericStore">
47 <property name="clazz" value="org.hisp.dhis.datadictionary.DataDictionary"/>47 <property name="clazz" value="org.hisp.dhis.datadictionary.DataDictionary"/>
48 <property name="sessionFactory" ref="sessionFactory"/>48 <property name="sessionFactory" ref="sessionFactory"/>
49 </bean>49 </bean>
50 50
51 <bean id="org.hisp.dhis.datavalue.DataValueStore"51 <bean id="org.hisp.dhis.datavalue.DataValueStore"
52 class="org.hisp.dhis.datavalue.hibernate.HibernateDataValueStore">52 class="org.hisp.dhis.datavalue.hibernate.HibernateDataValueStore">
53 <property name="sessionFactory" ref="sessionFactory"/>53 <property name="sessionFactory" ref="sessionFactory"/>
54 <property name="statementManager" ref="statementManager"/>54 <property name="statementManager" ref="statementManager"/>
55 <property name="periodStore" ref="org.hisp.dhis.period.PeriodStore"/>55 <property name="periodStore" ref="org.hisp.dhis.period.PeriodStore"/>
56 </bean>56 </bean>
57 57
58 <bean id="org.hisp.dhis.indicator.IndicatorStore"58 <bean id="org.hisp.dhis.indicator.IndicatorStore"
59 class="org.hisp.dhis.indicator.hibernate.HibernateIndicatorStore">59 class="org.hisp.dhis.indicator.hibernate.HibernateIndicatorStore">
60 <property name="sessionFactory" ref="sessionFactory"/>60 <property name="sessionFactory" ref="sessionFactory"/>
61 </bean>61 </bean>
62 62
63 <bean id="org.hisp.dhis.indicator.IndicatorTypeStore"63 <bean id="org.hisp.dhis.indicator.IndicatorTypeStore"
64 class="org.hisp.dhis.hibernate.HibernateGenericStore">64 class="org.hisp.dhis.hibernate.HibernateGenericStore">
65 <property name="clazz" value="org.hisp.dhis.indicator.IndicatorType"/>65 <property name="clazz" value="org.hisp.dhis.indicator.IndicatorType"/>
66 <property name="sessionFactory" ref="sessionFactory"/>66 <property name="sessionFactory" ref="sessionFactory"/>
67 </bean>67 </bean>
68 68
69 <bean id="org.hisp.dhis.indicator.IndicatorGroupStore"69 <bean id="org.hisp.dhis.indicator.IndicatorGroupStore"
70 class="org.hisp.dhis.hibernate.HibernateGenericStore">70 class="org.hisp.dhis.hibernate.HibernateGenericStore">
71 <property name="clazz" value="org.hisp.dhis.indicator.IndicatorGroup"/>71 <property name="clazz" value="org.hisp.dhis.indicator.IndicatorGroup"/>
72 <property name="sessionFactory" ref="sessionFactory"/>72 <property name="sessionFactory" ref="sessionFactory"/>
73 </bean>73 </bean>
74 74
75 <bean id="org.hisp.dhis.indicator.IndicatorGroupSetStore"75 <bean id="org.hisp.dhis.indicator.IndicatorGroupSetStore"
76 class="org.hisp.dhis.hibernate.HibernateGenericStore">76 class="org.hisp.dhis.hibernate.HibernateGenericStore">
77 <property name="clazz" value="org.hisp.dhis.indicator.IndicatorGroupSet"/>77 <property name="clazz" value="org.hisp.dhis.indicator.IndicatorGroupSet"/>
78 <property name="sessionFactory" ref="sessionFactory"/>78 <property name="sessionFactory" ref="sessionFactory"/>
79 </bean>79 </bean>
80 80
81 <bean id="org.hisp.dhis.period.PeriodStore"81 <bean id="org.hisp.dhis.period.PeriodStore"
82 class="org.hisp.dhis.period.hibernate.HibernatePeriodStore">82 class="org.hisp.dhis.period.hibernate.HibernatePeriodStore">
83 <property name="sessionFactory" ref="sessionFactory"/>83 <property name="sessionFactory" ref="sessionFactory"/>
84 </bean>84 </bean>
85 85
86 <bean id="org.hisp.dhis.source.SourceStore"86 <bean id="org.hisp.dhis.source.SourceStore"
87 class="org.hisp.dhis.source.hibernate.HibernateSourceStore">87 class="org.hisp.dhis.source.hibernate.HibernateSourceStore">
88 <property name="sessionFactory" ref="sessionFactory"/>88 <property name="sessionFactory" ref="sessionFactory"/>
89 </bean>89 </bean>
90 90
91 <bean id="org.hisp.dhis.dataset.DataSetStore"91 <bean id="org.hisp.dhis.dataset.DataSetStore"
92 class="org.hisp.dhis.dataset.hibernate.HibernateDataSetStore">92 class="org.hisp.dhis.dataset.hibernate.HibernateDataSetStore">
93 <property name="sessionFactory" ref="sessionFactory"/>93 <property name="sessionFactory" ref="sessionFactory"/>
94 <property name="periodStore"94 <property name="periodStore"
95 ref="org.hisp.dhis.period.PeriodStore"/>95 ref="org.hisp.dhis.period.PeriodStore"/>
96 </bean>96 </bean>
9797
98 <bean id="org.hisp.dhis.dataset.CompleteDataSetRegistrationStore"98 <bean id="org.hisp.dhis.dataset.CompleteDataSetRegistrationStore"
99 class="org.hisp.dhis.dataset.hibernate.HibernateCompleteDataSetRegistrationStore"> 99 class="org.hisp.dhis.dataset.hibernate.HibernateCompleteDataSetRegistrationStore">
100 <property name="sessionFactory" ref="sessionFactory"/>100 <property name="sessionFactory" ref="sessionFactory"/>
101 <property name="periodService"101 <property name="periodService"
102 ref="org.hisp.dhis.period.PeriodService"/>102 ref="org.hisp.dhis.period.PeriodService"/>
103 </bean>103 </bean>
104 104
105 <bean id="org.hisp.dhis.minmax.MinMaxDataElementStore"105 <bean id="org.hisp.dhis.minmax.MinMaxDataElementStore"
106 class="org.hisp.dhis.minmax.hibernate.HibernateMinMaxDataElementStore">106 class="org.hisp.dhis.minmax.hibernate.HibernateMinMaxDataElementStore">
107 <property name="clazz" value="org.hisp.dhis.minmax.MinMaxDataElement"/>107 <property name="clazz" value="org.hisp.dhis.minmax.MinMaxDataElement"/>
108 <property name="sessionFactory" ref="sessionFactory"/>108 <property name="sessionFactory" ref="sessionFactory"/>
109 </bean>109 </bean>
110 110
111 <bean id="org.hisp.dhis.expression.ExpressionStore"111 <bean id="org.hisp.dhis.expression.ExpressionStore"
112 class="org.hisp.dhis.hibernate.HibernateGenericStore">112 class="org.hisp.dhis.hibernate.HibernateGenericStore">
113 <property name="clazz" value="org.hisp.dhis.expression.Expression"/>113 <property name="clazz" value="org.hisp.dhis.expression.Expression"/>
114 <property name="sessionFactory" ref="sessionFactory"/>114 <property name="sessionFactory" ref="sessionFactory"/>
115 </bean>115 </bean>
116 116
117 <bean id="org.hisp.dhis.validation.ValidationRuleStore"117 <bean id="org.hisp.dhis.validation.ValidationRuleStore"
118 class="org.hisp.dhis.hibernate.HibernateGenericStore">118 class="org.hisp.dhis.hibernate.HibernateGenericStore">
119 <property name="clazz" value="org.hisp.dhis.validation.ValidationRule"/>119 <property name="clazz" value="org.hisp.dhis.validation.ValidationRule"/>
120 <property name="sessionFactory" ref="sessionFactory"/>120 <property name="sessionFactory" ref="sessionFactory"/>
121 </bean>121 </bean>
122 122
123 <bean id="org.hisp.dhis.validation.ValidationRuleGroupStore"123 <bean id="org.hisp.dhis.validation.ValidationRuleGroupStore"
124 class="org.hisp.dhis.hibernate.HibernateGenericStore">124 class="org.hisp.dhis.hibernate.HibernateGenericStore">
125 <property name="clazz" value="org.hisp.dhis.validation.ValidationRuleGroup"/>125 <property name="clazz" value="org.hisp.dhis.validation.ValidationRuleGroup"/>
126 <property name="sessionFactory" ref="sessionFactory"/>126 <property name="sessionFactory" ref="sessionFactory"/>
127 </bean>127 </bean>
128 128
129 <bean id="org.hisp.dhis.dataelement.DataElementCategoryStore"129 <bean id="org.hisp.dhis.dataelement.DataElementCategoryStore"
130 class="org.hisp.dhis.hibernate.HibernateGenericStore">130 class="org.hisp.dhis.hibernate.HibernateGenericStore">
131 <property name="clazz" value="org.hisp.dhis.dataelement.DataElementCategory"/>131 <property name="clazz" value="org.hisp.dhis.dataelement.DataElementCategory"/>
132 <property name="sessionFactory" ref="sessionFactory"/>132 <property name="sessionFactory" ref="sessionFactory"/>
133 </bean> 133 </bean>
134 134
135 <bean id="org.hisp.dhis.dataelement.DataElementCategoryOptionStore"135 <bean id="org.hisp.dhis.dataelement.DataElementCategoryOptionStore"
136 class="org.hisp.dhis.hibernate.HibernateGenericStore">136 class="org.hisp.dhis.hibernate.HibernateGenericStore">
137 <property name="clazz" value="org.hisp.dhis.dataelement.DataElementCategoryOption"/>137 <property name="clazz" value="org.hisp.dhis.dataelement.DataElementCategoryOption"/>
138 <property name="sessionFactory" ref="sessionFactory"/>138 <property name="sessionFactory" ref="sessionFactory"/>
139 </bean>139 </bean>
140 140
141 <bean id="org.hisp.dhis.dataelement.DataElementCategoryComboStore"141 <bean id="org.hisp.dhis.dataelement.DataElementCategoryComboStore"
142 class="org.hisp.dhis.hibernate.HibernateGenericStore">142 class="org.hisp.dhis.hibernate.HibernateGenericStore">
143 <property name="clazz" value="org.hisp.dhis.dataelement.DataElementCategoryCombo"/>143 <property name="clazz" value="org.hisp.dhis.dataelement.DataElementCategoryCombo"/>
144 <property name="sessionFactory" ref="sessionFactory"/>144 <property name="sessionFactory" ref="sessionFactory"/>
145 </bean>145 </bean>
146 146
147 <bean id="org.hisp.dhis.dataelement.DataElementCategoryOptionComboStore"147 <bean id="org.hisp.dhis.dataelement.DataElementCategoryOptionComboStore"
148 class="org.hisp.dhis.hibernate.HibernateGenericStore">148 class="org.hisp.dhis.hibernate.HibernateGenericStore">
149 <property name="clazz" value="org.hisp.dhis.dataelement.DataElementCategoryOptionCombo"/>149 <property name="clazz" value="org.hisp.dhis.dataelement.DataElementCategoryOptionCombo"/>
150 <property name="sessionFactory" ref="sessionFactory"/>150 <property name="sessionFactory" ref="sessionFactory"/>
151 </bean>151 </bean>
152 152
153 <bean id="org.hisp.dhis.dataset.SectionStore"153 <bean id="org.hisp.dhis.dataset.SectionStore"
154 class="org.hisp.dhis.dataset.hibernate.HibernateSectionStore">154 class="org.hisp.dhis.dataset.hibernate.HibernateSectionStore">
155 <property name="sessionFactory" ref="sessionFactory"/>155 <property name="sessionFactory" ref="sessionFactory"/>
156 </bean>156 </bean>
157 157
158 <bean id="org.hisp.dhis.organisationunit.OrganisationUnitStore"158 <bean id="org.hisp.dhis.organisationunit.OrganisationUnitStore"
159 class="org.hisp.dhis.organisationunit.hibernate.HibernateOrganisationUnitStore">159 class="org.hisp.dhis.organisationunit.hibernate.HibernateOrganisationUnitStore">
160 <property name="sessionFactory" ref="sessionFactory"/>160 <property name="sessionFactory" ref="sessionFactory"/>
161 <property name="statementManager" ref="statementManager"/>161 <property name="statementManager" ref="statementManager"/>
162 <property name="jdbcTemplate" ref="jdbcTemplate"/>162 <property name="jdbcTemplate" ref="jdbcTemplate"/>
163 </bean>163 </bean>
164164
165 <bean id="org.hisp.dhis.organisationunit.OrganisationUnitGroupStore"165 <bean id="org.hisp.dhis.organisationunit.OrganisationUnitGroupStore"
166 class="org.hisp.dhis.hibernate.HibernateGenericStore">166 class="org.hisp.dhis.hibernate.HibernateGenericStore">
167 <property name="clazz" value="org.hisp.dhis.organisationunit.OrganisationUnitGroup"/>167 <property name="clazz" value="org.hisp.dhis.organisationunit.OrganisationUnitGroup"/>
168 <property name="sessionFactory" ref="sessionFactory"/>168 <property name="sessionFactory" ref="sessionFactory"/>
169 </bean>169 </bean>
170 170
171 <bean id="org.hisp.dhis.organisationunit.OrganisationUnitGroupSetStore"171 <bean id="org.hisp.dhis.organisationunit.OrganisationUnitGroupSetStore"
172 class="org.hisp.dhis.hibernate.HibernateGenericStore">172 class="org.hisp.dhis.hibernate.HibernateGenericStore">
173 <property name="clazz" value="org.hisp.dhis.organisationunit.OrganisationUnitGroupSet"/>173 <property name="clazz" value="org.hisp.dhis.organisationunit.OrganisationUnitGroupSet"/>
174 <property name="sessionFactory" ref="sessionFactory"/>174 <property name="sessionFactory" ref="sessionFactory"/>
175 </bean>175 </bean>
176 176
177 <bean id="org.hisp.dhis.dataanalysis.jdbc.DataAnalysisStore"177 <bean id="org.hisp.dhis.dataanalysis.jdbc.DataAnalysisStore"
178 class="org.hisp.dhis.dataanalysis.jdbc.JdbcDataAnalysisStore">178 class="org.hisp.dhis.dataanalysis.jdbc.JdbcDataAnalysisStore">
179 <property name="statementManager" ref="statementManager"/>179 <property name="statementManager" ref="statementManager"/>
180 <property name="statementBuilder" ref="statementBuilder"/>180 <property name="statementBuilder" ref="statementBuilder"/>
181 </bean>181 </bean>
182 182
183 <bean id="org.hisp.dhis.datavalue.DataValueAuditStore"183 <bean id="org.hisp.dhis.datavalue.DataValueAuditStore"
184 class="org.hisp.dhis.datavalue.hibernate.HibernateDataValueAuditStore">184 class="org.hisp.dhis.datavalue.hibernate.HibernateDataValueAuditStore">
185 <property name="sessionFactory" ref="sessionFactory"/>185 <property name="sessionFactory" ref="sessionFactory"/>
186 </bean>186 </bean>
187 187
188 <bean id="org.hisp.dhis.user.UserStore" 188 <bean id="org.hisp.dhis.user.UserStore"
189 class="org.hisp.dhis.user.hibernate.HibernateUserStore">189 class="org.hisp.dhis.user.hibernate.HibernateUserStore">
190 <property name="sessionFactory" ref="sessionFactory"/>190 <property name="sessionFactory" ref="sessionFactory"/>
191 <property name="currentUserService"191 <property name="currentUserService"
192 ref="org.hisp.dhis.user.CurrentUserService"/>192 ref="org.hisp.dhis.user.CurrentUserService"/>
193 </bean>193 </bean>
194 194
195 <!-- Service definitions -->195 <!-- Service definitions -->
196196
197 <bean id="org.hisp.dhis.customvalue.CustomValueService"197 <bean id="org.hisp.dhis.customvalue.CustomValueService"
198 class="org.hisp.dhis.customvalue.DefaultCustomValueService">198 class="org.hisp.dhis.customvalue.DefaultCustomValueService">
199 <property name="customValueStore"199 <property name="customValueStore"
200 ref="org.hisp.dhis.customvalue.CustomValueStore"/>200 ref="org.hisp.dhis.customvalue.CustomValueStore"/>
201 </bean>201 </bean>
202202
203 <bean id="org.hisp.dhis.datavalue.DataValueService"203 <bean id="org.hisp.dhis.datavalue.DataValueService"
204 class="org.hisp.dhis.datavalue.DefaultDataValueService">204 class="org.hisp.dhis.datavalue.DefaultDataValueService">
205 <property name="dataValueStore"205 <property name="dataValueStore"
206 ref="org.hisp.dhis.datavalue.DataValueStore"/>206 ref="org.hisp.dhis.datavalue.DataValueStore"/>
207 <property name="dataValueAuditService" ref="org.hisp.dhis.datavalue.DataValueAuditService"/>207 <property name="dataValueAuditService" ref="org.hisp.dhis.datavalue.DataValueAuditService"/>
208 </bean>208 </bean>
209209
210 <bean id="org.hisp.dhis.datavalue.DataValueAuditService"210 <bean id="org.hisp.dhis.datavalue.DataValueAuditService"
211 class="org.hisp.dhis.datavalue.DefaultDataValueAuditService">211 class="org.hisp.dhis.datavalue.DefaultDataValueAuditService">
212 <property name="dataValueAuditStore"212 <property name="dataValueAuditStore"
213 ref="org.hisp.dhis.datavalue.DataValueAuditStore"/>213 ref="org.hisp.dhis.datavalue.DataValueAuditStore"/>
214 </bean>214 </bean>
215 215
216 <bean id="org.hisp.dhis.dataelement.DataElementService"216 <bean id="org.hisp.dhis.dataelement.DataElementService"
217 class="org.hisp.dhis.dataelement.DefaultDataElementService">217 class="org.hisp.dhis.dataelement.DefaultDataElementService">
218 <property name="dataElementStore"218 <property name="dataElementStore"
219 ref="org.hisp.dhis.dataelement.DataElementStore"/>219 ref="org.hisp.dhis.dataelement.DataElementStore"/>
220 <property name="dataElementGroupStore"220 <property name="dataElementGroupStore"
221 ref="org.hisp.dhis.dataelement.DataElementGroupStore"/>221 ref="org.hisp.dhis.dataelement.DataElementGroupStore"/>
222 <property name="dataElementGroupSetStore"222 <property name="dataElementGroupSetStore"
223 ref="org.hisp.dhis.dataelement.DataElementGroupSetStore"/> 223 ref="org.hisp.dhis.dataelement.DataElementGroupSetStore"/>
224 <property name="i18nService"224 <property name="i18nService"
225 ref="org.hisp.dhis.i18n.I18nService"/>225 ref="org.hisp.dhis.i18n.I18nService"/>
226 </bean>226 </bean>
227 227
228 <bean id="org.hisp.dhis.minmax.MinMaxDataElementService"228 <bean id="org.hisp.dhis.minmax.MinMaxDataElementService"
229 class="org.hisp.dhis.minmax.DefaultMinMaxDataElementService">229 class="org.hisp.dhis.minmax.DefaultMinMaxDataElementService">
230 <property name="minMaxDataElementStore"230 <property name="minMaxDataElementStore"
231 ref="org.hisp.dhis.minmax.MinMaxDataElementStore"/>231 ref="org.hisp.dhis.minmax.MinMaxDataElementStore"/>
232 </bean>232 </bean>
233 233
234 <bean id="org.hisp.dhis.datadictionary.DataDictionaryService"234 <bean id="org.hisp.dhis.datadictionary.DataDictionaryService"
235 class="org.hisp.dhis.datadictionary.DefaultDataDictionaryService">235 class="org.hisp.dhis.datadictionary.DefaultDataDictionaryService">
236 <property name="dataDictionaryStore"236 <property name="dataDictionaryStore"
237 ref="org.hisp.dhis.datadictionary.DataDictionaryStore"/>237 ref="org.hisp.dhis.datadictionary.DataDictionaryStore"/>
238 <property name="i18nService"238 <property name="i18nService"
239 ref="org.hisp.dhis.i18n.I18nService"/>239 ref="org.hisp.dhis.i18n.I18nService"/>
240 </bean>240 </bean>
241 241
242 <bean id="org.hisp.dhis.indicator.IndicatorService"242 <bean id="org.hisp.dhis.indicator.IndicatorService"
243 class="org.hisp.dhis.indicator.DefaultIndicatorService">243 class="org.hisp.dhis.indicator.DefaultIndicatorService">
244 <property name="indicatorStore"244 <property name="indicatorStore"
245 ref="org.hisp.dhis.indicator.IndicatorStore"/>245 ref="org.hisp.dhis.indicator.IndicatorStore"/>
246 <property name="indicatorTypeStore"246 <property name="indicatorTypeStore"
247 ref="org.hisp.dhis.indicator.IndicatorTypeStore"/>247 ref="org.hisp.dhis.indicator.IndicatorTypeStore"/>
248 <property name="indicatorGroupStore"248 <property name="indicatorGroupStore"
249 ref="org.hisp.dhis.indicator.IndicatorGroupStore"/>249 ref="org.hisp.dhis.indicator.IndicatorGroupStore"/>
250 <property name="indicatorGroupSetStore"250 <property name="indicatorGroupSetStore"
251 ref="org.hisp.dhis.indicator.IndicatorGroupSetStore"/>251 ref="org.hisp.dhis.indicator.IndicatorGroupSetStore"/>
252 <property name="i18nService"252 <property name="i18nService"
253 ref="org.hisp.dhis.i18n.I18nService"/>253 ref="org.hisp.dhis.i18n.I18nService"/>
254 </bean>254 </bean>
255255
256 <bean id="org.hisp.dhis.period.PeriodService"256 <bean id="org.hisp.dhis.period.PeriodService"
257 class="org.hisp.dhis.period.DefaultPeriodService">257 class="org.hisp.dhis.period.DefaultPeriodService">
258 <property name="periodStore"258 <property name="periodStore"
259 ref="org.hisp.dhis.period.PeriodStore"/>259 ref="org.hisp.dhis.period.PeriodStore"/>
260 </bean>260 </bean>
261 261
262 <bean id="org.hisp.dhis.dataset.DataSetService"262 <bean id="org.hisp.dhis.dataset.DataSetService"
263 class="org.hisp.dhis.dataset.DefaultDataSetService">263 class="org.hisp.dhis.dataset.DefaultDataSetService">
264 <property name="dataSetStore"264 <property name="dataSetStore"
265 ref="org.hisp.dhis.dataset.DataSetStore"/>265 ref="org.hisp.dhis.dataset.DataSetStore"/>
266 <property name="dataEntryFormService"266 <property name="dataEntryFormService"
267 ref="org.hisp.dhis.dataentryform.DataEntryFormService"/>267 ref="org.hisp.dhis.dataentryform.DataEntryFormService"/>
268 <property name="i18nService"268 <property name="i18nService"
269 ref="org.hisp.dhis.i18n.I18nService"/>269 ref="org.hisp.dhis.i18n.I18nService"/>
270 <property name="currentUserService"270 <property name="currentUserService"
271 ref="org.hisp.dhis.user.CurrentUserService"/>271 ref="org.hisp.dhis.user.CurrentUserService"/>
272 </bean>272 </bean>
273273
274 <bean id="org.hisp.dhis.dataset.CompleteDataSetRegistrationService"274 <bean id="org.hisp.dhis.dataset.CompleteDataSetRegistrationService"
275 class="org.hisp.dhis.dataset.DefaultCompleteDataSetRegistrationService"> 275 class="org.hisp.dhis.dataset.DefaultCompleteDataSetRegistrationService">
276 <property name="completeDataSetRegistrationStore"276 <property name="completeDataSetRegistrationStore"
277 ref="org.hisp.dhis.dataset.CompleteDataSetRegistrationStore"/>277 ref="org.hisp.dhis.dataset.CompleteDataSetRegistrationStore"/>
278 </bean>278 </bean>
279 279
280 <bean id="org.hisp.dhis.dataset.SectionService"280 <bean id="org.hisp.dhis.dataset.SectionService"
281 class="org.hisp.dhis.dataset.DefaultSectionService">281 class="org.hisp.dhis.dataset.DefaultSectionService">
282 <property name="sectionStore"282 <property name="sectionStore"
283 ref="org.hisp.dhis.dataset.SectionStore"/>283 ref="org.hisp.dhis.dataset.SectionStore"/>
284 </bean>284 </bean>
285 285
286 <bean id="org.hisp.dhis.dataentryform.DataEntryFormService"286 <bean id="org.hisp.dhis.dataentryform.DataEntryFormService"
287 class="org.hisp.dhis.dataentryform.DefaultDataEntryFormService">287 class="org.hisp.dhis.dataentryform.DefaultDataEntryFormService">
288 <property name="dataEntryFormStore"288 <property name="dataEntryFormStore"
289 ref="org.hisp.dhis.dataentryform.DataEntryFormStore"/>289 ref="org.hisp.dhis.dataentryform.DataEntryFormStore"/>
290 <property name="dataEntryFormAssociationService"290 <property name="dataEntryFormAssociationService"
291 ref="org.hisp.dhis.dataentryform.DataEntryFormAssociationService"/>291 ref="org.hisp.dhis.dataentryform.DataEntryFormAssociationService"/>
292 </bean>292 </bean>
293 293
294 <bean id="org.hisp.dhis.dataentryform.DataEntryFormAssociationService"294 <bean id="org.hisp.dhis.dataentryform.DataEntryFormAssociationService"
295 class="org.hisp.dhis.dataentryform.DefaultDataEntryFormAssociationService">295 class="org.hisp.dhis.dataentryform.DefaultDataEntryFormAssociationService">
296 <property name="dataEntryFormAssociationStore"296 <property name="dataEntryFormAssociationStore"
297 ref="org.hisp.dhis.dataentryform.DataEntryFormAssociationStore"/>297 ref="org.hisp.dhis.dataentryform.DataEntryFormAssociationStore"/>
298 </bean>298 </bean>
299 299
300 <bean id="org.hisp.dhis.expression.ExpressionService"300 <bean id="org.hisp.dhis.expression.ExpressionService"
301 class="org.hisp.dhis.expression.DefaultExpressionService">301 class="org.hisp.dhis.expression.DefaultExpressionService">
302 <property name="expressionStore"302 <property name="expressionStore"
303 ref="org.hisp.dhis.expression.ExpressionStore"/>303 ref="org.hisp.dhis.expression.ExpressionStore"/>
304 <property name="dataElementService"304 <property name="dataElementService"
305 ref="org.hisp.dhis.dataelement.DataElementService"/>305 ref="org.hisp.dhis.dataelement.DataElementService"/>
306 <property name="dataValueService"306 <property name="dataValueService"
307 ref="org.hisp.dhis.datavalue.DataValueService"/>307 ref="org.hisp.dhis.datavalue.DataValueService"/>
308 <property name="categoryService"308 <property name="categoryService"
309 ref="org.hisp.dhis.dataelement.DataElementCategoryService"/>309 ref="org.hisp.dhis.dataelement.DataElementCategoryService"/>
310 </bean>310 </bean>
311311
312 <bean id="org.hisp.dhis.validation.ValidationRuleService"312 <bean id="org.hisp.dhis.validation.ValidationRuleService"
313 class="org.hisp.dhis.validation.DefaultValidationRuleService">313 class="org.hisp.dhis.validation.DefaultValidationRuleService">
314 <property name="validationRuleStore"314 <property name="validationRuleStore"
315 ref="org.hisp.dhis.validation.ValidationRuleStore"/>315 ref="org.hisp.dhis.validation.ValidationRuleStore"/>
316 <property name="validationRuleGroupStore"316 <property name="validationRuleGroupStore"
317 ref="org.hisp.dhis.validation.ValidationRuleGroupStore"/>317 ref="org.hisp.dhis.validation.ValidationRuleGroupStore"/>
318 <property name="expressionService"318 <property name="expressionService"
319 ref="org.hisp.dhis.expression.ExpressionService"/>319 ref="org.hisp.dhis.expression.ExpressionService"/>
320 <property name="periodService"320 <property name="periodService"
321 ref="org.hisp.dhis.period.PeriodService"/>321 ref="org.hisp.dhis.period.PeriodService"/>
322 </bean>322 </bean>
323 323
324 <bean id="org.hisp.dhis.dataelement.DataElementCategoryService"324 <bean id="org.hisp.dhis.dataelement.DataElementCategoryService"
325 class="org.hisp.dhis.dataelement.DefaultDataElementCategoryService">325 class="org.hisp.dhis.dataelement.DefaultDataElementCategoryService">
326 <property name="dataElementCategoryStore"326 <property name="dataElementCategoryStore"
327 ref="org.hisp.dhis.dataelement.DataElementCategoryStore"/>327 ref="org.hisp.dhis.dataelement.DataElementCategoryStore"/>
328 <property name="dataElementCategoryOptionStore"328 <property name="dataElementCategoryOptionStore"
329 ref="org.hisp.dhis.dataelement.DataElementCategoryOptionStore"/>329 ref="org.hisp.dhis.dataelement.DataElementCategoryOptionStore"/>
330 <property name="dataElementCategoryComboStore"330 <property name="dataElementCategoryComboStore"
331 ref="org.hisp.dhis.dataelement.DataElementCategoryComboStore"/>331 ref="org.hisp.dhis.dataelement.DataElementCategoryComboStore"/>
332 <property name="dataElementCategoryOptionComboStore"332 <property name="dataElementCategoryOptionComboStore"
333 ref="org.hisp.dhis.dataelement.DataElementCategoryOptionComboStore"/> 333 ref="org.hisp.dhis.dataelement.DataElementCategoryOptionComboStore"/>
334 <property name="dataElementService"334 <property name="dataElementService"
335 ref="org.hisp.dhis.dataelement.DataElementService"/>335 ref="org.hisp.dhis.dataelement.DataElementService"/>
336 </bean>336 </bean>
337 337
338 <bean id="org.hisp.dhis.dimension.DimensionService"338 <bean id="org.hisp.dhis.dimension.DimensionService"
339 class="org.hisp.dhis.dimension.DefaultDimensionService">339 class="org.hisp.dhis.dimension.DefaultDimensionService">
340 <property name="dataElementService"340 <property name="dataElementService"
341 ref="org.hisp.dhis.dataelement.DataElementService"/>341 ref="org.hisp.dhis.dataelement.DataElementService"/>
342 <property name="categoryService"342 <property name="categoryService"
343 ref="org.hisp.dhis.dataelement.DataElementCategoryService"/>343 ref="org.hisp.dhis.dataelement.DataElementCategoryService"/>
344 </bean>344 </bean>
345 345
346 <bean id="org.hisp.dhis.organisationunit.OrganisationUnitService"346 <bean id="org.hisp.dhis.organisationunit.OrganisationUnitService"
347 class="org.hisp.dhis.organisationunit.DefaultOrganisationUnitService">347 class="org.hisp.dhis.organisationunit.DefaultOrganisationUnitService">
348 <property name="sourceStore"348 <property name="sourceStore"
349 ref="org.hisp.dhis.source.SourceStore"/>349 ref="org.hisp.dhis.source.SourceStore"/>
350 <property name="organisationUnitStore"350 <property name="organisationUnitStore"
351 ref="org.hisp.dhis.organisationunit.OrganisationUnitStore"/>351 ref="org.hisp.dhis.organisationunit.OrganisationUnitStore"/>
352 <property name="currentUserService"352 <property name="currentUserService"
353 ref="org.hisp.dhis.user.CurrentUserService"/>353 ref="org.hisp.dhis.user.CurrentUserService"/>
354 </bean>354 </bean>
355355
356 <bean id="org.hisp.dhis.organisationunit.OrganisationUnitGroupService"356 <bean id="org.hisp.dhis.organisationunit.OrganisationUnitGroupService"
357 class="org.hisp.dhis.organisationunit.DefaultOrganisationUnitGroupService">357 class="org.hisp.dhis.organisationunit.DefaultOrganisationUnitGroupService">
358 <property name="organisationUnitGroupStore"358 <property name="organisationUnitGroupStore"
359 ref="org.hisp.dhis.organisationunit.OrganisationUnitGroupStore"/>359 ref="org.hisp.dhis.organisationunit.OrganisationUnitGroupStore"/>
360 <property name="organisationUnitGroupSetStore"360 <property name="organisationUnitGroupSetStore"
361 ref="org.hisp.dhis.organisationunit.OrganisationUnitGroupSetStore"/>361 ref="org.hisp.dhis.organisationunit.OrganisationUnitGroupSetStore"/>
362 </bean>362 </bean>
363 363
364 <bean id="org.hisp.dhis.dataanalysis.StdDevOutlierAnalysisService" 364 <bean id="org.hisp.dhis.dataanalysis.StdDevOutlierAnalysisService"
365 class="org.hisp.dhis.dataanalysis.StdDevOutlierAnalysisService">365 class="org.hisp.dhis.dataanalysis.StdDevOutlierAnalysisService">
366 <property name="organisationUnitService"366 <property name="organisationUnitService"
367 ref="org.hisp.dhis.organisationunit.OrganisationUnitService"/>367 ref="org.hisp.dhis.organisationunit.OrganisationUnitService"/>
368 <property name="dataAnalysisStore"368 <property name="dataAnalysisStore"
369 ref="org.hisp.dhis.dataanalysis.jdbc.DataAnalysisStore"/>369 ref="org.hisp.dhis.dataanalysis.jdbc.DataAnalysisStore"/>
370 </bean>370 </bean>
371371
372 <bean id="org.hisp.dhis.dataanalysis.MinMaxOutlierAnalysisService"372 <bean id="org.hisp.dhis.dataanalysis.MinMaxOutlierAnalysisService"
373 class="org.hisp.dhis.dataanalysis.MinMaxOutlierAnalysisService">373 class="org.hisp.dhis.dataanalysis.MinMaxOutlierAnalysisService">
374 <property name="organisationUnitService"374 <property name="organisationUnitService"
375 ref="org.hisp.dhis.organisationunit.OrganisationUnitService"/>375 ref="org.hisp.dhis.organisationunit.OrganisationUnitService"/>
376 <property name="minMaxDataElementService"376 <property name="minMaxDataElementService"
377 ref="org.hisp.dhis.minmax.MinMaxDataElementService" />377 ref="org.hisp.dhis.minmax.MinMaxDataElementService" />
378 <property name="dataAnalysisStore"378 <property name="dataAnalysisStore"
379 ref="org.hisp.dhis.dataanalysis.jdbc.DataAnalysisStore"/> 379 ref="org.hisp.dhis.dataanalysis.jdbc.DataAnalysisStore"/>
380 </bean>380 </bean>
381 381
382 <bean id="org.hisp.dhis.dataanalysis.GapAnalysisService"382 <bean id="org.hisp.dhis.dataanalysis.GapAnalysisService"
383 class="org.hisp.dhis.dataanalysis.GapAnalysisService">383 class="org.hisp.dhis.dataanalysis.GapAnalysisService">
384 <property name="organisationUnitService"384 <property name="organisationUnitService"
385 ref="org.hisp.dhis.organisationunit.OrganisationUnitService"/>385 ref="org.hisp.dhis.organisationunit.OrganisationUnitService"/>
386 <property name="dataAnalysisStore"386 <property name="dataAnalysisStore"
387 ref="org.hisp.dhis.dataanalysis.jdbc.DataAnalysisStore"/> 387 ref="org.hisp.dhis.dataanalysis.jdbc.DataAnalysisStore"/>
388 </bean>388 </bean>
389 389
390 <bean id="org.hisp.dhis.dataanalysis.FollowupAnalysisService"390 <bean id="org.hisp.dhis.dataanalysis.FollowupAnalysisService"
391 class="org.hisp.dhis.dataanalysis.FollowupAnalysisService">391 class="org.hisp.dhis.dataanalysis.FollowupAnalysisService">
392 <property name="dataAnalysisStore"392 <property name="dataAnalysisStore"
393 ref="org.hisp.dhis.dataanalysis.jdbc.DataAnalysisStore"/> 393 ref="org.hisp.dhis.dataanalysis.jdbc.DataAnalysisStore"/>
394 </bean>394 </bean>
395 395
396 <bean id="dataAnalysisServiceProvider"396 <bean id="dataAnalysisServiceProvider"
397 class="org.hisp.dhis.common.ServiceProvider">397 class="org.hisp.dhis.common.ServiceProvider">
398 <property name="services">398 <property name="services">
399 <map>399 <map>
400 <entry>400 <entry>
401 <key><value>stddevoutlier</value></key>401 <key><value>stddevoutlier</value></key>
402 <ref bean="org.hisp.dhis.dataanalysis.StdDevOutlierAnalysisService"/>402 <ref bean="org.hisp.dhis.dataanalysis.StdDevOutlierAnalysisService"/>
403 </entry>403 </entry>
404 <entry>404 <entry>
405 <key><value>minmaxoutlier</value></key>405 <key><value>minmaxoutlier</value></key>
406 <ref bean="org.hisp.dhis.dataanalysis.MinMaxOutlierAnalysisService"/>406 <ref bean="org.hisp.dhis.dataanalysis.MinMaxOutlierAnalysisService"/>
407 </entry>407 </entry>
408 <entry>408 <entry>
409 <key><value>gap</value></key>409 <key><value>gap</value></key>
410 <ref bean="org.hisp.dhis.dataanalysis.GapAnalysisService"/>410 <ref bean="org.hisp.dhis.dataanalysis.GapAnalysisService"/>
411 </entry>411 </entry>
412 <entry>412 <entry>
413 <key><value>followup</value></key>413 <key><value>followup</value></key>
414 <ref bean="org.hisp.dhis.dataanalysis.FollowupAnalysisService"/>414 <ref bean="org.hisp.dhis.dataanalysis.FollowupAnalysisService"/>
415 </entry>415 </entry>
416 </map> 416 </map>
417 </property>417 </property>
418 </bean>418 </bean>
419 419
420 <bean id="org.hisp.dhis.user.CurrentUserService"420 <bean id="org.hisp.dhis.user.CurrentUserService"
421 class="org.hisp.dhis.user.DefaultCurrentUserService">421 class="org.hisp.dhis.user.DefaultCurrentUserService">
422 <property name="userStore" ref="org.hisp.dhis.user.UserStore"/>422 <property name="userStore" ref="org.hisp.dhis.user.UserStore"/>
423 </bean>423 </bean>
424 424
425 <bean id="org.hisp.dhis.user.UserSettingService"425 <bean id="org.hisp.dhis.user.UserSettingService"
426 class="org.hisp.dhis.user.DefaultUserSettingService">426 class="org.hisp.dhis.user.DefaultUserSettingService">
427 <property name="currentUserService" ref="org.hisp.dhis.user.CurrentUserService"/>427 <property name="currentUserService" ref="org.hisp.dhis.user.CurrentUserService"/>
428 <property name="userStore" ref="org.hisp.dhis.user.UserStore"/>428 <property name="userStore" ref="org.hisp.dhis.user.UserStore"/>
429 </bean>429 </bean>
430 430
431 <bean id="org.hisp.dhis.user.UserService"431 <bean id="org.hisp.dhis.user.UserService"
432 class="org.hisp.dhis.user.DefaultUserService">432 class="org.hisp.dhis.user.DefaultUserService">
433 <property name="userStore" ref="org.hisp.dhis.user.UserStore"/>433 <property name="userStore" ref="org.hisp.dhis.user.UserStore"/>
434 </bean>434 </bean>
435 435
436 <!-- Startup routine definitions -->436 <!-- Startup routine definitions -->
437 437
438 <bean id="org.hisp.dhis.dataentryform.DataEntryFormPopulator"438 <bean id="org.hisp.dhis.dataentryform.DataEntryFormPopulator"
439 class="org.hisp.dhis.dataentryform.DataEntryFormPopulator">439 class="org.hisp.dhis.dataentryform.DataEntryFormPopulator">
440 <property name="jdbcTemplate" ref="jdbcTemplate"/>440 <property name="jdbcTemplate" ref="jdbcTemplate"/>
441 <property name="statementBuilder" ref="statementBuilder"/>441 <property name="statementBuilder" ref="statementBuilder"/>
442 <property name="runlevel" value="1"/>442 <property name="runlevel" value="1"/>
443 </bean>443 </bean>
444 444
445 <bean id="org.hisp.dhis.period.PeriodTypePopulator"445 <bean id="org.hisp.dhis.period.PeriodTypePopulator"
446 class="org.hisp.dhis.period.PeriodTypePopulator">446 class="org.hisp.dhis.period.PeriodTypePopulator">
447 <property name="periodStore"447 <property name="periodStore"
448 ref="org.hisp.dhis.period.PeriodStore"/>448 ref="org.hisp.dhis.period.PeriodStore"/>
449 <property name="runlevel" value="1"/>449 <property name="runlevel" value="1"/>
450 </bean>450 </bean>
451 451
452 <bean id="org.hisp.dhis.dataelement.DataElementDefaultDimensionPopulator"452 <bean id="org.hisp.dhis.dataelement.DataElementDefaultDimensionPopulator"
453 class="org.hisp.dhis.dataelement.DataElementDefaultDimensionPopulator">453 class="org.hisp.dhis.dataelement.DataElementDefaultDimensionPopulator">
454 <property name="dataElementService"454 <property name="dataElementService"
455 ref="org.hisp.dhis.dataelement.DataElementService"/>455 ref="org.hisp.dhis.dataelement.DataElementService"/>
456 <property name="categoryService"456 <property name="categoryService"
457 ref="org.hisp.dhis.dataelement.DataElementCategoryService"/>457 ref="org.hisp.dhis.dataelement.DataElementCategoryService"/>
458 <property name="runlevel" value="2"/>458 <property name="runlevel" value="2"/>
459 </bean>459 </bean>
460 460
461 <bean id="org.hisp.dhis.dataelement.OptionsCategoriesDefaultSortOrderPopulator"461 <bean id="org.hisp.dhis.dataelement.OptionsCategoriesDefaultSortOrderPopulator"
462 class="org.hisp.dhis.dataelement.OptionsCategoriesDefaultSortOrderPopulator">462 class="org.hisp.dhis.dataelement.OptionsCategoriesDefaultSortOrderPopulator">
463 <property name="statementManager" ref="statementManager"/>463 <property name="statementManager" ref="statementManager"/>
464 <property name="runlevel" value="1"/>464 <property name="runlevel" value="1"/>
465 <property name="skipInTests" value="true"/>465 <property name="skipInTests" value="true"/>
466 </bean>466 </bean>
467 467
468 <bean id="org.hisp.dhis.expression.MultiDimensionExpressionUpgrader"468 <bean id="org.hisp.dhis.expression.MultiDimensionExpressionUpgrader"
469 class="org.hisp.dhis.expression.MultiDimensionExpressionUpgrader">469 class="org.hisp.dhis.expression.MultiDimensionExpressionUpgrader">
470 <property name="expressionService"470 <property name="expressionService"
471 ref="org.hisp.dhis.expression.ExpressionService"/>471 ref="org.hisp.dhis.expression.ExpressionService"/>
472 <property name="indicatorService"472 <property name="indicatorService"
473 ref="org.hisp.dhis.indicator.IndicatorService"/>473 ref="org.hisp.dhis.indicator.IndicatorService"/>
474 <property name="categoryService"474 <property name="categoryService"
475 ref="org.hisp.dhis.dataelement.DataElementCategoryService"/> 475 ref="org.hisp.dhis.dataelement.DataElementCategoryService"/>
476 <property name="runlevel" value="2"/>476 <property name="runlevel" value="2"/>
477 <property name="skipInTests" value="true"/>477 <property name="skipInTests" value="true"/>
478 </bean>478 </bean>
479 479
480 <bean id="org.hisp.dhis.dataset.DataSetShortNamePopulator"480 <bean id="org.hisp.dhis.dataset.DataSetShortNamePopulator"
481 class="org.hisp.dhis.dataset.DataSetShortNamePopulator">481 class="org.hisp.dhis.dataset.DataSetShortNamePopulator">
482 <property name="dataSetService"482 <property name="dataSetService"
483 ref="org.hisp.dhis.dataset.DataSetService"/> 483 ref="org.hisp.dhis.dataset.DataSetService"/>
484 <property name="skipInTests" value="true"/>484 <property name="skipInTests" value="true"/>
485 </bean>485 </bean>
486 486
487 <bean id="org.hisp.dhis.dataelement.UuidPopulator"487 <bean id="org.hisp.dhis.dataelement.UuidPopulator"
488 class="org.hisp.dhis.dataelement.UuidPopulator">488 class="org.hisp.dhis.dataelement.UuidPopulator">
489 <property name="categoryService"489 <property name="categoryService"
490 ref="org.hisp.dhis.dataelement.DataElementCategoryService"/>490 ref="org.hisp.dhis.dataelement.DataElementCategoryService"/>
491 <property name="dataElementService"491 <property name="dataElementService"
492 ref="org.hisp.dhis.dataelement.DataElementService"/>492 ref="org.hisp.dhis.dataelement.DataElementService"/>
493 <property name="skipInTests" value="true"/>493 <property name="skipInTests" value="true"/>
494 </bean>494 </bean>
495 495
496 <bean id="org.hisp.dhis.organisationunit.OrganisationUnitHierarchyVerifier"496 <bean id="org.hisp.dhis.organisationunit.OrganisationUnitHierarchyVerifier"
497 class="org.hisp.dhis.organisationunit.OrganisationUnitHierarchyVerifier">497 class="org.hisp.dhis.organisationunit.OrganisationUnitHierarchyVerifier">
498 <property name="organisationUnitService"498 <property name="organisationUnitService"
499 ref="org.hisp.dhis.organisationunit.OrganisationUnitService"/>499 ref="org.hisp.dhis.organisationunit.OrganisationUnitService"/>
500 </bean>500 </bean>
501 501
502 <bean id="org.hisp.dhis.organisationunit.OrganisationUnitGroupSetPopulator"502 <bean id="org.hisp.dhis.organisationunit.OrganisationUnitGroupSetPopulator"
503 class="org.hisp.dhis.organisationunit.OrganisationUnitGroupSetPopulator">503 class="org.hisp.dhis.organisationunit.OrganisationUnitGroupSetPopulator">
504 <property name="organisationUnitGroupService"504 <property name="organisationUnitGroupService"
505 ref="org.hisp.dhis.organisationunit.OrganisationUnitGroupService"/>505 ref="org.hisp.dhis.organisationunit.OrganisationUnitGroupService"/>
506 <property name="skipInTests" value="true"/>506 <property name="skipInTests" value="true"/>
507 </bean>507 </bean>
508 508
509 <bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">509 <bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
510 <property name="targetObject"510 <property name="targetObject"
511 ref="org.hisp.dhis.system.startup.StartupRoutineExecutor"/>511 ref="org.hisp.dhis.system.startup.StartupRoutineExecutor"/>
512 <property name="targetMethod" value="addStartupRoutines"/>512 <property name="targetMethod" value="addStartupRoutines"/>
513 <property name="arguments">513 <property name="arguments">
514 <list>514 <list>
515 <list>515 <list>
516 <ref local="org.hisp.dhis.dataelement.OptionsCategoriesDefaultSortOrderPopulator"/>516 <ref local="org.hisp.dhis.dataelement.OptionsCategoriesDefaultSortOrderPopulator"/>
517 <ref local="org.hisp.dhis.period.PeriodTypePopulator"/>517 <ref local="org.hisp.dhis.period.PeriodTypePopulator"/>
518 <ref local="org.hisp.dhis.dataelement.DataElementDefaultDimensionPopulator"/>518 <ref local="org.hisp.dhis.dataelement.DataElementDefaultDimensionPopulator"/>
519 <ref local="org.hisp.dhis.expression.MultiDimensionExpressionUpgrader"/>519 <ref local="org.hisp.dhis.expression.MultiDimensionExpressionUpgrader"/>
520 <ref local="org.hisp.dhis.dataset.DataSetShortNamePopulator"/>520 <ref local="org.hisp.dhis.dataset.DataSetShortNamePopulator"/>
521 <ref local="org.hisp.dhis.dataelement.UuidPopulator"/>521 <ref local="org.hisp.dhis.dataelement.UuidPopulator"/>
522 <ref local="org.hisp.dhis.organisationunit.OrganisationUnitHierarchyVerifier"/>522 <ref local="org.hisp.dhis.organisationunit.OrganisationUnitHierarchyVerifier"/>
523 <ref local="org.hisp.dhis.organisationunit.OrganisationUnitGroupSetPopulator"/>523 <ref local="org.hisp.dhis.organisationunit.OrganisationUnitGroupSetPopulator"/>
524 <ref local="org.hisp.dhis.dataentryform.DataEntryFormPopulator"/>524 <ref local="org.hisp.dhis.dataentryform.DataEntryFormPopulator"/>
525 </list>525 </list>
526 </list>526 </list>
527 </property>527 </property>
528 </bean>528 </bean>
529529
530 <!-- DeletionHandlers -->530 <!-- DeletionHandlers -->
531 531
532 <bean id="org.hisp.dhis.dataentryform.DataEntryFormDeletionHandler"532 <bean id="org.hisp.dhis.dataentryform.DataEntryFormDeletionHandler"
533 class="org.hisp.dhis.dataentryform.DataEntryFormDeletionHandler">533 class="org.hisp.dhis.dataentryform.DataEntryFormDeletionHandler">
534 <property name="dataEntryFormService"534 <property name="dataEntryFormService"
535 ref="org.hisp.dhis.dataentryform.DataEntryFormService"/>535 ref="org.hisp.dhis.dataentryform.DataEntryFormService"/>
536 <property name="deletionManager"536 <property name="deletionManager"
537 ref="org.hisp.dhis.system.deletion.DeletionManager"/>537 ref="org.hisp.dhis.system.deletion.DeletionManager"/>
538 <property name="dataEntryFormAssociationService"538 <property name="dataEntryFormAssociationService"
539 ref="org.hisp.dhis.dataentryform.DataEntryFormAssociationService"/>539 ref="org.hisp.dhis.dataentryform.DataEntryFormAssociationService"/>
540 </bean>540 </bean>
541 541
542 <bean id="org.hisp.dhis.datadictionary.DataDictionaryDeletionHandler"542 <bean id="org.hisp.dhis.datadictionary.DataDictionaryDeletionHandler"
543 class="org.hisp.dhis.datadictionary.DataDictionaryDeletionHandler">543 class="org.hisp.dhis.datadictionary.DataDictionaryDeletionHandler">
544 <property name="dataDictionaryService"544 <property name="dataDictionaryService"
545 ref="org.hisp.dhis.datadictionary.DataDictionaryService"/>545 ref="org.hisp.dhis.datadictionary.DataDictionaryService"/>
546 </bean>546 </bean>
547 547
548 <bean id="org.hisp.dhis.dataelement.DataElementDeletionHandler"548 <bean id="org.hisp.dhis.dataelement.DataElementDeletionHandler"
549 class="org.hisp.dhis.dataelement.DataElementDeletionHandler">549 class="org.hisp.dhis.dataelement.DataElementDeletionHandler">
550 <property name="dataElementService"550 <property name="dataElementService"
551 ref="org.hisp.dhis.dataelement.DataElementService"/>551 ref="org.hisp.dhis.dataelement.DataElementService"/>
552 <property name="categoryService"552 <property name="categoryService"
553 ref="org.hisp.dhis.dataelement.DataElementCategoryService"/>553 ref="org.hisp.dhis.dataelement.DataElementCategoryService"/>
554 </bean>554 </bean>
555 555
556 <bean id="org.hisp.dhis.dataelement.DataElementGroupDeletionHandler"556 <bean id="org.hisp.dhis.dataelement.DataElementGroupDeletionHandler"
557 class="org.hisp.dhis.dataelement.DataElementGroupDeletionHandler">557 class="org.hisp.dhis.dataelement.DataElementGroupDeletionHandler">
558 <property name="dataElementService"558 <property name="dataElementService"
559 ref="org.hisp.dhis.dataelement.DataElementService"/>559 ref="org.hisp.dhis.dataelement.DataElementService"/>
560 </bean> 560 </bean>
561 561
562 <bean id="org.hisp.dhis.dataelement.DataElementCategoryOptionDeletionHandler"562 <bean id="org.hisp.dhis.dataelement.DataElementCategoryOptionDeletionHandler"
563 class="org.hisp.dhis.dataelement.DataElementCategoryOptionDeletionHandler">563 class="org.hisp.dhis.dataelement.DataElementCategoryOptionDeletionHandler">
564 <property name="categoryService"564 <property name="categoryService"
565 ref="org.hisp.dhis.dataelement.DataElementCategoryService"/>565 ref="org.hisp.dhis.dataelement.DataElementCategoryService"/>
566 </bean>566 </bean>
567 567
568 <bean id="org.hisp.dhis.dataelement.DataElementCategoryOptionComboDeletionHandler"568 <bean id="org.hisp.dhis.dataelement.DataElementCategoryOptionComboDeletionHandler"
569 class="org.hisp.dhis.dataelement.DataElementCategoryOptionComboDeletionHandler">569 class="org.hisp.dhis.dataelement.DataElementCategoryOptionComboDeletionHandler">
570 <property name="categoryService"570 <property name="categoryService"
571 ref="org.hisp.dhis.dataelement.DataElementCategoryService"/>571 ref="org.hisp.dhis.dataelement.DataElementCategoryService"/>
572 </bean>572 </bean>
573 573
574 <bean id="org.hisp.dhis.dataelement.DataElementCategoryComboDeletionHandler"574 <bean id="org.hisp.dhis.dataelement.DataElementCategoryComboDeletionHandler"
575 class="org.hisp.dhis.dataelement.DataElementCategoryComboDeletionHandler">575 class="org.hisp.dhis.dataelement.DataElementCategoryComboDeletionHandler">
576 <property name="categoryService"576 <property name="categoryService"
577 ref="org.hisp.dhis.dataelement.DataElementCategoryService"/>577 ref="org.hisp.dhis.dataelement.DataElementCategoryService"/>
578 </bean>578 </bean>
579 579
580 <bean id="org.hisp.dhis.dataset.DataSetDeletionHandler"580 <bean id="org.hisp.dhis.dataset.DataSetDeletionHandler"
581 class="org.hisp.dhis.dataset.DataSetDeletionHandler">581 class="org.hisp.dhis.dataset.DataSetDeletionHandler">
582 <property name="dataSetService"582 <property name="dataSetService"
583 ref="org.hisp.dhis.dataset.DataSetService"/>583 ref="org.hisp.dhis.dataset.DataSetService"/>
584 </bean>584 </bean>
585 585
586 <bean id="org.hisp.dhis.dataset.CompleteDataSetRegistrationDeletionHandler"586 <bean id="org.hisp.dhis.dataset.CompleteDataSetRegistrationDeletionHandler"
587 class="org.hisp.dhis.dataset.CompleteDataSetRegistrationDeletionHandler">587 class="org.hisp.dhis.dataset.CompleteDataSetRegistrationDeletionHandler">
588 <property name="completeDataSetRegistrationService"588 <property name="completeDataSetRegistrationService"
589 ref="org.hisp.dhis.dataset.CompleteDataSetRegistrationService"/>589 ref="org.hisp.dhis.dataset.CompleteDataSetRegistrationService"/>
590 <property name="jdbcTemplate" ref="jdbcTemplate"/>590 <property name="jdbcTemplate" ref="jdbcTemplate"/>
591 </bean>591 </bean>
592 592
593 <bean id="org.hisp.dhis.dataset.SectionDeletionHandler"593 <bean id="org.hisp.dhis.dataset.SectionDeletionHandler"
594 class="org.hisp.dhis.dataset.SectionDeletionHandler">594 class="org.hisp.dhis.dataset.SectionDeletionHandler">
595 <property name="sectionService"595 <property name="sectionService"
596 ref="org.hisp.dhis.dataset.SectionService"/>596 ref="org.hisp.dhis.dataset.SectionService"/>
597 <property name="deletionManager"597 <property name="deletionManager"
598 ref="org.hisp.dhis.system.deletion.DeletionManager"/>598 ref="org.hisp.dhis.system.deletion.DeletionManager"/>
599 </bean>599 </bean>
600 600
601 <bean id="org.hisp.dhis.dataset.FrequencyOverrideAssociationDeletionHandler"601 <bean id="org.hisp.dhis.dataset.FrequencyOverrideAssociationDeletionHandler"
602 class="org.hisp.dhis.dataset.FrequencyOverrideAssociationDeletionHandler">602 class="org.hisp.dhis.dataset.FrequencyOverrideAssociationDeletionHandler">
603 <property name="dataSetService"603 <property name="dataSetService"
604 ref="org.hisp.dhis.dataset.DataSetService"/>604 ref="org.hisp.dhis.dataset.DataSetService"/>
605 <property name="deletionManager"605 <property name="deletionManager"
606 ref="org.hisp.dhis.system.deletion.DeletionManager"/>606 ref="org.hisp.dhis.system.deletion.DeletionManager"/>
607 </bean>607 </bean>
608 608
609 <bean id="org.hisp.dhis.expression.ExpressionDeletionHandler"609 <bean id="org.hisp.dhis.expression.ExpressionDeletionHandler"
610 class="org.hisp.dhis.expression.ExpressionDeletionHandler">610 class="org.hisp.dhis.expression.ExpressionDeletionHandler">
611 <property name="expressionService"611 <property name="expressionService"
612 ref="org.hisp.dhis.expression.ExpressionService"/>612 ref="org.hisp.dhis.expression.ExpressionService"/>
613 </bean>613 </bean>
614 614
615 <bean id="org.hisp.dhis.indicator.IndicatorDeletionHandler"615 <bean id="org.hisp.dhis.indicator.IndicatorDeletionHandler"
616 class="org.hisp.dhis.indicator.IndicatorDeletionHandler">616 class="org.hisp.dhis.indicator.IndicatorDeletionHandler">
617 <property name="indicatorService"617 <property name="indicatorService"
618 ref="org.hisp.dhis.indicator.IndicatorService"/>618 ref="org.hisp.dhis.indicator.IndicatorService"/>
619 <property name="deletionManager"619 <property name="deletionManager"
620 ref="org.hisp.dhis.system.deletion.DeletionManager"/>620 ref="org.hisp.dhis.system.deletion.DeletionManager"/>
621 </bean>621 </bean>
622 622
623 <bean id="org.hisp.dhis.indicator.IndicatorGroupDeletionHandler"623 <bean id="org.hisp.dhis.indicator.IndicatorGroupDeletionHandler"
624 class="org.hisp.dhis.indicator.IndicatorGroupDeletionHandler">624 class="org.hisp.dhis.indicator.IndicatorGroupDeletionHandler">
625 <property name="indicatorService"625 <property name="indicatorService"
626 ref="org.hisp.dhis.indicator.IndicatorService"/>626 ref="org.hisp.dhis.indicator.IndicatorService"/>
627 </bean>627 </bean>
628 628
629 <bean id="org.hisp.dhis.minmax.MinMaxDataElementDeletionHandler"629 <bean id="org.hisp.dhis.minmax.MinMaxDataElementDeletionHandler"
630 class="org.hisp.dhis.minmax.MinMaxDataElementDeletionHandler">630 class="org.hisp.dhis.minmax.MinMaxDataElementDeletionHandler">
631 <property name="minMaxDataElementService"631 <property name="minMaxDataElementService"
632 ref="org.hisp.dhis.minmax.MinMaxDataElementService"/>632 ref="org.hisp.dhis.minmax.MinMaxDataElementService"/>
633 <property name="deletionManager"633 <property name="deletionManager"
634 ref="org.hisp.dhis.system.deletion.DeletionManager"/>634 ref="org.hisp.dhis.system.deletion.DeletionManager"/>
635 </bean>635 </bean>
636 636
637 <bean id="org.hisp.dhis.validation.ValidationRuleDeletionHandler"637 <bean id="org.hisp.dhis.validation.ValidationRuleDeletionHandler"
638 class="org.hisp.dhis.validation.ValidationRuleDeletionHandler">638 class="org.hisp.dhis.validation.ValidationRuleDeletionHandler">
639 <property name="validationRuleService"639 <property name="validationRuleService"
640 ref="org.hisp.dhis.validation.ValidationRuleService"/>640 ref="org.hisp.dhis.validation.ValidationRuleService"/>
641 <property name="deletionManager"641 <property name="deletionManager"
642 ref="org.hisp.dhis.system.deletion.DeletionManager"/>642 ref="org.hisp.dhis.system.deletion.DeletionManager"/>
643 </bean>643 </bean>
644 644
645 <bean id="org.hisp.dhis.validation.ValidationRuleGroupDeletionHandler"645 <bean id="org.hisp.dhis.validation.ValidationRuleGroupDeletionHandler"
646 class="org.hisp.dhis.validation.ValidationRuleGroupDeletionHandler">646 class="org.hisp.dhis.validation.ValidationRuleGroupDeletionHandler">
647 <property name="validationRuleService"647 <property name="validationRuleService"
648 ref="org.hisp.dhis.validation.ValidationRuleService"/>648 ref="org.hisp.dhis.validation.ValidationRuleService"/>
649 </bean>649 </bean>
650 650
651 <bean id="org.hisp.dhis.datavalue.DataValueDeletionHandler"651 <bean id="org.hisp.dhis.datavalue.DataValueDeletionHandler"
652 class="org.hisp.dhis.datavalue.DataValueDeletionHandler">652 class="org.hisp.dhis.datavalue.DataValueDeletionHandler">
653 <property name="jdbcTemplate" ref="jdbcTemplate"/>653 <property name="jdbcTemplate" ref="jdbcTemplate"/>
654 </bean>654 </bean>
655 655
656 <bean id="org.hisp.dhis.organisationunit.OrganisationUnitGroupDeletionHandler"656 <bean id="org.hisp.dhis.organisationunit.OrganisationUnitGroupDeletionHandler"
657 class="org.hisp.dhis.organisationunit.OrganisationUnitGroupDeletionHandler">657 class="org.hisp.dhis.organisationunit.OrganisationUnitGroupDeletionHandler">
658 <property name="organisationUnitGroupService"658 <property name="organisationUnitGroupService"
659 ref="org.hisp.dhis.organisationunit.OrganisationUnitGroupService"/>659 ref="org.hisp.dhis.organisationunit.OrganisationUnitGroupService"/>
660 </bean>660 </bean>
661 661
662 <bean id="org.hisp.dhis.organisationunit.OrganisationUnitGroupSetDeletionHandler"662 <bean id="org.hisp.dhis.organisationunit.OrganisationUnitGroupSetDeletionHandler"
663 class="org.hisp.dhis.organisationunit.OrganisationUnitGroupSetDeletionHandler">663 class="org.hisp.dhis.organisationunit.OrganisationUnitGroupSetDeletionHandler">
664 <property name="organisationUnitGroupService"664 <property name="organisationUnitGroupService"
665 ref="org.hisp.dhis.organisationunit.OrganisationUnitGroupService"/>665 ref="org.hisp.dhis.organisationunit.OrganisationUnitGroupService"/>
666 </bean>666 </bean>
667 667
668 <bean id="org.hisp.dhis.datavalue.DataValueAuditDeletionHandler"668 <bean id="org.hisp.dhis.datavalue.DataValueAuditDeletionHandler"
669 class="org.hisp.dhis.datavalue.DataValueAuditDeletionHandler">669 class="org.hisp.dhis.datavalue.DataValueAuditDeletionHandler">
670 <property name="dataValueAuditService"670 <property name="dataValueAuditService"
671 ref="org.hisp.dhis.datavalue.DataValueAuditService"/>671 ref="org.hisp.dhis.datavalue.DataValueAuditService"/>
672 </bean>672 </bean>
673673
674 <bean id="org.hisp.dhis.user.UserDeletionHandler"674 <bean id="org.hisp.dhis.user.UserDeletionHandler"
675 class="org.hisp.dhis.user.UserDeletionHandler">675 class="org.hisp.dhis.user.UserDeletionHandler">
676 <property name="userStore"676 <property name="userStore"
677 ref="org.hisp.dhis.user.UserStore"/>677 ref="org.hisp.dhis.user.UserStore"/>
678 </bean>678 </bean>
679 679
680 <bean id="org.hisp.dhis.user.UserAuthorityGroupDeletionHandler"680 <bean id="org.hisp.dhis.user.UserAuthorityGroupDeletionHandler"
681 class="org.hisp.dhis.user.UserAuthorityGroupDeletionHandler">681 class="org.hisp.dhis.user.UserAuthorityGroupDeletionHandler">
682 <property name="userStore"682 <property name="userStore"
683 ref="org.hisp.dhis.user.UserStore"/>683 ref="org.hisp.dhis.user.UserStore"/>
684 </bean>684 </bean>
685 685
686 <bean id="org.hisp.dhis.user.UserCredentialsDeletionHandler"686 <bean id="org.hisp.dhis.user.UserCredentialsDeletionHandler"
687 class="org.hisp.dhis.user.UserCredentialsDeletionHandler">687 class="org.hisp.dhis.user.UserCredentialsDeletionHandler">
688 <property name="userStore"688 <property name="userStore"
689 ref="org.hisp.dhis.user.UserStore"/>689 ref="org.hisp.dhis.user.UserStore"/>
690 </bean>690 </bean>
691 691
692 <bean id="org.hisp.dhis.user.UserSettingDeletionHandler"692 <bean id="org.hisp.dhis.user.UserSettingDeletionHandler"
693 class="org.hisp.dhis.user.UserSettingDeletionHandler">693 class="org.hisp.dhis.user.UserSettingDeletionHandler">
694 <property name="userSettingService"694 <property name="userSettingService"
695 ref="org.hisp.dhis.user.UserSettingService"/>695 ref="org.hisp.dhis.user.UserSettingService"/>
696 </bean>696 </bean>
697 697
698 <!-- Security -->698 <!-- Security -->
699 699
700 <bean id="org.hisp.dhis.security.PasswordManager"700 <bean id="org.hisp.dhis.security.PasswordManager"
701 class="org.hisp.dhis.security.spring.SpringSecurityPasswordManager">701 class="org.hisp.dhis.security.spring.SpringSecurityPasswordManager">
702 <property name="passwordEncoder" ref="passwordEncoder"/>702 <property name="passwordEncoder" ref="passwordEncoder"/>
703 <property name="usernameSaltSource" ref="usernameSaltSource"/>703 <property name="usernameSaltSource" ref="usernameSaltSource"/>
704 </bean>704 </bean>
705 705
706 <bean id="authenticationManager"706 <bean id="authenticationManager"
707 class="org.springframework.security.providers.ProviderManager">707 class="org.springframework.security.authentication.ProviderManager">
708 <property name="providers">708 <property name="providers">
709 <list>709 <list>
710 <ref local="daoAuthenticationProvider"/>710 <ref local="daoAuthenticationProvider"/>
711 </list>711 </list>
712 </property>712 </property>
713 </bean>713 </bean>
714 714
715 <bean id="daoAuthenticationProvider"715 <bean id="daoAuthenticationProvider"
716 class="org.springframework.security.providers.dao.DaoAuthenticationProvider">716 class="org.springframework.security.authentication.dao.DaoAuthenticationProvider">
717 <property name="userDetailsService" ref="userDetailsService"/>717 <property name="userDetailsService" ref="userDetailsService"/>
718 <property name="passwordEncoder" ref="passwordEncoder"/>718 <property name="passwordEncoder" ref="passwordEncoder"/>
719 <property name="saltSource" ref="usernameSaltSource"/>719 <property name="saltSource" ref="usernameSaltSource"/>
720 </bean>720 </bean>
721 721
722 <bean id="userDetailsService"722 <bean id="userDetailsService"
723 class="org.hisp.dhis.security.hibernate.HibernateUserDetailsService">723 class="org.hisp.dhis.security.hibernate.HibernateUserDetailsService">
724 <property name="sessionFactory" ref="sessionFactory"/>724 <property name="sessionFactory" ref="sessionFactory"/>
725 </bean>725 </bean>
726 726
727 <bean id="passwordEncoder"727 <bean id="passwordEncoder"
728 class="org.springframework.security.providers.encoding.Md5PasswordEncoder"/>728 class="org.springframework.security.authentication.encoding.Md5PasswordEncoder"/>
729 729
730 <bean id="usernameSaltSource"730 <bean id="usernameSaltSource"
731 class="org.hisp.dhis.security.DefaultUsernameSaltSource"/>731 class="org.hisp.dhis.security.DefaultUsernameSaltSource"/>
732732
733 <!-- DeletionManager -->733 <!-- DeletionManager -->
734 734
735 <bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">735 <bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
736 <property name="targetObject" ref="org.hisp.dhis.system.deletion.DeletionManager"/>736 <property name="targetObject" ref="org.hisp.dhis.system.deletion.DeletionManager"/>
737 <property name="targetMethod" value="addDeletionHandlers"/>737 <property name="targetMethod" value="addDeletionHandlers"/>
738 <property name="arguments">738 <property name="arguments">
739 <list>739 <list>
740 <list>740 <list>
741 <ref local="org.hisp.dhis.datadictionary.DataDictionaryDeletionHandler"/>741 <ref local="org.hisp.dhis.datadictionary.DataDictionaryDeletionHandler"/>
742 <ref local="org.hisp.dhis.dataelement.DataElementDeletionHandler"/>742 <ref local="org.hisp.dhis.dataelement.DataElementDeletionHandler"/>
743 <ref local="org.hisp.dhis.dataelement.DataElementGroupDeletionHandler"/>743 <ref local="org.hisp.dhis.dataelement.DataElementGroupDeletionHandler"/>
744 <ref local="org.hisp.dhis.dataelement.DataElementCategoryOptionDeletionHandler"/> 744 <ref local="org.hisp.dhis.dataelement.DataElementCategoryOptionDeletionHandler"/>
745 <ref local="org.hisp.dhis.dataelement.DataElementCategoryOptionComboDeletionHandler"/>745 <ref local="org.hisp.dhis.dataelement.DataElementCategoryOptionComboDeletionHandler"/>
746 <ref local="org.hisp.dhis.dataelement.DataElementCategoryComboDeletionHandler"/>746 <ref local="org.hisp.dhis.dataelement.DataElementCategoryComboDeletionHandler"/>
747 <ref local="org.hisp.dhis.dataset.DataSetDeletionHandler"/>747 <ref local="org.hisp.dhis.dataset.DataSetDeletionHandler"/>
748 <ref local="org.hisp.dhis.dataset.CompleteDataSetRegistrationDeletionHandler"/>748 <ref local="org.hisp.dhis.dataset.CompleteDataSetRegistrationDeletionHandler"/>
749 <ref local="org.hisp.dhis.dataset.SectionDeletionHandler"/>749 <ref local="org.hisp.dhis.dataset.SectionDeletionHandler"/>
750 <ref local="org.hisp.dhis.dataentryform.DataEntryFormDeletionHandler"/>750 <ref local="org.hisp.dhis.dataentryform.DataEntryFormDeletionHandler"/>
751 <ref local="org.hisp.dhis.dataset.FrequencyOverrideAssociationDeletionHandler"/>751 <ref local="org.hisp.dhis.dataset.FrequencyOverrideAssociationDeletionHandler"/>
752 <ref local="org.hisp.dhis.expression.ExpressionDeletionHandler"/>752 <ref local="org.hisp.dhis.expression.ExpressionDeletionHandler"/>
753 <ref local="org.hisp.dhis.indicator.IndicatorDeletionHandler"/>753 <ref local="org.hisp.dhis.indicator.IndicatorDeletionHandler"/>
754 <ref local="org.hisp.dhis.indicator.IndicatorGroupDeletionHandler"/>754 <ref local="org.hisp.dhis.indicator.IndicatorGroupDeletionHandler"/>
755 <ref local="org.hisp.dhis.minmax.MinMaxDataElementDeletionHandler"/>755 <ref local="org.hisp.dhis.minmax.MinMaxDataElementDeletionHandler"/>
756 <ref local="org.hisp.dhis.validation.ValidationRuleDeletionHandler"/>756 <ref local="org.hisp.dhis.validation.ValidationRuleDeletionHandler"/>
757 <ref local="org.hisp.dhis.validation.ValidationRuleGroupDeletionHandler"/>757 <ref local="org.hisp.dhis.validation.ValidationRuleGroupDeletionHandler"/>
758 <ref local="org.hisp.dhis.datavalue.DataValueDeletionHandler"/>758 <ref local="org.hisp.dhis.datavalue.DataValueDeletionHandler"/>
759 <ref local="org.hisp.dhis.datavalue.DataValueAuditDeletionHandler"/>759 <ref local="org.hisp.dhis.datavalue.DataValueAuditDeletionHandler"/>
760 <ref local="org.hisp.dhis.organisationunit.OrganisationUnitGroupDeletionHandler"/>760 <ref local="org.hisp.dhis.organisationunit.OrganisationUnitGroupDeletionHandler"/>
761 <ref local="org.hisp.dhis.organisationunit.OrganisationUnitGroupSetDeletionHandler"/>761 <ref local="org.hisp.dhis.organisationunit.OrganisationUnitGroupSetDeletionHandler"/>
762 <ref local="org.hisp.dhis.user.UserDeletionHandler"/>762 <ref local="org.hisp.dhis.user.UserDeletionHandler"/>
763 <ref local="org.hisp.dhis.user.UserAuthorityGroupDeletionHandler"/>763 <ref local="org.hisp.dhis.user.UserAuthorityGroupDeletionHandler"/>
764 <ref local="org.hisp.dhis.user.UserCredentialsDeletionHandler"/>764 <ref local="org.hisp.dhis.user.UserCredentialsDeletionHandler"/>
765 <ref local="org.hisp.dhis.user.UserSettingDeletionHandler"/>765 <ref local="org.hisp.dhis.user.UserSettingDeletionHandler"/>
766 </list>766 </list>
767 </list>767 </list>
768 </property>768 </property>
769 </bean>769 </bean>
770 770
771 <!-- Startup -->771 <!-- Startup -->
772 772
773 <bean id="org.hisp.dhis.startup.TableCreator"773 <bean id="org.hisp.dhis.startup.TableCreator"
774 class="org.hisp.dhis.startup.TableCreator">774 class="org.hisp.dhis.startup.TableCreator">
775 <property name="runlevel" value="3"/>775 <property name="runlevel" value="3"/>
776 <property name="jdbcTemplate" ref="jdbcTemplate"/>776 <property name="jdbcTemplate" ref="jdbcTemplate"/>
777 <property name="statementBuilder" ref="statementBuilder"/>777 <property name="statementBuilder" ref="statementBuilder"/>
778 </bean>778 </bean>
779 779
780 <bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">780 <bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
781 <property name="targetObject"781 <property name="targetObject"
782 ref="org.hisp.dhis.system.startup.StartupRoutineExecutor"/>782 ref="org.hisp.dhis.system.startup.StartupRoutineExecutor"/>
783 <property name="targetMethod" value="addStartupRoutines"/>783 <property name="targetMethod" value="addStartupRoutines"/>
784 <property name="arguments">784 <property name="arguments">
785 <list>785 <list>
786 <ref local="org.hisp.dhis.startup.TableCreator"/>786 <ref local="org.hisp.dhis.startup.TableCreator"/>
787 </list>787 </list>
788 </property>788 </property>
789 </bean>789 </bean>
790 790
791 <!-- Min/Max validation -->791 <!-- Min/Max validation -->
792 792
793 <bean id="org.hisp.dhis.minmax.validation.MinMaxValuesGenerationService"793 <bean id="org.hisp.dhis.minmax.validation.MinMaxValuesGenerationService"
794 class="org.hisp.dhis.minmax.validation.DefaultMinMaxValuesGenerationService">794 class="org.hisp.dhis.minmax.validation.DefaultMinMaxValuesGenerationService">
795 <property name="dataAnalysisStore"795 <property name="dataAnalysisStore"
796 ref="org.hisp.dhis.dataanalysis.jdbc.DataAnalysisStore"/>796 ref="org.hisp.dhis.dataanalysis.jdbc.DataAnalysisStore"/>
797 </bean>797 </bean>
798 798
799 <!-- AOP definitions -->799 <!-- AOP definitions -->
800 800
801 <aop:config>801 <aop:config>
802 802
803 <aop:aspect ref="deletionInterceptor"> 803 <aop:aspect ref="deletionInterceptor">
804 <aop:before pointcut="execution( * org.hisp.dhis.datadictionary.DataDictionaryService.delete*(..) )" method="intercept"/>804 <aop:before pointcut="execution( * org.hisp.dhis.datadictionary.DataDictionaryService.delete*(..) )" method="intercept"/>
805 <aop:before pointcut="execution( * org.hisp.dhis.dataelement.DataElementService.delete*(..) )" method="intercept"/>805 <aop:before pointcut="execution( * org.hisp.dhis.dataelement.DataElementService.delete*(..) )" method="intercept"/>
806 <aop:before pointcut="execution( * org.hisp.dhis.dataelement.DataElementCategoryService.delete*(..) )" method="intercept"/>806 <aop:before pointcut="execution( * org.hisp.dhis.dataelement.DataElementCategoryService.delete*(..) )" method="intercept"/>
807 <aop:before pointcut="execution( * org.hisp.dhis.dataset.DataSetService.delete*(..) )" method="intercept"/>807 <aop:before pointcut="execution( * org.hisp.dhis.dataset.DataSetService.delete*(..) )" method="intercept"/>
808 <aop:before pointcut="execution( * org.hisp.dhis.indicator.IndicatorService.delete*(..) )" method="intercept"/>808 <aop:before pointcut="execution( * org.hisp.dhis.indicator.IndicatorService.delete*(..) )" method="intercept"/>
809 <aop:before pointcut="execution( * org.hisp.dhis.expression.ExpressionService.delete*(..) )" method="intercept"/>809 <aop:before pointcut="execution( * org.hisp.dhis.expression.ExpressionService.delete*(..) )" method="intercept"/>
810 <aop:before pointcut="execution( * org.hisp.dhis.minmax.MinMaxDataElementService.delete*(..) )" method="intercept"/>810 <aop:before pointcut="execution( * org.hisp.dhis.minmax.MinMaxDataElementService.delete*(..) )" method="intercept"/>
811 <aop:before pointcut="execution( * org.hisp.dhis.validation.ValidationRuleService.delete*(..) )" method="intercept"/>811 <aop:before pointcut="execution( * org.hisp.dhis.validation.ValidationRuleService.delete*(..) )" method="intercept"/>
812 <aop:before pointcut="execution( * org.hisp.dhis.period.PeriodService.delete*(..) )" method="intercept"/>812 <aop:before pointcut="execution( * org.hisp.dhis.period.PeriodService.delete*(..) )" method="intercept"/>
813 <aop:before pointcut="execution( * org.hisp.dhis.organisationunit.OrganisationUnitService.delete*(..) )" method="intercept"/>813 <aop:before pointcut="execution( * org.hisp.dhis.organisationunit.OrganisationUnitService.delete*(..) )" method="intercept"/>
814 <aop:before pointcut="execution( * org.hisp.dhis.organisationunit.OrganisationUnitGroupService.delete*(..) )" method="intercept"/>814 <aop:before pointcut="execution( * org.hisp.dhis.organisationunit.OrganisationUnitGroupService.delete*(..) )" method="intercept"/>
815 <aop:before pointcut="execution( * org.hisp.dhis.user.UserStore.delete*(..) )" method="intercept"/>815 <aop:before pointcut="execution( * org.hisp.dhis.user.UserStore.delete*(..) )" method="intercept"/>
816 </aop:aspect>816 </aop:aspect>
817 817
818 <aop:aspect ref="statementInterceptor">818 <aop:aspect ref="statementInterceptor">
819 <aop:around pointcut="execution( * org.hisp.dhis.validation.ValidationRuleService.validate(..) )" method="intercept"/>819 <aop:around pointcut="execution( * org.hisp.dhis.validation.ValidationRuleService.validate(..) )" method="intercept"/>
820 <aop:around pointcut="execution( * org.hisp.dhis.dataanalysis.DataAnalysisService.analyse(..) )" method="intercept"/>820 <aop:around pointcut="execution( * org.hisp.dhis.dataanalysis.DataAnalysisService.analyse(..) )" method="intercept"/>
821 </aop:aspect>821 </aop:aspect>
822 822
823 <!--823 <!--
824 <aop:aspect ref="i18nTranslationInterceptor">824 <aop:aspect ref="i18nTranslationInterceptor">
825 <aop:after-returning pointcut="execution( * org.hisp.dhis.dataelement.DataElementService.get*(..) )" method="intercept" returning="object"/>825 <aop:after-returning pointcut="execution( * org.hisp.dhis.dataelement.DataElementService.get*(..) )" method="intercept" returning="object"/>
826 <aop:after-returning pointcut="execution( * org.hisp.dhis.dataelement.DataElementCategoryService.get*(..) )" method="intercept" returning="object"/>826 <aop:after-returning pointcut="execution( * org.hisp.dhis.dataelement.DataElementCategoryService.get*(..) )" method="intercept" returning="object"/>
827 <aop:after-returning pointcut="execution( * org.hisp.dhis.indicator.IndicatorService.get*(..) )" method="intercept" returning="object"/>827 <aop:after-returning pointcut="execution( * org.hisp.dhis.indicator.IndicatorService.get*(..) )" method="intercept" returning="object"/>
828 <aop:after-returning pointcut="execution( * org.hisp.dhis.datadictionary.DataDictionaryService.get*(..) )" method="intercept" returning="object"/>828 <aop:after-returning pointcut="execution( * org.hisp.dhis.datadictionary.DataDictionaryService.get*(..) )" method="intercept" returning="object"/>
829 <aop:after-returning pointcut="execution( * org.hisp.dhis.dataset.DataSetService.get*(..) )" method="intercept" returning="object"/>829 <aop:after-returning pointcut="execution( * org.hisp.dhis.dataset.DataSetService.get*(..) )" method="intercept" returning="object"/>
830 <aop:after-returning pointcut="execution( * org.hisp.dhis.organisationunit.OrganisationUnitService.get*(..) )" method="intercept" returning="object"/>830 <aop:after-returning pointcut="execution( * org.hisp.dhis.organisationunit.OrganisationUnitService.get*(..) )" method="intercept" returning="object"/>
831 <aop:after-returning pointcut="execution( * org.hisp.dhis.organisationunit.OrganisationUnitGroupService.get*(..) )" method="intercept" returning="object"/>831 <aop:after-returning pointcut="execution( * org.hisp.dhis.organisationunit.OrganisationUnitGroupService.get*(..) )" method="intercept" returning="object"/>
832 </aop:aspect>832 </aop:aspect>
833 -->833 -->
834 834
835 </aop:config>835 </aop:config>
836 836
837</beans>837</beans>
838838
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/user/hibernate/User.hbm.xml'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/user/hibernate/User.hbm.xml 2010-04-21 19:45:12 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/user/hibernate/User.hbm.xml 2010-05-07 11:16:36 +0000
@@ -4,7 +4,7 @@
4 "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">4 "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
55
6<hibernate-mapping>6<hibernate-mapping>
7 <class name="org.hisp.dhis.user.User" table="userinfo">7 <class name="org.hisp.dhis.user.User" lazy="false" table="userinfo">
88
9 <cache usage="read-write"/>9 <cache usage="read-write"/>
1010
1111
=== modified file 'dhis-2/dhis-services/dhis-service-i18n/pom.xml'
--- dhis-2/dhis-services/dhis-service-i18n/pom.xml 2010-04-22 14:06:28 +0000
+++ dhis-2/dhis-services/dhis-service-i18n/pom.xml 2010-05-07 11:16:36 +0000
@@ -1,36 +1,36 @@
1<project xmlns="http://maven.apache.org/POM/4.0.0"1<project xmlns="http://maven.apache.org/POM/4.0.0"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4 <modelVersion>4.0.0</modelVersion>4 <modelVersion>4.0.0</modelVersion>
5 5
6 <parent>6 <parent>
7 <groupId>org.hisp.dhis</groupId>7 <groupId>org.hisp.dhis</groupId>
8 <artifactId>dhis-services</artifactId>8 <artifactId>dhis-services</artifactId>
9 <version>2.0.5-SNAPSHOT</version>9 <version>2.0.5-SNAPSHOT</version>
10 </parent>10 </parent>
11 11
12 <artifactId>dhis-service-i18n</artifactId>12 <artifactId>dhis-service-i18n</artifactId>
13 <packaging>jar</packaging>13 <packaging>jar</packaging>
14 <name>DHIS I18n Static</name>14 <name>DHIS I18n Static</name>
15 15
16 <dependencies>16 <dependencies>
17 17
18 <dependency>18 <dependency>
19 <groupId>org.hisp.dhis</groupId>19 <groupId>org.hisp.dhis</groupId>
20 <artifactId>dhis-api</artifactId>20 <artifactId>dhis-api</artifactId>
21 </dependency>21 </dependency>
22 <dependency>22 <dependency>
23 <groupId>org.hisp.dhis</groupId>23 <groupId>org.hisp.dhis</groupId>
24 <artifactId>dhis-service-core</artifactId>24 <artifactId>dhis-service-core</artifactId>
25 </dependency>25 </dependency>
26 <dependency>26 <dependency>
27 <groupId>commons-logging</groupId>27 <groupId>commons-logging</groupId>
28 <artifactId>commons-logging</artifactId>28 <artifactId>commons-logging</artifactId>
29 </dependency>29 </dependency>
30 30
31 </dependencies>31 </dependencies>
32 <properties>32 <properties>
33 <rootDir>../../</rootDir>33 <rootDir>../../</rootDir>
34 </properties>34 </properties>
35</project>35</project>
3636
3737
=== modified file 'dhis-2/dhis-services/dhis-service-patient/pom.xml'
--- dhis-2/dhis-services/dhis-service-patient/pom.xml 2010-04-27 15:04:10 +0000
+++ dhis-2/dhis-services/dhis-service-patient/pom.xml 2010-05-07 11:16:36 +0000
@@ -1,33 +1,33 @@
1<project xmlns="http://maven.apache.org/POM/4.0.0"1<project xmlns="http://maven.apache.org/POM/4.0.0"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4 <modelVersion>4.0.0</modelVersion>4 <modelVersion>4.0.0</modelVersion>
55
6 <parent>6 <parent>
7 <groupId>org.hisp.dhis</groupId>7 <groupId>org.hisp.dhis</groupId>
8 <artifactId>dhis-services</artifactId>8 <artifactId>dhis-services</artifactId>
9 <version>2.0.5-SNAPSHOT</version>9 <version>2.0.5-SNAPSHOT</version>
10 </parent>10 </parent>
1111
12 <artifactId>dhis-service-patient</artifactId>12 <artifactId>dhis-service-patient</artifactId>
13 <packaging>jar</packaging>13 <packaging>jar</packaging>
14 <name>DHIS Patient API Implementations</name>14 <name>DHIS Patient API Implementations</name>
1515
16 <dependencies>16 <dependencies>
17 17
18 <!-- DHIS -->18 <!-- DHIS -->
19 19
20 <dependency>20 <dependency>
21 <groupId>org.hisp.dhis</groupId>21 <groupId>org.hisp.dhis</groupId>
22 <artifactId>dhis-api</artifactId>22 <artifactId>dhis-api</artifactId>
23 </dependency>23 </dependency>
24 <dependency>24 <dependency>
25 <groupId>org.hisp.dhis</groupId>25 <groupId>org.hisp.dhis</groupId>
26 <artifactId>dhis-service-core</artifactId>26 <artifactId>dhis-service-core</artifactId>
27 </dependency>27 </dependency>
28 28
29 </dependencies>29 </dependencies>
30 <properties>30 <properties>
31 <rootDir>../../</rootDir>31 <rootDir>../../</rootDir>
32 </properties>32 </properties>
33</project>33</project>
3434
=== modified file 'dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/DefaultPatientIdentifierService.java'
--- dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/DefaultPatientIdentifierService.java 2010-04-05 12:41:21 +0000
+++ dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/DefaultPatientIdentifierService.java 2010-05-07 11:16:36 +0000
@@ -27,14 +27,15 @@
2727
28package org.hisp.dhis.patient;28package org.hisp.dhis.patient;
2929
30
30import java.util.ArrayList;31import java.util.ArrayList;
31import java.util.Collection;32import java.util.Collection;
33import java.util.Collections;
32import java.util.List;34import java.util.List;
3335
34import org.hisp.dhis.organisationunit.OrganisationUnit;36import org.hisp.dhis.organisationunit.OrganisationUnit;
35import org.springframework.transaction.annotation.Transactional;37import org.springframework.transaction.annotation.Transactional;
3638
37import edu.emory.mathcs.backport.java.util.Collections;
3839
39/**40/**
40 * @author Abyot Asalefew Gizaw41 * @author Abyot Asalefew Gizaw
4142
=== modified file 'dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/DefaultPatientService.java'
--- dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/DefaultPatientService.java 2010-04-19 09:54:45 +0000
+++ dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/DefaultPatientService.java 2010-05-07 11:16:36 +0000
@@ -36,7 +36,6 @@
36import java.util.SortedMap;36import java.util.SortedMap;
37import java.util.TreeMap;37import java.util.TreeMap;
3838
39import org.apache.log4j.Logger;
40import org.hisp.dhis.organisationunit.OrganisationUnit;39import org.hisp.dhis.organisationunit.OrganisationUnit;
41import org.hisp.dhis.patientattributevalue.PatientAttributeValue;40import org.hisp.dhis.patientattributevalue.PatientAttributeValue;
42import org.hisp.dhis.patientattributevalue.PatientAttributeValueService;41import org.hisp.dhis.patientattributevalue.PatientAttributeValueService;
@@ -44,7 +43,6 @@
44import org.hisp.dhis.relationship.RelationshipService;43import org.hisp.dhis.relationship.RelationshipService;
45import org.hisp.dhis.relationship.RelationshipType;44import org.hisp.dhis.relationship.RelationshipType;
46import org.hisp.dhis.relationship.RelationshipTypeService;45import org.hisp.dhis.relationship.RelationshipTypeService;
47import org.hisp.dhis.system.util.AuditLogLevel;
48import org.hisp.dhis.user.CurrentUserService;46import org.hisp.dhis.user.CurrentUserService;
49import org.springframework.transaction.annotation.Transactional;47import org.springframework.transaction.annotation.Transactional;
5048
5149
=== modified file 'dhis-2/dhis-support/dhis-support-hibernate/pom.xml'
--- dhis-2/dhis-support/dhis-support-hibernate/pom.xml 2010-04-08 16:55:35 +0000
+++ dhis-2/dhis-support/dhis-support-hibernate/pom.xml 2010-05-07 11:16:36 +0000
@@ -1,86 +1,104 @@
1<project xmlns="http://maven.apache.org/POM/4.0.0"1<project xmlns="http://maven.apache.org/POM/4.0.0"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4 <modelVersion>4.0.0</modelVersion>4 <modelVersion>4.0.0</modelVersion>
5 5
6 <parent>6 <parent>
7 <groupId>org.hisp.dhis</groupId>7 <groupId>org.hisp.dhis</groupId>
8 <artifactId>dhis-support</artifactId>8 <artifactId>dhis-support</artifactId>
9 <version>2.0.5-SNAPSHOT</version>9 <version>2.0.5-SNAPSHOT</version>
10 </parent>10 </parent>
11 11
12 <artifactId>dhis-support-hibernate</artifactId>12 <artifactId>dhis-support-hibernate</artifactId>
13 <packaging>jar</packaging>13 <packaging>jar</packaging>
14 <name>DHIS Hibernate Support</name>14 <name>DHIS Hibernate Support</name>
15 15
16 <dependencies>16 <dependencies>
17 17
18 <!-- DHIS -->18 <!-- DHIS -->
19 19
20 <dependency>20 <dependency>
21 <groupId>org.hisp.dhis</groupId>21 <groupId>org.hisp.dhis</groupId>
22 <artifactId>dhis-api</artifactId>22 <artifactId>dhis-api</artifactId>
23 </dependency>23 </dependency>
24 <dependency>24 <dependency>
25 <groupId>org.hisp.dhis</groupId>25 <groupId>org.hisp.dhis</groupId>
26 <artifactId>dhis-support-external</artifactId>26 <artifactId>dhis-support-external</artifactId>
27 </dependency>27 </dependency>
28 28
29 <!-- Hibernate -->29 <!-- Hibernate -->
30 30
31 <dependency>31
32 <groupId>org.hibernate</groupId>32 <dependency>
33 <artifactId>hibernate</artifactId>33 <groupId>org.hibernate</groupId>
34 </dependency>34 <artifactId>hibernate-core</artifactId>
35 </dependency>
36 <dependency>
37 <groupId>org.hibernate</groupId>
38 <artifactId>hibernate-ehcache</artifactId>
39 </dependency>
40 <dependency>
41 <groupId>org.hibernate</groupId>
42 <artifactId>hibernate-entitymanager</artifactId>
43 </dependency>
44
45 <!--dependency>
46 <groupId>org.hibernate</groupId>
47 <artifactId>hibernate</artifactId>
48 </dependency-->
35 <dependency>49 <dependency>
36 <groupId>geronimo-spec</groupId>50 <groupId>geronimo-spec</groupId>
37 <artifactId>geronimo-spec-jta</artifactId>51 <artifactId>geronimo-spec-jta</artifactId>
38 </dependency>52 </dependency>
39 <dependency>53 <dependency>
40 <groupId>net.sf.ehcache</groupId>54 <groupId>net.sf.ehcache</groupId>
41 <artifactId>ehcache</artifactId>55 <artifactId>ehcache-core</artifactId>
42 </dependency>56 </dependency>
43 <dependency>57 <dependency>
44 <groupId>c3p0</groupId>58 <groupId>net.sf.ehcache</groupId>
45 <artifactId>c3p0</artifactId>59 <artifactId>ehcache-terracotta</artifactId>
46 </dependency>60 </dependency>
47 61 <dependency>
48 <!-- Database connectors -->62 <groupId>c3p0</groupId>
49 63 <artifactId>c3p0</artifactId>
50 <dependency>64 </dependency>
51 <groupId>mysql</groupId>65
52 <artifactId>mysql-connector-java</artifactId>66 <!-- Database connectors -->
53 </dependency>67
54 <dependency>68 <dependency>
55 <groupId>postgresql</groupId>69 <groupId>mysql</groupId>
56 <artifactId>postgresql</artifactId>70 <artifactId>mysql-connector-java</artifactId>
57 </dependency>71 </dependency>
58 <dependency>72 <dependency>
59 <groupId>com.h2database</groupId>73 <groupId>postgresql</groupId>
60 <artifactId>h2</artifactId>74 <artifactId>postgresql</artifactId>
61 </dependency>75 </dependency>
62 76 <dependency>
63 <!-- Other -->77 <groupId>com.h2database</groupId>
64 78 <artifactId>h2</artifactId>
65 <dependency>79 </dependency>
66 <groupId>org.springframework</groupId>80
67 <artifactId>spring</artifactId>81 <!-- Other -->
68 </dependency>82
69 <dependency>83 <dependency>
70 <groupId>commons-logging</groupId>84 <groupId>org.springframework</groupId>
71 <artifactId>commons-logging</artifactId>85 <artifactId>spring-orm</artifactId>
72 </dependency> 86 </dependency>
73 87 <dependency>
74 <!-- Monitoring -->88 <groupId>commons-logging</groupId>
75 <!--89 <artifactId>commons-logging</artifactId>
76 <dependency>90 </dependency>
77 <groupId>com.elvyx</groupId>91
78 <artifactId>elvyx</artifactId>92 <!-- Monitoring -->
79 <version>1.0.24</version>93 <!--
80 </dependency> -->94 <dependency>
81 95 <groupId>com.elvyx</groupId>
82 </dependencies>96 <artifactId>elvyx</artifactId>
97 <version>1.0.24</version>
98 </dependency> -->
99
100 </dependencies>
83 <properties>101 <properties>
84 <rootDir>../../</rootDir>102 <rootDir>../../</rootDir>
85 </properties>103 </properties>
86</project>104</project>
87105
=== modified file 'dhis-2/dhis-support/dhis-support-hibernate/src/main/resources/hibernate-default.properties'
--- dhis-2/dhis-support/dhis-support-hibernate/src/main/resources/hibernate-default.properties 2009-06-10 22:25:07 +0000
+++ dhis-2/dhis-support/dhis-support-hibernate/src/main/resources/hibernate-default.properties 2010-05-07 11:16:36 +0000
@@ -26,7 +26,8 @@
2626
27# Caching27# Caching
2828
29hibernate.cache.provider_class = org.hibernate.cache.EhCacheProvider29hibernate.cache.region.factory_class = net.sf.ehcache.hibernate.EhCacheRegionFactory
30#hibernate.cache.provider_class = org.hibernate.cache.EhCacheProvider
30hibernate.cache.use_second_level_cache = true31hibernate.cache.use_second_level_cache = true
31hibernate.cache.use_query_cache = true32hibernate.cache.use_query_cache = true
3233
3334
=== modified file 'dhis-2/dhis-support/dhis-support-system/pom.xml'
--- dhis-2/dhis-support/dhis-support-system/pom.xml 2010-04-08 16:55:35 +0000
+++ dhis-2/dhis-support/dhis-support-system/pom.xml 2010-05-07 11:16:36 +0000
@@ -1,95 +1,99 @@
1<project xmlns="http://maven.apache.org/POM/4.0.0"1<project xmlns="http://maven.apache.org/POM/4.0.0"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4 <modelVersion>4.0.0</modelVersion>4 <modelVersion>4.0.0</modelVersion>
5 5
6 <parent>6 <parent>
7 <groupId>org.hisp.dhis</groupId>7 <groupId>org.hisp.dhis</groupId>
8 <artifactId>dhis-support</artifactId>8 <artifactId>dhis-support</artifactId>
9 <version>2.0.5-SNAPSHOT</version>9 <version>2.0.5-SNAPSHOT</version>
10 </parent>10 </parent>
11 11
12 <artifactId>dhis-support-system</artifactId>12 <artifactId>dhis-support-system</artifactId>
13 <packaging>jar</packaging>13 <packaging>jar</packaging>
14 <name>DHIS System Support</name>14 <name>DHIS System Support</name>
15 15
16 <dependencies>16 <dependencies>
17 17
18 <!-- DHIS -->18 <!-- DHIS -->
19 19
20 <dependency>20 <dependency>
21 <groupId>org.hisp.dhis</groupId>21 <groupId>org.hisp.dhis</groupId>
22 <artifactId>dhis-api</artifactId>22 <artifactId>dhis-api</artifactId>
23 </dependency>23 </dependency>
24 <dependency>24 <dependency>
25 <groupId>org.hisp.dhis</groupId>25 <groupId>org.hisp.dhis</groupId>
26 <artifactId>dhis-support-hibernate</artifactId>26 <artifactId>dhis-support-hibernate</artifactId>
27 </dependency>27 </dependency>
28 <dependency>28 <dependency>
29 <groupId>org.hisp.dhis</groupId>29 <groupId>org.hisp.dhis</groupId>
30 <artifactId>dhis-support-test</artifactId>30 <artifactId>dhis-support-test</artifactId>
31 </dependency>31 </dependency>
32 32
33 <!-- Other -->33 <!-- Other -->
34 34
35 <dependency>35 <dependency>
36 <groupId>org.aspectj</groupId>36 <groupId>org.slf4j</groupId>
37 <artifactId>aspectjrt</artifactId>37 <artifactId>slf4j-log4j12</artifactId>
38 </dependency>38 </dependency>
39 <dependency>39 <dependency>
40 <groupId>org.aspectj</groupId>40 <groupId>org.aspectj</groupId>
41 <artifactId>aspectjweaver</artifactId>41 <artifactId>aspectjrt</artifactId>
42 </dependency>42 </dependency>
43 <dependency>43 <dependency>
44 <groupId>org.springframework</groupId>44 <groupId>org.aspectj</groupId>
45 <artifactId>spring</artifactId>45 <artifactId>aspectjweaver</artifactId>
46 </dependency>46 </dependency>
47 <dependency>47 <dependency>
48 <groupId>com.lowagie</groupId>48 <groupId>org.springframework</groupId>
49 <artifactId>itext</artifactId>49 <artifactId>spring-web</artifactId>
50 </dependency>50 </dependency>
51 <dependency>51 <dependency>
52 <groupId>commons-logging</groupId>52 <groupId>com.lowagie</groupId>
53 <artifactId>commons-logging</artifactId>53 <artifactId>itext</artifactId>
54 </dependency>54 </dependency>
55 <dependency>55 <dependency>
56 <groupId>commons-collections</groupId>56 <groupId>commons-logging</groupId>
57 <artifactId>commons-collections</artifactId>57 <artifactId>commons-logging</artifactId>
58 </dependency>58 </dependency>
59 <dependency>59 <dependency>
60 <groupId>commons-lang</groupId>60 <groupId>commons-collections</groupId>
61 <artifactId>commons-lang</artifactId>61 <artifactId>commons-collections</artifactId>
62 </dependency>62 </dependency>
63 <dependency>63 <dependency>
64 <groupId>commons-codec</groupId>64 <groupId>commons-lang</groupId>
65 <artifactId>commons-codec</artifactId>65 <artifactId>commons-lang</artifactId>
66 </dependency>66 </dependency>
67 <dependency>67 <dependency>
68 <groupId>commons-math</groupId>68 <groupId>commons-codec</groupId>
69 <artifactId>commons-math</artifactId>69 <artifactId>commons-codec</artifactId>
70 </dependency>70 </dependency>
71 <dependency>71 <dependency>
72 <groupId>commons-validator</groupId>72 <groupId>commons-math</groupId>
73 <artifactId>commons-validator</artifactId>73 <artifactId>commons-math</artifactId>
74 </dependency> 74 </dependency>
75 <dependency>75 <dependency>
76 <groupId>jep</groupId>76 <groupId>commons-validator</groupId>
77 <artifactId>jep</artifactId>77 <artifactId>commons-validator</artifactId>
78 </dependency>78 </dependency>
79 <dependency>79 <dependency>
80 <groupId>joda-time</groupId>80 <groupId>jep</groupId>
81 <artifactId>joda-time</artifactId>81 <artifactId>jep</artifactId>
82 </dependency> 82 </dependency>
83 <dependency>83 <dependency>
84 <groupId>org.amplecode</groupId>84 <groupId>joda-time</groupId>
85 <artifactId>cave-process</artifactId>85 <artifactId>joda-time</artifactId>
86 </dependency>86 </dependency>
87 <dependency>87 <dependency>
88 <groupId>org.amplecode</groupId>88 <groupId>org.amplecode</groupId>
89 <artifactId>quick</artifactId>89 <artifactId>cave-process</artifactId>
90 </dependency>90 </dependency>
91 </dependencies>91 <dependency>
92 <groupId>org.amplecode</groupId>
93 <artifactId>quick</artifactId>
94 </dependency>
95 </dependencies>
92 <properties>96 <properties>
93 <rootDir>../../</rootDir>97 <rootDir>../../</rootDir>
94 </properties>98 </properties>
95</project>99</project>
96100
=== modified file 'dhis-2/dhis-support/dhis-support-test/pom.xml'
--- dhis-2/dhis-support/dhis-support-test/pom.xml 2010-04-08 16:55:35 +0000
+++ dhis-2/dhis-support/dhis-support-test/pom.xml 2010-05-07 11:16:36 +0000
@@ -1,51 +1,59 @@
1<project xmlns="http://maven.apache.org/POM/4.0.0"1<project xmlns="http://maven.apache.org/POM/4.0.0"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4 <modelVersion>4.0.0</modelVersion>4 <modelVersion>4.0.0</modelVersion>
5 5
6 <parent>6 <parent>
7 <groupId>org.hisp.dhis</groupId>7 <groupId>org.hisp.dhis</groupId>
8 <artifactId>dhis-support</artifactId>8 <artifactId>dhis-support</artifactId>
9 <version>2.0.5-SNAPSHOT</version>9 <version>2.0.5-SNAPSHOT</version>
10 </parent>10 </parent>
11 11
12 <artifactId>dhis-support-test</artifactId>12 <artifactId>dhis-support-test</artifactId>
13 <packaging>jar</packaging>13 <packaging>jar</packaging>
14 <name>DHIS Test Support</name>14 <name>DHIS Test Support</name>
15 15
16 <dependencies>16 <dependencies>
17 17
18 <!-- DHIS -->18 <!-- DHIS -->
1919
20 <dependency>20 <dependency>
21 <groupId>org.hisp.dhis</groupId>21 <groupId>org.hisp.dhis</groupId>
22 <artifactId>dhis-api</artifactId>22 <artifactId>dhis-api</artifactId>
23 </dependency>23 </dependency>
24 24
25 <!-- Other -->25 <!-- Other -->
26 26
27 <dependency>27 <dependency>
28 <groupId>org.springframework</groupId>28 <groupId>org.springframework</groupId>
29 <artifactId>spring</artifactId>29 <artifactId>spring-context</artifactId>
30 </dependency>30 </dependency>
31 <dependency>31 <dependency>
32 <groupId>commons-logging</groupId>32 <groupId>org.springframework</groupId>
33 <artifactId>commons-logging</artifactId>33 <artifactId>spring-orm</artifactId>
34 </dependency>34 </dependency>
35 <dependency>35 <dependency>
36 <groupId>junit</groupId>36 <groupId>commons-logging</groupId>
37 <artifactId>junit</artifactId>37 <artifactId>commons-logging</artifactId>
38 </dependency>38 </dependency>
39 <dependency>39 <dependency>
40 <groupId>org.hibernate</groupId>40 <groupId>junit</groupId>
41 <artifactId>hibernate</artifactId>41 <artifactId>junit</artifactId>
42 </dependency>42 </dependency>
43 <dependency>43 <!--dependency>
44 <groupId>org.springframework</groupId>44 <groupId>org.hibernate</groupId>
45 <artifactId>spring-test</artifactId>45 <artifactId>hibernate</artifactId>
46 </dependency>46 </dependency-->
47 </dependencies>47 <dependency>
48 <groupId>org.hibernate</groupId>
49 <artifactId>hibernate-core</artifactId>
50 </dependency>
51 <dependency>
52 <groupId>org.springframework</groupId>
53 <artifactId>spring-test</artifactId>
54 </dependency>
55 </dependencies>
48 <properties>56 <properties>
49 <rootDir>../../</rootDir>57 <rootDir>../../</rootDir>
50 </properties>58 </properties>
51</project>59</project>
5260
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/pom.xml'
--- dhis-2/dhis-web/dhis-web-caseentry/pom.xml 2010-04-21 19:45:12 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/pom.xml 2010-05-07 11:16:36 +0000
@@ -1,50 +1,50 @@
1<project xmlns="http://maven.apache.org/POM/4.0.0"1<project xmlns="http://maven.apache.org/POM/4.0.0"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4 <modelVersion>4.0.0</modelVersion>4 <modelVersion>4.0.0</modelVersion>
5 5
6 <parent>6 <parent>
7 <groupId>org.hisp.dhis</groupId>7 <groupId>org.hisp.dhis</groupId>
8 <artifactId>dhis-web</artifactId>8 <artifactId>dhis-web</artifactId>
9 <version>2.0.5-SNAPSHOT</version>9 <version>2.0.5-SNAPSHOT</version>
10 </parent>10 </parent>
11 11
12 <artifactId>dhis-web-caseentry</artifactId>12 <artifactId>dhis-web-caseentry</artifactId>
13 <packaging>war</packaging>13 <packaging>war</packaging>
14 <name>DHIS Case Entry</name>14 <name>DHIS Case Entry</name>
15 15
16 <build>16 <build>
17 <finalName>dhis-web-caseentry</finalName>17 <finalName>dhis-web-caseentry</finalName>
18 </build>18 </build>
19 19
20 <dependencies>20 <dependencies>
21 21
22 <!-- DHIS -->22 <!-- DHIS -->
23 23
24 <dependency>24 <dependency>
25 <groupId>org.hisp.dhis</groupId>25 <groupId>org.hisp.dhis</groupId>
26 <artifactId>dhis-web-commons</artifactId>26 <artifactId>dhis-web-commons</artifactId>
27 </dependency>27 </dependency>
28 <dependency>28 <dependency>
29 <groupId>org.hisp.dhis</groupId>29 <groupId>org.hisp.dhis</groupId>
30 <artifactId>dhis-web-commons-resources</artifactId>30 <artifactId>dhis-web-commons-resources</artifactId>
31 <type>war</type>31 <type>war</type>
32 </dependency>32 </dependency>
33 <dependency>33 <dependency>
34 <groupId>org.hisp.dhis</groupId>34 <groupId>org.hisp.dhis</groupId>
35 <artifactId>dhis-service-core</artifactId>35 <artifactId>dhis-service-core</artifactId>
36 </dependency>36 </dependency>
37 <dependency>37 <dependency>
38 <groupId>org.hisp.dhis</groupId>38 <groupId>org.hisp.dhis</groupId>
39 <artifactId>dhis-service-patient</artifactId>39 <artifactId>dhis-service-patient</artifactId>
40 </dependency>40 </dependency>
41 <dependency>41 <dependency>
42 <groupId>org.hisp.dhis</groupId>42 <groupId>org.hisp.dhis</groupId>
43 <artifactId>dhis-service-options</artifactId>43 <artifactId>dhis-service-options</artifactId>
44 </dependency> 44 </dependency>
45 45
46 </dependencies>46 </dependencies>
47 <properties>47 <properties>
48 <rootDir>../../</rootDir>48 <rootDir>../../</rootDir>
49 </properties>49 </properties>
50</project>50</project>
5151
=== modified file 'dhis-2/dhis-web/dhis-web-commons/pom.xml'
--- dhis-2/dhis-web/dhis-web-commons/pom.xml 2010-04-22 14:06:28 +0000
+++ dhis-2/dhis-web/dhis-web-commons/pom.xml 2010-05-07 11:16:36 +0000
@@ -97,8 +97,8 @@
97 <!-- Other -->97 <!-- Other -->
98 98
99 <dependency>99 <dependency>
100 <groupId>org.springframework</groupId>100 <groupId>org.springframework.security</groupId>
101 <artifactId>spring</artifactId>101 <artifactId>spring-security-config</artifactId>
102 </dependency>102 </dependency>
103 <dependency>103 <dependency>
104 <groupId>commons-logging</groupId>104 <groupId>commons-logging</groupId>
105105
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/GetOperandsAction.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/GetOperandsAction.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/GetOperandsAction.java 2010-05-07 11:16:36 +0000
@@ -28,6 +28,7 @@
28 */28 */
2929
30import java.util.ArrayList;30import java.util.ArrayList;
31import java.util.Collections;
31import java.util.List;32import java.util.List;
3233
33import org.hisp.dhis.dataelement.DataElementOperand;34import org.hisp.dhis.dataelement.DataElementOperand;
@@ -36,8 +37,6 @@
3637
37import com.opensymphony.xwork2.Action;38import com.opensymphony.xwork2.Action;
3839
39import edu.emory.mathcs.backport.java.util.Collections;
40
41/**40/**
42 * @author Lars Helge Overland41 * @author Lars Helge Overland
43 */42 */
4443
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/encoding/velocity/EncoderVelocityContext.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/encoding/velocity/EncoderVelocityContext.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/encoding/velocity/EncoderVelocityContext.java 2010-05-07 11:16:36 +0000
@@ -27,9 +27,10 @@
27 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.27 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */28 */
2929
30
30import org.apache.velocity.VelocityContext;31import org.apache.velocity.VelocityContext;
3132
32import com.opensymphony.xwork2.util.TextUtils;33import org.apache.commons.lang.StringEscapeUtils;
3334
34/**35/**
35 * @author Torgeir Lorange Ostby36 * @author Torgeir Lorange Ostby
@@ -127,7 +128,7 @@
127128
128 private String defaultEncode( String string )129 private String defaultEncode( String string )
129 {130 {
130 return TextUtils.htmlEncode( string );131 return StringEscapeUtils.escapeHtml( string );
131 }132 }
132 }133 }
133}134}
134135
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/interceptor/ExceptionInterceptor.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/interceptor/ExceptionInterceptor.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/interceptor/ExceptionInterceptor.java 2010-05-07 11:16:36 +0000
@@ -30,10 +30,10 @@
30import java.util.HashMap;30import java.util.HashMap;
31import java.util.Map;31import java.util.Map;
3232
33import org.springframework.security.AccessDeniedException;
34import org.springframework.security.InsufficientAuthenticationException;
35import org.apache.commons.logging.Log;33import org.apache.commons.logging.Log;
36import org.apache.commons.logging.LogFactory;34import org.apache.commons.logging.LogFactory;
35import org.springframework.security.access.AccessDeniedException;
36import org.springframework.security.authentication.InsufficientAuthenticationException;
3737
38import com.opensymphony.xwork2.ActionInvocation;38import com.opensymphony.xwork2.ActionInvocation;
39import com.opensymphony.xwork2.interceptor.Interceptor;39import com.opensymphony.xwork2.interceptor.Interceptor;
4040
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/AbstractAutomaticAccessProvider.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/AbstractAutomaticAccessProvider.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/AbstractAutomaticAccessProvider.java 2010-05-07 11:16:36 +0000
@@ -31,8 +31,8 @@
3131
32import org.hisp.dhis.security.authority.SystemAuthoritiesProvider;32import org.hisp.dhis.security.authority.SystemAuthoritiesProvider;
33import org.hisp.dhis.user.UserStore;33import org.hisp.dhis.user.UserStore;
34import org.springframework.security.GrantedAuthority;34import org.springframework.security.core.GrantedAuthority;
35import org.springframework.security.GrantedAuthorityImpl;35import org.springframework.security.core.authority.GrantedAuthorityImpl;
3636
37/**37/**
38 * Abstract automatic access provider class. Delegates methods initialise() and 38 * Abstract automatic access provider class. Delegates methods initialise() and
3939
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/GhostAutomaticAccessProvider.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/GhostAutomaticAccessProvider.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/GhostAutomaticAccessProvider.java 2010-05-07 11:16:36 +0000
@@ -27,10 +27,10 @@
27 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.27 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */28 */
2929
30import org.springframework.security.Authentication;30import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
31import org.springframework.security.context.SecurityContextHolder;31import org.springframework.security.core.Authentication;
32import org.springframework.security.providers.UsernamePasswordAuthenticationToken;32import org.springframework.security.core.context.SecurityContextHolder;
33import org.springframework.security.userdetails.UserDetails;33import org.springframework.security.core.userdetails.UserDetails;
3434
35/**35/**
36 * This access provider will put an Authentication object with all GrantedAuthorities36 * This access provider will put an Authentication object with all GrantedAuthorities
@@ -54,7 +54,7 @@
54 String username = "ghost_admin";54 String username = "ghost_admin";
55 String password = "";55 String password = "";
5656
57 UserDetails user = new org.springframework.security.userdetails.User( username, password, true, true, true, true,57 UserDetails user = new org.springframework.security.core.userdetails.User( username, password, true, true, true, true,
58 getGrantedAuthorities() );58 getGrantedAuthorities() );
5959
60 authentication = new UsernamePasswordAuthenticationToken( user, user.getPassword(), user.getAuthorities() );60 authentication = new UsernamePasswordAuthenticationToken( user, user.getPassword(), user.getAuthorities() );
6161
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/SpringSecurityActionAccessResolver.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/SpringSecurityActionAccessResolver.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/SpringSecurityActionAccessResolver.java 2010-05-07 11:16:36 +0000
@@ -31,13 +31,14 @@
31import org.apache.commons.logging.LogFactory;31import org.apache.commons.logging.LogFactory;
32import org.apache.struts2.dispatcher.Dispatcher;32import org.apache.struts2.dispatcher.Dispatcher;
33import org.hisp.dhis.security.authority.RequiredAuthoritiesProvider;33import org.hisp.dhis.security.authority.RequiredAuthoritiesProvider;
34import org.springframework.security.AccessDecisionManager;34
35import org.springframework.security.AccessDeniedException;35import org.springframework.security.access.AccessDecisionManager;
36import org.springframework.security.Authentication;36import org.springframework.security.access.AccessDeniedException;
37import org.springframework.security.InsufficientAuthenticationException;37import org.springframework.security.access.SecurityMetadataSource;
38import org.springframework.security.context.SecurityContext;38import org.springframework.security.authentication.InsufficientAuthenticationException;
39import org.springframework.security.context.SecurityContextHolder;39import org.springframework.security.core.Authentication;
40import org.springframework.security.intercept.ObjectDefinitionSource;40import org.springframework.security.core.context.SecurityContext;
41import org.springframework.security.core.context.SecurityContextHolder;
4142
42import com.opensymphony.xwork2.config.Configuration;43import com.opensymphony.xwork2.config.Configuration;
43import com.opensymphony.xwork2.config.entities.ActionConfig;44import com.opensymphony.xwork2.config.entities.ActionConfig;
@@ -96,8 +97,8 @@
96 throw new IllegalArgumentException( "Module " + module + " doesn't have an action named: '" + name + "'" );97 throw new IllegalArgumentException( "Module " + module + " doesn't have an action named: '" + name + "'" );
97 }98 }
9899
99 ObjectDefinitionSource objectDefinitionSource = requiredAuthoritiesProvider100 SecurityMetadataSource securityMetadataSource = requiredAuthoritiesProvider
100 .createObjectDefinitionSource( actionConfig );101 .createSecurityMetadataSource( actionConfig );
101102
102 // ---------------------------------------------------------------------103 // ---------------------------------------------------------------------
103 // Test access104 // Test access
@@ -109,14 +110,14 @@
109110
110 try111 try
111 {112 {
112 if ( objectDefinitionSource.getAttributes( actionConfig ) != null )113 if ( securityMetadataSource.getAttributes( actionConfig ) != null )
113 {114 {
114 if ( authentication == null || !authentication.isAuthenticated() )115 if ( authentication == null || !authentication.isAuthenticated() )
115 {116 {
116 return false;117 return false;
117 }118 }
118119
119 accessDecisionManager.decide( authentication, actionConfig, objectDefinitionSource120 accessDecisionManager.decide( authentication, actionConfig, securityMetadataSource
120 .getAttributes( actionConfig ) );121 .getAttributes( actionConfig ) );
121 }122 }
122123
123124
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/authority/DefaultRequiredAuthoritiesProvider.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/authority/DefaultRequiredAuthoritiesProvider.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/authority/DefaultRequiredAuthoritiesProvider.java 2010-05-07 11:16:36 +0000
@@ -31,15 +31,14 @@
31import java.util.Collection;31import java.util.Collection;
32import java.util.Collections;32import java.util.Collections;
33import java.util.HashSet;33import java.util.HashSet;
34import java.util.List;
35import java.util.Map;34import java.util.Map;
36import java.util.Set;35import java.util.Set;
37import java.util.StringTokenizer;36import java.util.StringTokenizer;
3837
39import org.springframework.security.ConfigAttributeDefinition;38import org.hisp.dhis.security.intercept.SingleSecurityMetadataSource;
40import org.springframework.security.SecurityConfig;39import org.springframework.security.access.ConfigAttribute;
41import org.springframework.security.intercept.ObjectDefinitionSource;40import org.springframework.security.access.SecurityConfig;
42import org.hisp.dhis.security.intercept.SingleObjectDefinitionSource;41import org.springframework.security.access.SecurityMetadataSource;
4342
44import com.opensymphony.xwork2.config.entities.ActionConfig;43import com.opensymphony.xwork2.config.entities.ActionConfig;
4544
@@ -72,29 +71,27 @@
72 // RequiredAuthoritiesProvider implementation71 // RequiredAuthoritiesProvider implementation
73 // -------------------------------------------------------------------------72 // -------------------------------------------------------------------------
7473
75 public ObjectDefinitionSource createObjectDefinitionSource( ActionConfig actionConfig )74 public SecurityMetadataSource createSecurityMetadataSource( ActionConfig actionConfig )
76 {75 {
77 return createObjectDefinitionSource( actionConfig, actionConfig );76 return createSecurityMetadataSource( actionConfig, actionConfig );
78 }77 }
79 public ObjectDefinitionSource createObjectDefinitionSource( ActionConfig actionConfig, Object object )78 public SecurityMetadataSource createSecurityMetadataSource( ActionConfig actionConfig, Object object )
80 {79 {
81 Collection<String> requiredAuthorities = getRequiredAuthorities( actionConfig );80 Collection<String> requiredAuthorities = getRequiredAuthorities( actionConfig );
8281
83 List<SecurityConfig> list = new ArrayList<SecurityConfig>();82 Collection<ConfigAttribute> attributes = new ArrayList<ConfigAttribute>();
84 83
85 for ( String requiredAuthority : requiredAuthorities )84 for ( String requiredAuthority : requiredAuthorities )
86 {85 {
87 list.add( new SecurityConfig( requiredAuthority ) );86 attributes.add( new SecurityConfig( requiredAuthority ) );
88 }87 }
8988
90 for ( String globalAttribute : globalAttributes )89 for ( String globalAttribute : globalAttributes )
91 {90 {
92 list.add( new SecurityConfig( globalAttribute ) );91 attributes.add( new SecurityConfig( globalAttribute ) );
93 }92 }
9493
95 ConfigAttributeDefinition attributes = new ConfigAttributeDefinition(list);94 return new SingleSecurityMetadataSource( object, attributes );
96
97 return new SingleObjectDefinitionSource( object, attributes );
98 }95 }
99 96
100 public Collection<String> getRequiredAuthorities( ActionConfig actionConfig )97 public Collection<String> getRequiredAuthorities( ActionConfig actionConfig )
10198
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/authority/RequiredAuthoritiesProvider.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/authority/RequiredAuthoritiesProvider.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/authority/RequiredAuthoritiesProvider.java 2010-05-07 11:16:36 +0000
@@ -29,7 +29,7 @@
2929
30import java.util.Collection;30import java.util.Collection;
3131
32import org.springframework.security.intercept.ObjectDefinitionSource;32import org.springframework.security.access.SecurityMetadataSource;
3333
34import com.opensymphony.xwork2.config.entities.ActionConfig;34import com.opensymphony.xwork2.config.entities.ActionConfig;
3535
@@ -40,25 +40,25 @@
40public interface RequiredAuthoritiesProvider40public interface RequiredAuthoritiesProvider
41{41{
42 /**42 /**
43 * Creates an ObjectDefinitionSource based on the required authorities for43 * Creates an SecurityMetadataSource based on the required authorities for
44 * the action config. The specified action config is set as the secure44 * the action config. The specified action config is set as the secure
45 * object. The ObjectDefinitionSource may include additional attributes if45 * object. The SecurityMetadataSource may include additional attributes if
46 * needed.46 * needed.
47 * 47 *
48 * @param actionConfig the secure actionConfig to get required authorities48 * @param actionConfig the secure actionConfig to get required authorities
49 * from.49 * from.
50 */50 */
51 public ObjectDefinitionSource createObjectDefinitionSource( ActionConfig actionConfig );51 public SecurityMetadataSource createSecurityMetadataSource( ActionConfig actionConfig );
5252
53 /**53 /**
54 * Creates an ObjectDefinitionSource for a specified secure object based on54 * Creates an SecurityMetadataSource for a specified secure object based on
55 * the required authorities for the action config. The55 * the required authorities for the action config. The
56 * ObjectDefinitionSource may include additional attributes if needed.56 * SecurityMetadataSource may include additional attributes if needed.
57 * 57 *
58 * @param actionConfig the actionConfig to get required authorities from.58 * @param actionConfig the actionConfig to get required authorities from.
59 * @param object the secure object.59 * @param object the secure object.
60 */60 */
61 public ObjectDefinitionSource createObjectDefinitionSource( ActionConfig actionConfig, Object object );61 public SecurityMetadataSource createSecurityMetadataSource( ActionConfig actionConfig, Object object );
6262
63 /**63 /**
64 * Returns the required authorities of an action configuration.64 * Returns the required authorities of an action configuration.
6565
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/filter/UserAuditLogoutFilter.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/filter/UserAuditLogoutFilter.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/filter/UserAuditLogoutFilter.java 2010-05-07 11:16:36 +0000
@@ -31,9 +31,9 @@
31import javax.servlet.http.HttpServletResponse;31import javax.servlet.http.HttpServletResponse;
3232
33import org.hisp.dhis.useraudit.UserAuditService;33import org.hisp.dhis.useraudit.UserAuditService;
34import org.springframework.security.Authentication;34import org.springframework.security.core.Authentication;
35import org.springframework.security.ui.logout.LogoutHandler;35import org.springframework.security.core.userdetails.UserDetails;
36import org.springframework.security.userdetails.UserDetails;36import org.springframework.security.web.authentication.logout.LogoutHandler;
3737
38/**38/**
39 * @author Lars Helge Overland39 * @author Lars Helge Overland
4040
=== renamed file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/intercept/SingleObjectDefinitionSource.java' => 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/intercept/SingleSecurityMetadataSource.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/intercept/SingleObjectDefinitionSource.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/intercept/SingleSecurityMetadataSource.java 2010-05-07 11:16:36 +0000
@@ -29,42 +29,41 @@
2929
30import java.util.Collection;30import java.util.Collection;
3131
32import org.springframework.security.ConfigAttributeDefinition;32import org.springframework.security.access.ConfigAttribute;
33import org.springframework.security.intercept.ObjectDefinitionSource;33import org.springframework.security.access.SecurityMetadataSource;
3434
35/**35/**
36 * Generic ObjectDefinitionSource for one single object.36 * Generic SecurityMetadataSource for one single object.
37 * 37 *
38 * @author Torgeir Lorange Ostby38 * @author Torgeir Lorange Ostby
39 * @version $Id: SingleObjectDefinitionSource.java 6335 2008-11-20 11:11:26Z larshelg $
40 */39 */
41public class SingleObjectDefinitionSource40public class SingleSecurityMetadataSource
42 implements ObjectDefinitionSource41 implements SecurityMetadataSource
43{42{
44 private Object object;43 private Object object;
4544
46 private ConfigAttributeDefinition attributes;45 private Collection<ConfigAttribute> attributes;
4746
48 // -------------------------------------------------------------------------47 // -------------------------------------------------------------------------
49 // Constructors48 // Constructors
50 // -------------------------------------------------------------------------49 // -------------------------------------------------------------------------
5150
52 public SingleObjectDefinitionSource( Object object )51 public SingleSecurityMetadataSource( Object object )
53 {52 {
54 this.object = object;53 this.object = object;
55 }54 }
5655
57 public SingleObjectDefinitionSource( Object object, ConfigAttributeDefinition attributes )56 public SingleSecurityMetadataSource( Object object, Collection<ConfigAttribute> attributes )
58 {57 {
59 this.object = object; 58 this.object = object;
60 this.attributes = attributes; 59 this.attributes = attributes;
61 }60 }
6261
63 // -------------------------------------------------------------------------62 // -------------------------------------------------------------------------
64 // ObjectDefinitionSource implementation63 // SecurityMetadataSource implementation
65 // -------------------------------------------------------------------------64 // -------------------------------------------------------------------------
6665
67 public ConfigAttributeDefinition getAttributes( Object object )66 public Collection<ConfigAttribute> getAttributes( Object object )
68 throws IllegalArgumentException67 throws IllegalArgumentException
69 {68 {
70 if ( !supports( object.getClass() ) )69 if ( !supports( object.getClass() ) )
@@ -80,14 +79,16 @@
80 return null;79 return null;
81 }80 }
8281
83 public Collection<?> getConfigAttributeDefinitions()82 @Override
84 {83 public boolean supports( Class<?> clazz )
85 return null;
86 }
87
88 @SuppressWarnings( "unchecked" )
89 public boolean supports( Class clazz )
90 {84 {
91 return clazz.isAssignableFrom( object.getClass() );85 return clazz.isAssignableFrom( object.getClass() );
92 }86 }
87
88 @Override
89 public Collection<ConfigAttribute> getAllConfigAttributes()
90 {
91 return this.attributes;
92 }
93
93}94}
9495
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/intercept/XWorkSecurityInterceptor.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/intercept/XWorkSecurityInterceptor.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/intercept/XWorkSecurityInterceptor.java 2010-05-07 11:16:36 +0000
@@ -30,11 +30,11 @@
30import java.util.HashMap;30import java.util.HashMap;
31import java.util.Map;31import java.util.Map;
3232
33import org.springframework.security.intercept.AbstractSecurityInterceptor;
34import org.springframework.security.intercept.InterceptorStatusToken;
35import org.springframework.security.intercept.ObjectDefinitionSource;
36import org.hisp.dhis.security.ActionAccessResolver;33import org.hisp.dhis.security.ActionAccessResolver;
37import org.hisp.dhis.security.authority.RequiredAuthoritiesProvider;34import org.hisp.dhis.security.authority.RequiredAuthoritiesProvider;
35import org.springframework.security.access.SecurityMetadataSource;
36import org.springframework.security.access.intercept.AbstractSecurityInterceptor;
37import org.springframework.security.access.intercept.InterceptorStatusToken;
3838
39import com.opensymphony.xwork2.ActionInvocation;39import com.opensymphony.xwork2.ActionInvocation;
40import com.opensymphony.xwork2.config.entities.ActionConfig;40import com.opensymphony.xwork2.config.entities.ActionConfig;
@@ -50,7 +50,7 @@
50{50{
51 private static final String KEY_ACTION_ACCESS_RESOLVER = "auth";51 private static final String KEY_ACTION_ACCESS_RESOLVER = "auth";
5252
53 private ThreadLocal<ObjectDefinitionSource> definitionSourceTag = new ThreadLocal<ObjectDefinitionSource>();53 private ThreadLocal<SecurityMetadataSource> definitionSourceTag = new ThreadLocal<SecurityMetadataSource>();
5454
55 // -------------------------------------------------------------------------55 // -------------------------------------------------------------------------
56 // Dependencies56 // Dependencies
@@ -85,14 +85,14 @@
85 public String intercept( ActionInvocation invocation )85 public String intercept( ActionInvocation invocation )
86 throws Exception86 throws Exception
87 {87 {
88 Object result = null;
89 ActionConfig actionConfig = invocation.getProxy().getConfig();88 ActionConfig actionConfig = invocation.getProxy().getConfig();
90 definitionSourceTag.set( requiredAuthoritiesProvider.createObjectDefinitionSource( actionConfig ) );89 definitionSourceTag.set( requiredAuthoritiesProvider.createSecurityMetadataSource( actionConfig ) );
9190
92 InterceptorStatusToken token = beforeInvocation( actionConfig );91 InterceptorStatusToken token = beforeInvocation( actionConfig );
9392
94 addActionAccessResolver( invocation );93 addActionAccessResolver( invocation );
9594
95 Object result = null;
96 try96 try
97 {97 {
98 result = invocation.invoke();98 result = invocation.invoke();
@@ -123,9 +123,9 @@
123 }123 }
124124
125 @Override125 @Override
126 public ObjectDefinitionSource obtainObjectDefinitionSource()126 public SecurityMetadataSource obtainSecurityMetadataSource()
127 {127 {
128 ObjectDefinitionSource definitionSource = definitionSourceTag.get();128 SecurityMetadataSource definitionSource = definitionSourceTag.get();
129129
130 if ( definitionSource != null )130 if ( definitionSource != null )
131 {131 {
@@ -137,7 +137,7 @@
137 // invocation. Returning an empty dummy.137 // invocation. Returning an empty dummy.
138 // ---------------------------------------------------------------------138 // ---------------------------------------------------------------------
139139
140 return new SingleObjectDefinitionSource( new ActionConfig.Builder( "", "", "" ).build() );140 return new SingleSecurityMetadataSource( new ActionConfig.Builder( "", "", "" ).build() );
141 }141 }
142142
143 // -------------------------------------------------------------------------143 // -------------------------------------------------------------------------
144144
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/listener/AuthenticationListener.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/listener/AuthenticationListener.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/listener/AuthenticationListener.java 2010-05-07 11:16:36 +0000
@@ -30,9 +30,9 @@
30import org.hisp.dhis.useraudit.UserAuditService;30import org.hisp.dhis.useraudit.UserAuditService;
31import org.springframework.context.ApplicationEvent;31import org.springframework.context.ApplicationEvent;
32import org.springframework.context.ApplicationListener;32import org.springframework.context.ApplicationListener;
33import org.springframework.security.event.authentication.AbstractAuthenticationFailureEvent;33import org.springframework.security.authentication.event.AbstractAuthenticationFailureEvent;
34import org.springframework.security.event.authentication.AuthenticationSuccessEvent;34import org.springframework.security.authentication.event.AuthenticationSuccessEvent;
35import org.springframework.security.userdetails.UserDetails;35import org.springframework.security.core.userdetails.UserDetails;
3636
37/**37/**
38 * @author Lars Helge Overland38 * @author Lars Helge Overland
3939
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/vote/AbstractPrefixedAccessDecisionVoter.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/vote/AbstractPrefixedAccessDecisionVoter.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/vote/AbstractPrefixedAccessDecisionVoter.java 2010-05-07 11:16:36 +0000
@@ -27,10 +27,10 @@
27 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.27 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */28 */
2929
30import org.springframework.security.ConfigAttribute;
31import org.springframework.security.vote.AccessDecisionVoter;
32import org.apache.commons.logging.Log;30import org.apache.commons.logging.Log;
33import org.apache.commons.logging.LogFactory;31import org.apache.commons.logging.LogFactory;
32import org.springframework.security.access.AccessDecisionVoter;
33import org.springframework.security.access.ConfigAttribute;
3434
35/**35/**
36 * @author Torgeir Lorange Ostby36 * @author Torgeir Lorange Ostby
3737
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/vote/ActionAccessVoter.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/vote/ActionAccessVoter.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/vote/ActionAccessVoter.java 2010-05-07 11:16:36 +0000
@@ -31,10 +31,9 @@
3131
32import org.apache.commons.logging.Log;32import org.apache.commons.logging.Log;
33import org.apache.commons.logging.LogFactory;33import org.apache.commons.logging.LogFactory;
34import org.springframework.security.Authentication;34import org.springframework.security.access.ConfigAttribute;
35import org.springframework.security.ConfigAttribute;35import org.springframework.security.core.Authentication;
36import org.springframework.security.ConfigAttributeDefinition;36import org.springframework.security.core.GrantedAuthority;
37import org.springframework.security.GrantedAuthority;
3837
39import com.opensymphony.xwork2.config.entities.ActionConfig;38import com.opensymphony.xwork2.config.entities.ActionConfig;
4039
@@ -51,8 +50,8 @@
51 // AccessDecisionVoter implementation50 // AccessDecisionVoter implementation
52 // -------------------------------------------------------------------------51 // -------------------------------------------------------------------------
5352
54 @SuppressWarnings( "unchecked" )53 @Override
55 public boolean supports( Class clazz )54 public boolean supports( Class<?> clazz )
56 {55 {
57 boolean result = ActionConfig.class.equals( clazz );56 boolean result = ActionConfig.class.equals( clazz );
5857
@@ -61,8 +60,8 @@
61 return result;60 return result;
62 }61 }
6362
64 @SuppressWarnings( "unchecked" )63 @Override
65 public int vote( Authentication authentication, Object object, ConfigAttributeDefinition definition )64 public int vote( Authentication authentication, Object object, Collection<ConfigAttribute> attributes )
66 {65 {
67 if ( !supports( object.getClass() ) )66 if ( !supports( object.getClass() ) )
68 {67 {
@@ -73,8 +72,6 @@
7372
74 int supported = 0;73 int supported = 0;
75 74
76 Collection<ConfigAttribute> attributes = definition.getConfigAttributes();
77
78 for ( ConfigAttribute attribute : attributes )75 for ( ConfigAttribute attribute : attributes )
79 {76 {
80 if ( supports( attribute ) )77 if ( supports( attribute ) )
8178
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/vote/LogicalOrAccessDecisionManager.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/vote/LogicalOrAccessDecisionManager.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/vote/LogicalOrAccessDecisionManager.java 2010-05-07 11:16:36 +0000
@@ -27,17 +27,17 @@
27 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.27 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */28 */
2929
30import java.util.Collection;
30import java.util.Collections;31import java.util.Collections;
31import java.util.List;32import java.util.List;
3233
33import org.springframework.security.AccessDecisionManager;
34import org.springframework.security.AccessDeniedException;
35import org.springframework.security.Authentication;
36import org.springframework.security.ConfigAttribute;
37import org.springframework.security.ConfigAttributeDefinition;
38import org.springframework.security.InsufficientAuthenticationException;
39import org.apache.commons.logging.Log;34import org.apache.commons.logging.Log;
40import org.apache.commons.logging.LogFactory;35import org.apache.commons.logging.LogFactory;
36import org.springframework.security.access.AccessDecisionManager;
37import org.springframework.security.access.AccessDeniedException;
38import org.springframework.security.access.ConfigAttribute;
39import org.springframework.security.authentication.InsufficientAuthenticationException;
40import org.springframework.security.core.Authentication;
4141
42/**42/**
43 * AccessDecisionManager which delegates to other AccessDecisionManagers in a43 * AccessDecisionManager which delegates to other AccessDecisionManagers in a
@@ -65,7 +65,8 @@
65 // Interface implementation65 // Interface implementation
66 // -------------------------------------------------------------------------66 // -------------------------------------------------------------------------
6767
68 public void decide( Authentication authentication, Object object, ConfigAttributeDefinition definition )68 @Override
69 public void decide( Authentication authentication, Object object, Collection<ConfigAttribute> configAttributes )
69 throws AccessDeniedException, InsufficientAuthenticationException70 throws AccessDeniedException, InsufficientAuthenticationException
70 {71 {
71 AccessDeniedException ade = null;72 AccessDeniedException ade = null;
@@ -75,7 +76,7 @@
75 {76 {
76 try77 try
77 {78 {
78 accessDecisionManager.decide( authentication, object, definition );79 accessDecisionManager.decide( authentication, object, configAttributes );
7980
80 LOG.debug( "ACCESS GRANTED [" + object.toString() + "]" );81 LOG.debug( "ACCESS GRANTED [" + object.toString() + "]" );
8182
@@ -117,8 +118,8 @@
117 return false;118 return false;
118 }119 }
119120
120 @SuppressWarnings( "unchecked" )121 @Override
121 public boolean supports( Class clazz )122 public boolean supports( Class<?> clazz )
122 {123 {
123 for ( AccessDecisionManager accessDecisionManager : accessDecisionManagers )124 for ( AccessDecisionManager accessDecisionManager : accessDecisionManagers )
124 {125 {
125126
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/vote/ModuleAccessVoter.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/vote/ModuleAccessVoter.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/vote/ModuleAccessVoter.java 2010-05-07 11:16:36 +0000
@@ -27,14 +27,15 @@
27 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.27 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */28 */
2929
30import java.util.Collection;
30import java.util.Collections;31import java.util.Collections;
31import java.util.Set;32import java.util.Set;
3233
33import org.springframework.security.Authentication;
34import org.springframework.security.ConfigAttributeDefinition;
35import org.springframework.security.GrantedAuthority;
36import org.apache.commons.logging.Log;34import org.apache.commons.logging.Log;
37import org.apache.commons.logging.LogFactory;35import org.apache.commons.logging.LogFactory;
36import org.springframework.security.access.ConfigAttribute;
37import org.springframework.security.core.Authentication;
38import org.springframework.security.core.GrantedAuthority;
3839
39import com.opensymphony.xwork2.config.entities.ActionConfig;40import com.opensymphony.xwork2.config.entities.ActionConfig;
4041
@@ -75,8 +76,8 @@
75 * <code>com.opensymphony.xwork.config.entities.ActionConfig</code>.76 * <code>com.opensymphony.xwork.config.entities.ActionConfig</code>.
76 * False otherwise.77 * False otherwise.
77 */78 */
78 @SuppressWarnings( "unchecked" )79 @Override
79 public boolean supports( Class clazz )80 public boolean supports( Class<?> clazz )
80 {81 {
81 boolean result = ActionConfig.class.equals( clazz );82 boolean result = ActionConfig.class.equals( clazz );
8283
@@ -91,7 +92,7 @@
91 * prefix + module name, or the module name is in the always accessible set.92 * prefix + module name, or the module name is in the always accessible set.
92 * Otherwise votes ACCESS_DENIED.93 * Otherwise votes ACCESS_DENIED.
93 */94 */
94 public int vote( Authentication authentication, Object object, ConfigAttributeDefinition definition )95 public int vote( Authentication authentication, Object object, Collection<ConfigAttribute> attributes )
95 {96 {
96 if ( !supports( object.getClass() ) )97 if ( !supports( object.getClass() ) )
97 {98 {
9899
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/vote/SimpleAccessVoter.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/vote/SimpleAccessVoter.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/vote/SimpleAccessVoter.java 2010-05-07 11:16:36 +0000
@@ -27,14 +27,16 @@
27 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.27 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */28 */
2929
30import org.springframework.security.Authentication;30import java.util.Collection;
31import org.springframework.security.ConfigAttribute;31
32import org.springframework.security.ConfigAttributeDefinition;
33import org.springframework.security.GrantedAuthority;
34import org.springframework.security.vote.AccessDecisionVoter;
35import org.apache.commons.logging.Log;32import org.apache.commons.logging.Log;
36import org.apache.commons.logging.LogFactory;33import org.apache.commons.logging.LogFactory;
3734
35import org.springframework.security.access.AccessDecisionVoter;
36import org.springframework.security.access.ConfigAttribute;
37import org.springframework.security.core.Authentication;
38import org.springframework.security.core.GrantedAuthority;
39
38/**40/**
39 * Simple AccessDecisionVoter which grants access if a specified required41 * Simple AccessDecisionVoter which grants access if a specified required
40 * authority is among the configAttributes.42 * authority is among the configAttributes.
@@ -64,13 +66,13 @@
64 && configAttribute.getAttribute().equals( requiredAuthority );66 && configAttribute.getAttribute().equals( requiredAuthority );
65 }67 }
6668
67 @SuppressWarnings( "unchecked" )69 @Override
68 public boolean supports( Class clazz )70 public boolean supports( Class<?> clazz )
69 {71 {
70 return true;72 return true;
71 }73 }
7274
73 public int vote( Authentication authentication, Object object, ConfigAttributeDefinition definition )75 public int vote( Authentication authentication, Object object, Collection<ConfigAttribute> attributes )
74 {76 {
75 for ( GrantedAuthority authority : authentication.getAuthorities() )77 for ( GrantedAuthority authority : authentication.getAuthorities() )
76 {78 {
7779
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/resources/META-INF/dhis/beans.xml'
--- dhis-2/dhis-web/dhis-web-commons/src/main/resources/META-INF/dhis/beans.xml 2010-04-28 04:59:07 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/resources/META-INF/dhis/beans.xml 2010-05-07 11:16:36 +0000
@@ -5,7 +5,7 @@
5 xsi:schemaLocation="http://www.springframework.org/schema/beans 5 xsi:schemaLocation="http://www.springframework.org/schema/beans
6 http://www.springframework.org/schema/beans/spring-beans-2.0.xsd6 http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
7 http://www.springframework.org/schema/security7 http://www.springframework.org/schema/security
8 http://www.springframework.org/schema/security/spring-security-2.0.xsd">8 http://www.springframework.org/schema/security/spring-security-2.0.4.xsd">
99
10 <!-- Web Portal -->10 <!-- Web Portal -->
1111
@@ -21,7 +21,7 @@
21 </property>21 </property>
22 </bean>22 </bean>
23 23
24 <bean id="filterChainProxy" class="org.springframework.security.util.FilterChainProxy">24 <bean id="filterChainProxy" class="org.springframework.security.web.FilterChainProxy">
25 <sec:filter-chain-map path-type="ant">25 <sec:filter-chain-map path-type="ant">
26 <sec:filter-chain pattern="/dhis-web-commons/security/**" filters="none"/>26 <sec:filter-chain pattern="/dhis-web-commons/security/**" filters="none"/>
27 <sec:filter-chain pattern="/dhis-web-commons/util/**" filters="none"/>27 <sec:filter-chain pattern="/dhis-web-commons/util/**" filters="none"/>
@@ -281,23 +281,31 @@
281 <!-- Security : Filter -->281 <!-- Security : Filter -->
282 282
283 <bean id="httpSessionContextIntegrationFilter"283 <bean id="httpSessionContextIntegrationFilter"
284 class="org.springframework.security.context.HttpSessionContextIntegrationFilter" />284 class="org.springframework.security.web.context.HttpSessionContextIntegrationFilter" />
285285
286 <bean id="authenticationProcessingFilter"286 <bean id="authenticationProcessingFilter"
287 class="org.springframework.security.ui.webapp.AuthenticationProcessingFilter">287 class="org.springframework.security.web.authentication.AuthenticationProcessingFilter">
288 <property name="authenticationManager" ref="authenticationManager" />288 <property name="authenticationManager" ref="authenticationManager" />
289 <property name="authenticationFailureUrl" value="/dhis-web-commons/security/loginfailed.jsp" />289 <property name="authenticationFailureHandler" ref="failureHandler" />
290 <property name="defaultTargetUrl" value="/dhis-web-commons-security/loggedIn.action" />290 <property name="authenticationSuccessHandler" ref="successHandler" />
291 <property name="filterProcessesUrl" value="/dhis-web-commons-security/login.action" />291 <property name="filterProcessesUrl" value="/dhis-web-commons-security/login.action" />
292 <property name="alwaysUseDefaultTargetUrl" value="true" />
293 </bean>292 </bean>
294293
295 <bean id="logoutFilter" class="org.springframework.security.ui.logout.LogoutFilter">294 <bean id="successHandler" class="org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler" >
295 <property name="defaultTargetUrl" value="/dhis-web-commons-security/loggedIn.action" />
296 <property name="alwaysUseDefaultTargetUrl" value="true" />
297 </bean>
298
299 <bean id="failureHandler" class="org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler" >
300 <property name="defaultFailureUrl" value="/dhis-web-commons/security/loginfailed.jsp" />
301 </bean>
302
303 <bean id="logoutFilter" class="org.springframework.security.web.authentication.logout.LogoutFilter">
296 <constructor-arg value="/" />304 <constructor-arg value="/" />
297 <constructor-arg>305 <constructor-arg>
298 <list>306 <list>
299 <ref bean="userAuditLogoutFilter" />307 <ref bean="userAuditLogoutFilter" />
300 <bean class="org.springframework.security.ui.logout.SecurityContextLogoutHandler" />308 <bean class="org.springframework.security.web.authentication.logout.SecurityContextLogoutHandler" />
301 </list>309 </list>
302 </constructor-arg>310 </constructor-arg>
303 <property name="filterProcessesUrl" value="/dhis-web-commons-security/logout.action" />311 <property name="filterProcessesUrl" value="/dhis-web-commons-security/logout.action" />
@@ -369,7 +377,7 @@
369 </property>377 </property>
370 </bean>378 </bean>
371379
372 <bean id="regularAccessDecisionVoting" class="org.springframework.security.vote.UnanimousBased">380 <bean id="regularAccessDecisionVoting" class="org.springframework.security.access.vote.UnanimousBased">
373 <property name="decisionVoters">381 <property name="decisionVoters">
374 <list>382 <list>
375 <ref local="actionAccessVoter" />383 <ref local="actionAccessVoter" />
@@ -400,7 +408,7 @@
400 </property>408 </property>
401 </bean>409 </bean>
402410
403 <bean id="adminAccessDecisionVoting" class="org.springframework.security.vote.UnanimousBased">411 <bean id="adminAccessDecisionVoting" class="org.springframework.security.access.vote.UnanimousBased">
404 <property name="decisionVoters">412 <property name="decisionVoters">
405 <list>413 <list>
406 <ref local="adminAccessVoter" />414 <ref local="adminAccessVoter" />
407415
=== modified file 'dhis-2/dhis-web/dhis-web-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/datasetcompleted/action/GetDataSetAndPeriodByPeriodTypeAction.java'
--- dhis-2/dhis-web/dhis-web-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/datasetcompleted/action/GetDataSetAndPeriodByPeriodTypeAction.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/datasetcompleted/action/GetDataSetAndPeriodByPeriodTypeAction.java 2010-05-07 11:16:36 +0000
@@ -28,6 +28,7 @@
28package org.hisp.dhis.reportexcel.datasetcompleted.action;28package org.hisp.dhis.reportexcel.datasetcompleted.action;
2929
30import java.util.ArrayList;30import java.util.ArrayList;
31import java.util.Collections;
31import java.util.List;32import java.util.List;
3233
33import org.hisp.dhis.dataset.DataSet;34import org.hisp.dhis.dataset.DataSet;
@@ -45,8 +46,6 @@
4546
46import com.opensymphony.xwork2.Action;47import com.opensymphony.xwork2.Action;
4748
48import edu.emory.mathcs.backport.java.util.Collections;
49
50/**49/**
51 * @author Tran Thanh Tri50 * @author Tran Thanh Tri
52 * @version $Id$51 * @version $Id$
5352
=== modified file 'dhis-2/dhis-web/dhis-web-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/datasetcompleted/action/ViewDataSetCompletedAction.java'
--- dhis-2/dhis-web/dhis-web-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/datasetcompleted/action/ViewDataSetCompletedAction.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/datasetcompleted/action/ViewDataSetCompletedAction.java 2010-05-07 11:16:36 +0000
@@ -27,6 +27,7 @@
27package org.hisp.dhis.reportexcel.datasetcompleted.action;27package org.hisp.dhis.reportexcel.datasetcompleted.action;
2828
29import java.util.ArrayList;29import java.util.ArrayList;
30import java.util.Collections;
30import java.util.HashSet;31import java.util.HashSet;
31import java.util.List;32import java.util.List;
32import java.util.Set;33import java.util.Set;
@@ -44,8 +45,6 @@
44import org.hisp.dhis.period.comparator.PeriodComparator;45import org.hisp.dhis.period.comparator.PeriodComparator;
45import org.hisp.dhis.reportexcel.action.ActionSupport;46import org.hisp.dhis.reportexcel.action.ActionSupport;
4647
47import edu.emory.mathcs.backport.java.util.Collections;
48
49/**48/**
50 * @author Tran Thanh Tri49 * @author Tran Thanh Tri
51 * @version $Id$50 * @version $Id$
5251
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/java/org/hisp/dhis/dataadmin/action/databrowser/SearchAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/java/org/hisp/dhis/dataadmin/action/databrowser/SearchAction.java 2010-04-27 03:25:54 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/java/org/hisp/dhis/dataadmin/action/databrowser/SearchAction.java 2010-05-07 11:16:36 +0000
@@ -29,6 +29,7 @@
2929
30import java.util.ArrayList;30import java.util.ArrayList;
31import java.util.Collection;31import java.util.Collection;
32import java.util.Collections;
32import java.util.Iterator;33import java.util.Iterator;
33import java.util.List;34import java.util.List;
34import java.util.Set;35import java.util.Set;
@@ -53,8 +54,6 @@
5354
54import com.opensymphony.xwork2.Action;55import com.opensymphony.xwork2.Action;
5556
56import edu.emory.mathcs.backport.java.util.Collections;
57
58/**57/**
59 * @author espenjac, joakibj, briane, eivinhb58 * @author espenjac, joakibj, briane, eivinhb
60 * @version $Id$59 * @version $Id$
6160
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/resources/META-INF/dhis/beans.xml'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/resources/META-INF/dhis/beans.xml 2010-04-29 04:33:47 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/resources/META-INF/dhis/beans.xml 2010-05-07 11:16:36 +0000
@@ -414,16 +414,13 @@
414 </property>414 </property>
415 </bean>415 </bean>
416416
417 <bean417 <bean id="org.hisp.dhis.dataadmin.action.minmaxvalidation.UnselectOrganisationUnitGroupAction"
418 id="org.hisp.dhis.dataadmin.action.minmaxvalidation.UnselectOrganisationUnitGroupAction"418 class="org.hisp.dhis.dataadmin.action.minmaxvalidation.UnselectOrganisationUnitGroupAction"
419 class="org.hisp.dhis.dataadmin.action.minmaxvalidation.UnselectOrganisationUnitGroupAction"419 scope="prototype">
420 scope="prototype">420 <property name="selectionTreeManager"
421 <property name="selectionTreeManager">421 ref="org.hisp.dhis.oust.manager.SelectionTreeManager" />
422 <ref bean="org.hisp.dhis.oust.manager.SelectionTreeManager" />422 <property name="organisationUnitGroupService"
423 </property>423 ref="org.hisp.dhis.organisationunit.OrganisationUnitGroupService" />
424 <property name="organisationUnitGroupService">
425 <ref bean="org.hisp.dhis.organisationunit.OrganisationUnitGroupService" />
426 </property>
427 </bean>424 </bean>
428425
429</beans>426</beans>
430427
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/dataelement/GetDataElementAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/dataelement/GetDataElementAction.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/dataelement/GetDataElementAction.java 2010-05-07 11:16:36 +0000
@@ -27,7 +27,9 @@
27 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.27 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */28 */
2929
30
30import java.util.ArrayList;31import java.util.ArrayList;
32import java.util.Collections;
31import java.util.List;33import java.util.List;
3234
33import org.hisp.dhis.dataelement.DataElement;35import org.hisp.dhis.dataelement.DataElement;
@@ -37,8 +39,6 @@
3739
38import com.opensymphony.xwork2.ActionSupport;40import com.opensymphony.xwork2.ActionSupport;
3941
40import edu.emory.mathcs.backport.java.util.Collections;
41
42/**42/**
43 * @author Torgeir Lorange Ostby43 * @author Torgeir Lorange Ostby
44 * @version $Id: GetDataElementAction.java 5789 2008-10-02 09:47:04Z larshelg $44 * @version $Id: GetDataElementAction.java 5789 2008-10-02 09:47:04Z larshelg $
4545
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/dataelement/ShowAddDataElementForm.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/dataelement/ShowAddDataElementForm.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/dataelement/ShowAddDataElementForm.java 2010-05-07 11:16:36 +0000
@@ -29,6 +29,7 @@
2929
30import java.util.ArrayList;30import java.util.ArrayList;
31import java.util.Collection;31import java.util.Collection;
32import java.util.Collections;
32import java.util.List;33import java.util.List;
3334
34import org.hisp.dhis.common.comparator.IdentifiableObjectNameComparator;35import org.hisp.dhis.common.comparator.IdentifiableObjectNameComparator;
@@ -43,8 +44,6 @@
4344
44import com.opensymphony.xwork2.Action;45import com.opensymphony.xwork2.Action;
4546
46import edu.emory.mathcs.backport.java.util.Collections;
47
48/**47/**
49 * @author Hans S. Toemmerholt48 * @author Hans S. Toemmerholt
50 * @version $Id: GetDataElementAction.java 2869 2007-02-20 14:26:09Z andegje $49 * @version $Id: GetDataElementAction.java 2869 2007-02-20 14:26:09Z andegje $
5150
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/dataelement/ShowUpdateDataElementFormAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/dataelement/ShowUpdateDataElementFormAction.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/dataelement/ShowUpdateDataElementFormAction.java 2010-05-07 11:16:36 +0000
@@ -31,6 +31,7 @@
3131
32import java.util.ArrayList;32import java.util.ArrayList;
33import java.util.Collection;33import java.util.Collection;
34import java.util.Collections;
34import java.util.List;35import java.util.List;
35import java.util.Map;36import java.util.Map;
3637
@@ -49,8 +50,6 @@
4950
50import com.opensymphony.xwork2.ActionSupport;51import com.opensymphony.xwork2.ActionSupport;
5152
52import edu.emory.mathcs.backport.java.util.Collections;
53
54/**53/**
55 * @author Hans S. Toemmerholt54 * @author Hans S. Toemmerholt
56 * @version $Id: GetDataElementAction.java 2869 2007-02-20 14:26:09Z andegje $55 * @version $Id: GetDataElementAction.java 2869 2007-02-20 14:26:09Z andegje $
5756
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/indicatorgroup/GetAssignedIndicatorGroupsAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/indicatorgroup/GetAssignedIndicatorGroupsAction.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/indicatorgroup/GetAssignedIndicatorGroupsAction.java 2010-05-07 11:16:36 +0000
@@ -28,6 +28,7 @@
28 */28 */
2929
30import java.util.ArrayList;30import java.util.ArrayList;
31import java.util.Collections;
31import java.util.List;32import java.util.List;
3233
33import org.hisp.dhis.indicator.Indicator;34import org.hisp.dhis.indicator.Indicator;
@@ -37,7 +38,6 @@
3738
38import com.opensymphony.xwork2.Action;39import com.opensymphony.xwork2.Action;
3940
40import edu.emory.mathcs.backport.java.util.Collections;
4141
42/**42/**
43 * @author Tran Thanh Tri43 * @author Tran Thanh Tri
4444
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patientattributegroup/GetPatientAttributeGroupAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patientattributegroup/GetPatientAttributeGroupAction.java 2010-03-04 13:42:32 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patientattributegroup/GetPatientAttributeGroupAction.java 2010-05-07 11:16:36 +0000
@@ -28,6 +28,7 @@
28package org.hisp.dhis.patient.action.patientattributegroup;28package org.hisp.dhis.patient.action.patientattributegroup;
2929
30import java.util.ArrayList;30import java.util.ArrayList;
31import java.util.Collections;
31import java.util.List;32import java.util.List;
3233
33import org.hisp.dhis.patient.PatientAttribute;34import org.hisp.dhis.patient.PatientAttribute;
@@ -38,8 +39,6 @@
3839
39import com.opensymphony.xwork2.Action;40import com.opensymphony.xwork2.Action;
4041
41import edu.emory.mathcs.backport.java.util.Collections;
42
43/**42/**
44 * @author Chau Thu Tran43 * @author Chau Thu Tran
45 * @version $Id$44 * @version $Id$
4645
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patientattributegroup/GetPatientAttributeGroupListAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patientattributegroup/GetPatientAttributeGroupListAction.java 2010-01-29 03:08:45 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patientattributegroup/GetPatientAttributeGroupListAction.java 2010-05-07 11:16:36 +0000
@@ -28,6 +28,7 @@
28package org.hisp.dhis.patient.action.patientattributegroup;28package org.hisp.dhis.patient.action.patientattributegroup;
2929
30import java.util.ArrayList;30import java.util.ArrayList;
31import java.util.Collections;
31import java.util.List;32import java.util.List;
3233
33import org.hisp.dhis.patient.PatientAttributeGroup;34import org.hisp.dhis.patient.PatientAttributeGroup;
@@ -36,7 +37,6 @@
3637
37import com.opensymphony.xwork2.Action;38import com.opensymphony.xwork2.Action;
3839
39import edu.emory.mathcs.backport.java.util.Collections;
4040
41/**41/**
42 * @author Chau Thu Tran42 * @author Chau Thu Tran
4343
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patientidentifiertype/GetPatientIdentifierTypeListAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patientidentifiertype/GetPatientIdentifierTypeListAction.java 2010-04-03 09:35:43 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patientidentifiertype/GetPatientIdentifierTypeListAction.java 2010-05-07 11:16:36 +0000
@@ -28,6 +28,7 @@
28package org.hisp.dhis.patient.action.patientidentifiertype;28package org.hisp.dhis.patient.action.patientidentifiertype;
2929
30import java.util.ArrayList;30import java.util.ArrayList;
31import java.util.Collections;
31import java.util.List;32import java.util.List;
3233
33import org.hisp.dhis.patient.PatientIdentifierType;34import org.hisp.dhis.patient.PatientIdentifierType;
@@ -36,8 +37,6 @@
3637
37import com.opensymphony.xwork2.Action;38import com.opensymphony.xwork2.Action;
3839
39import edu.emory.mathcs.backport.java.util.Collections;
40
41/**40/**
42 * @author Viet 41 * @author Viet
43 * @version $Id$42 * @version $Id$
4443
=== modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetAllMapLegendsAction.java'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetAllMapLegendsAction.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetAllMapLegendsAction.java 2010-05-07 11:16:36 +0000
@@ -27,7 +27,9 @@
27 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.27 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */28 */
2929
30
30import java.util.ArrayList;31import java.util.ArrayList;
32import java.util.Collections;
31import java.util.List;33import java.util.List;
3234
33import org.hisp.dhis.mapping.MapLegend;35import org.hisp.dhis.mapping.MapLegend;
@@ -36,8 +38,6 @@
3638
37import com.opensymphony.xwork2.Action;39import com.opensymphony.xwork2.Action;
3840
39import edu.emory.mathcs.backport.java.util.Collections;
40
41/**41/**
42 * @author Jan Henrik Overland42 * @author Jan Henrik Overland
43 * @version $Id$43 * @version $Id$
4444
=== modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetMapLegendsByMapLegendSetAction.java'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetMapLegendsByMapLegendSetAction.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetMapLegendsByMapLegendSetAction.java 2010-05-07 11:16:36 +0000
@@ -28,6 +28,7 @@
28 */28 */
2929
30import java.util.ArrayList;30import java.util.ArrayList;
31import java.util.Collections;
31import java.util.List;32import java.util.List;
3233
33import org.hisp.dhis.mapping.MapLegend;34import org.hisp.dhis.mapping.MapLegend;
@@ -36,8 +37,6 @@
3637
37import com.opensymphony.xwork2.Action;38import com.opensymphony.xwork2.Action;
3839
39import edu.emory.mathcs.backport.java.util.Collections;
40
41/**40/**
42 * @author Jan Henrik Overland41 * @author Jan Henrik Overland
43 * @version $Id$42 * @version $Id$
4443
=== modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/chart/action/SaveChartAction.java'
--- dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/chart/action/SaveChartAction.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/chart/action/SaveChartAction.java 2010-05-07 11:16:36 +0000
@@ -30,6 +30,7 @@
30import static org.hisp.dhis.system.util.ConversionUtils.getIntegerCollection;30import static org.hisp.dhis.system.util.ConversionUtils.getIntegerCollection;
3131
32import java.util.ArrayList;32import java.util.ArrayList;
33import java.util.Collections;
33import java.util.List;34import java.util.List;
3435
35import org.hisp.dhis.chart.Chart;36import org.hisp.dhis.chart.Chart;
@@ -45,8 +46,6 @@
4546
46import com.opensymphony.xwork2.Action;47import com.opensymphony.xwork2.Action;
4748
48import edu.emory.mathcs.backport.java.util.Collections;
49
50/**49/**
51 * @author Lars Helge Overland50 * @author Lars Helge Overland
52 * @version $Id: UploadDesignAction.java 5207 2008-05-22 12:16:36Z larshelg $51 * @version $Id: UploadDesignAction.java 5207 2008-05-22 12:16:36Z larshelg $
5352
=== modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/pivottable/action/GetPivotTableAction.java'
--- dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/pivottable/action/GetPivotTableAction.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/pivottable/action/GetPivotTableAction.java 2010-05-07 11:16:36 +0000
@@ -27,6 +27,7 @@
27 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.27 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */28 */
2929
30import java.util.Collections;
30import java.util.Comparator;31import java.util.Comparator;
3132
32import org.hisp.dhis.i18n.I18nFormat;33import org.hisp.dhis.i18n.I18nFormat;
@@ -37,8 +38,6 @@
3738
38import com.opensymphony.xwork2.Action;39import com.opensymphony.xwork2.Action;
3940
40import edu.emory.mathcs.backport.java.util.Collections;
41
42/**41/**
43 * @author Lars Helge Overland42 * @author Lars Helge Overland
44 * @version $Id$43 * @version $Id$
4544
=== modified file 'dhis-2/dhis-web/dhis-web-validationrule/pom.xml'
--- dhis-2/dhis-web/dhis-web-validationrule/pom.xml 2010-04-08 16:55:35 +0000
+++ dhis-2/dhis-web/dhis-web-validationrule/pom.xml 2010-05-07 11:16:36 +0000
@@ -46,10 +46,6 @@
46 <!-- Other -->46 <!-- Other -->
47 47
48 <dependency>48 <dependency>
49 <groupId>org.springframework</groupId>
50 <artifactId>spring</artifactId>
51 </dependency>
52 <dependency>
53 <groupId>net.sourceforge.jexcelapi</groupId>49 <groupId>net.sourceforge.jexcelapi</groupId>
54 <artifactId>jxl</artifactId>50 <artifactId>jxl</artifactId>
55 </dependency>51 </dependency>
5652
=== modified file 'dhis-2/pom.xml'
--- dhis-2/pom.xml 2010-05-07 10:41:45 +0000
+++ dhis-2/pom.xml 2010-05-07 11:16:36 +0000
@@ -4,8 +4,8 @@
4 <artifactId>dhis</artifactId>4 <artifactId>dhis</artifactId>
5 <version>2.0.5-SNAPSHOT</version>5 <version>2.0.5-SNAPSHOT</version>
6 <packaging>pom</packaging>6 <packaging>pom</packaging>
7 <name>DHIS 2 - District Health Information System</name>7 <name>DHIS 2</name>
8 <url>http://dhis2.com</url>8 <url>http://dhis2.org</url>
9 9
10 <description>10 <description>
11 The District Health Information System deals with registering,11 The District Health Information System deals with registering,
@@ -62,6 +62,10 @@
62 <name>Dhis2 External Dependencies Repository</name>62 <name>Dhis2 External Dependencies Repository</name>
63 <url>http://dhis.uio.no/maven/external</url>63 <url>http://dhis.uio.no/maven/external</url>
64 </repository>64 </repository>
65 <repository>
66 <id>JBoss</id>
67 <url>http://repository.jboss.org/maven2</url>
68 </repository>
65 </repositories>69 </repositories>
66 70
67 <issueManagement>71 <issueManagement>
@@ -240,12 +244,12 @@
240 <dependency>244 <dependency>
241 <groupId>org.apache.struts</groupId>245 <groupId>org.apache.struts</groupId>
242 <artifactId>struts2-core</artifactId>246 <artifactId>struts2-core</artifactId>
243 <version>2.1.6</version>247 <version>2.1.8.1</version>
244 </dependency>248 </dependency>
245 <dependency>249 <dependency>
246 <groupId>org.apache.struts</groupId>250 <groupId>org.apache.struts</groupId>
247 <artifactId>struts2-spring-plugin</artifactId>251 <artifactId>struts2-spring-plugin</artifactId>
248 <version>2.1.6</version>252 <version>2.1.8.1</version>
249 <exclusions>253 <exclusions>
250 <exclusion>254 <exclusion>
251 <groupId>org.springframework</groupId>255 <groupId>org.springframework</groupId>
@@ -271,10 +275,17 @@
271 <artifactId>velocity-tools</artifactId>275 <artifactId>velocity-tools</artifactId>
272 <version>1.2</version>276 <version>1.2</version>
273 </dependency>277 </dependency>
278<!-- TODO: NEED TO DECIDE ON QUICK -->
274 <dependency>279 <dependency>
275 <groupId>org.amplecode</groupId>280 <groupId>org.amplecode</groupId>
276 <artifactId>quick</artifactId>281 <artifactId>quick</artifactId>
277 <version>1.1.6</version>282 <version>1.1.6</version>
283 <exclusions>
284 <exclusion>
285 <groupId>org.springframework</groupId>
286 <artifactId>spring</artifactId>
287 </exclusion>
288 </exclusions>
278 </dependency>289 </dependency>
279 <dependency>290 <dependency>
280 <groupId>com.lowagie</groupId>291 <groupId>com.lowagie</groupId>
@@ -283,34 +294,30 @@
283 </dependency>294 </dependency>
284 <dependency>295 <dependency>
285 <groupId>org.springframework</groupId>296 <groupId>org.springframework</groupId>
286 <artifactId>spring</artifactId>
287 <version>2.5.6</version>
288 </dependency>
289 <dependency>
290 <groupId>org.springframework</groupId>
291 <artifactId>spring-beans</artifactId>
292 <version>2.5.6</version>
293 </dependency>
294 <dependency>
295 <groupId>org.springframework</groupId>
296 <artifactId>spring-test</artifactId>297 <artifactId>spring-test</artifactId>
297 <version>2.5.6</version>298 <version>${spring.version}</version>
298 </dependency>299 </dependency>
299 <dependency>300 <dependency>
300 <groupId>org.springframework</groupId>301 <groupId>org.springframework</groupId>
301 <artifactId>spring-core</artifactId>302 <artifactId>spring-orm</artifactId>
302 <version>2.5.6</version>303 <version>${spring.version}</version>
303 </dependency>304 </dependency>
304 <dependency>305 <dependency>
305 <groupId>org.springframework</groupId>306 <groupId>org.springframework</groupId>
306 <artifactId>spring-context</artifactId>307 <artifactId>spring-context</artifactId>
307 <version>2.5.6</version>308 <version>${spring.version}</version>
308 </dependency>309 </dependency>
309 <dependency>310 <dependency>
310 <groupId>org.springframework</groupId>311 <groupId>org.springframework</groupId>
311 <artifactId>spring-web</artifactId>312 <artifactId>spring-web</artifactId>
312 <version>2.5.6</version>313 <version>${spring.version}</version>
313 </dependency>314 </dependency>
315 <dependency>
316 <groupId>org.springframework</groupId>
317 <artifactId>spring-tx</artifactId>
318 <version>${spring.version}</version>
319 </dependency>
320
314 <dependency>321 <dependency>
315 <groupId>org.aspectj</groupId>322 <groupId>org.aspectj</groupId>
316 <artifactId>aspectjrt</artifactId>323 <artifactId>aspectjrt</artifactId>
@@ -396,7 +403,7 @@
396 <dependency>403 <dependency>
397 <groupId>junit</groupId>404 <groupId>junit</groupId>
398 <artifactId>junit</artifactId>405 <artifactId>junit</artifactId>
399 <version>4.4</version>406 <version>4.8.1</version>
400 </dependency>407 </dependency>
401 <dependency>408 <dependency>
402 <groupId>org.amplecode</groupId>409 <groupId>org.amplecode</groupId>
@@ -418,6 +425,7 @@
418 <groupId>javax.servlet</groupId>425 <groupId>javax.servlet</groupId>
419 <artifactId>servlet-api</artifactId>426 <artifactId>servlet-api</artifactId>
420 <version>2.4</version>427 <version>2.4</version>
428 <scope>provided</scope>
421 </dependency>429 </dependency>
422 <!--DBMS -->430 <!--DBMS -->
423 <dependency>431 <dependency>
@@ -435,25 +443,43 @@
435 <artifactId>ibatis2-sqlmap</artifactId>443 <artifactId>ibatis2-sqlmap</artifactId>
436 <version>2.1.7.597</version>444 <version>2.1.7.597</version>
437 </dependency>445 </dependency>
438 <dependency>446
439 <groupId>org.hibernate</groupId>447 <dependency>
440 <artifactId>hibernate</artifactId>448 <groupId>org.hibernate</groupId>
441 <version>3.2.6.ga</version>449 <artifactId>hibernate-core</artifactId>
450 <version>3.5.1-Final</version>
451 </dependency>
452 <dependency>
453 <groupId>org.hibernate</groupId>
454 <artifactId>hibernate-ehcache</artifactId>
455 <version>3.5.1-Final</version>
442 <exclusions>456 <exclusions>
443 <exclusion>457 <exclusion>
444 <groupId>javax.transaction</groupId>458 <groupId>net.sf.ehcache</groupId>
445 <artifactId>jta</artifactId>459 <artifactId>ehcache</artifactId>
446 </exclusion>
447 <exclusion>
448 <groupId>pull-parser</groupId>
449 <artifactId>pull-parser</artifactId>
450 </exclusion>460 </exclusion>
451 </exclusions>461 </exclusions>
452 </dependency>462 </dependency>
453 <dependency>463 <dependency>
454 <groupId>net.sf.ehcache</groupId>464 <groupId>org.hibernate</groupId>
455 <artifactId>ehcache</artifactId>465 <artifactId>hibernate-entitymanager</artifactId>
456 <version>1.5.0</version>466 <version>3.5.1-Final</version>
467 </dependency>
468 <dependency>
469 <groupId>org.slf4j</groupId>
470 <artifactId>slf4j-log4j12</artifactId>
471 <version>1.5.8</version>
472 </dependency>
473
474 <dependency>
475 <groupId>net.sf.ehcache</groupId>
476 <artifactId>ehcache-core</artifactId>
477 <version>2.0.1</version>
478 </dependency>
479 <dependency>
480 <groupId>net.sf.ehcache</groupId>
481 <artifactId>ehcache-terracotta</artifactId>
482 <version>2.0.1</version>
457 </dependency>483 </dependency>
458 <dependency>484 <dependency>
459 <groupId>geronimo-spec</groupId>485 <groupId>geronimo-spec</groupId>
@@ -479,7 +505,7 @@
479 <dependency>505 <dependency>
480 <groupId>org.springframework.security</groupId>506 <groupId>org.springframework.security</groupId>
481 <artifactId>spring-security-core</artifactId>507 <artifactId>spring-security-core</artifactId>
482 <version>2.0.5.RELEASE</version>508 <version>3.0.2.RELEASE</version>
483 <exclusions>509 <exclusions>
484 <exclusion>510 <exclusion>
485 <groupId>org.springframework</groupId>511 <groupId>org.springframework</groupId>
@@ -501,8 +527,13 @@
501 </dependency>527 </dependency>
502 <dependency>528 <dependency>
503 <groupId>org.springframework.security</groupId>529 <groupId>org.springframework.security</groupId>
504 <artifactId>spring-security-core-tiger</artifactId>530 <artifactId>spring-security-web</artifactId>
505 <version>2.0.5.RELEASE</version>531 <version>3.0.2.RELEASE</version>
532 </dependency>
533 <dependency>
534 <groupId>org.springframework.security</groupId>
535 <artifactId>spring-security-config</artifactId>
536 <version>3.0.2.RELEASE</version>
506 </dependency>537 </dependency>
507 <!--Reporting -->538 <!--Reporting -->
508 <dependency>539 <dependency>
@@ -619,5 +650,6 @@
619 <properties>650 <properties>
620 <rootDir></rootDir>651 <rootDir></rootDir>
621 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>652 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
653 <spring.version>3.0.2.RELEASE</spring.version>
622 </properties>654 </properties>
623</project>655</project>