=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/configuration/Configuration.java' --- dhis-2/dhis-api/src/main/java/org/hisp/dhis/configuration/Configuration.java 2014-03-18 08:10:10 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/configuration/Configuration.java 2014-07-07 06:44:19 +0000 @@ -52,7 +52,11 @@ private static final PeriodType DEFAULT_INFRASTRUCTURAL_PERIODTYPE = new YearlyPeriodType(); private int id; - + + // ------------------------------------------------------------------------- + // Various + // ------------------------------------------------------------------------- + private String systemId; private UserGroup feedbackRecipients; @@ -66,7 +70,21 @@ private UserAuthorityGroup selfRegistrationRole; private OrganisationUnit selfRegistrationOrgUnit; - + + // ------------------------------------------------------------------------- + // Remote synch + // ------------------------------------------------------------------------- + + private String remoteServerUrl; + + private String remoteServerUsername; + + private String remoteServerPassword; + + // ------------------------------------------------------------------------- + // Constructor + // ------------------------------------------------------------------------- + public Configuration() { } @@ -168,4 +186,37 @@ { this.selfRegistrationOrgUnit = selfRegistrationOrgUnit; } + + public String getRemoteServerUrl() + { + return remoteServerUrl; + } + + public void setRemoteServerUrl( String remoteServerUrl ) + { + this.remoteServerUrl = remoteServerUrl; + } + + public String getRemoteServerUsername() + { + return remoteServerUsername; + } + + public void setRemoteServerUsername( String remoteServerUsername ) + { + this.remoteServerUsername = remoteServerUsername; + } + + /** + * Do not serialize. + */ + public String getRemoteServerPassword() + { + return remoteServerPassword; + } + + public void setRemoteServerPassword( String remoteServerPassword ) + { + this.remoteServerPassword = remoteServerPassword; + } } === modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataelement/DataElementDomainUserType.java' --- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataelement/DataElementDomainUserType.java 2014-06-15 13:20:39 +0000 +++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataelement/DataElementDomainUserType.java 2014-07-07 06:44:19 +0000 @@ -1,3 +1,5 @@ +package org.hisp.dhis.dataelement; + /* * Copyright (c) 2004-2013, University of Oslo * All rights reserved. @@ -25,20 +27,16 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -package org.hisp.dhis.dataelement; - import org.hisp.dhis.hibernate.EnumUserType; /** * @author Chau Thu Tran - * - * @version $ DataElementDomainUserType.java Jun 15, 2014 2:18:38 PM $ */ public class DataElementDomainUserType extends EnumUserType { - public DataElementDomainUserType() + public DataElementDomainUserType() { - super( DataElementDomain.class ); + super( DataElementDomain.class ); } } === modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/configuration/hibernate/Configuration.hbm.xml' --- dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/configuration/hibernate/Configuration.hbm.xml 2013-09-04 13:52:48 +0000 +++ dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/configuration/hibernate/Configuration.hbm.xml 2014-07-07 06:44:19 +0000 @@ -32,5 +32,11 @@ + + + + + + === modified file 'dhis-2/dhis-support/dhis-support-hibernate/pom.xml' --- dhis-2/dhis-support/dhis-support-hibernate/pom.xml 2014-05-11 12:02:11 +0000 +++ dhis-2/dhis-support/dhis-support-hibernate/pom.xml 2014-07-07 06:44:19 +0000 @@ -56,7 +56,22 @@ cglib cglib + + + + org.jasypt + jasypt + + + org.jasypt + jasypt-hibernate4 + + + org.jasypt + jasypt-spring31 + + === modified file 'dhis-2/dhis-support/dhis-support-hibernate/src/main/resources/META-INF/dhis/beans.xml' --- dhis-2/dhis-support/dhis-support-hibernate/src/main/resources/META-INF/dhis/beans.xml 2014-01-28 04:23:09 +0000 +++ dhis-2/dhis-support/dhis-support-hibernate/src/main/resources/META-INF/dhis/beans.xml 2014-07-07 06:44:19 +0000 @@ -90,4 +90,28 @@ + + + + + + + + + + + + + + + + + + + + + + H7g0oLkEw3wf52fs52g3hbG + + === 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 2014-05-11 11:32:18 +0000 +++ dhis-2/dhis-support/dhis-support-hibernate/src/main/resources/hibernate-default.properties 2014-07-07 06:44:19 +0000 @@ -14,7 +14,7 @@ hibernate.connection.driver_class = org.h2.Driver hibernate.connection.url = jdbc:h2:mem:dhis2;DB_CLOSE_DELAY=-1;MVCC=TRUE;ALIAS_COLUMN_NAME=TRUE;DB_CLOSE_ON_EXIT=FALSE hibernate.connection.username = sa -hibernate.connection.password = +hibernate.connection.password = sa hibernate.hbm2ddl.auto = create-drop # See c3p0-config.xml === added directory 'dhis-2/dhis-support/dhis-support-hibernate/src/main/resources/org' === added directory 'dhis-2/dhis-support/dhis-support-hibernate/src/main/resources/org/hisp' === added directory 'dhis-2/dhis-support/dhis-support-hibernate/src/main/resources/org/hisp/dhis' === added directory 'dhis-2/dhis-support/dhis-support-hibernate/src/main/resources/org/hisp/dhis/usertype' === added file 'dhis-2/dhis-support/dhis-support-hibernate/src/main/resources/org/hisp/dhis/usertype/UserTypes.hbm.xml' --- dhis-2/dhis-support/dhis-support-hibernate/src/main/resources/org/hisp/dhis/usertype/UserTypes.hbm.xml 1970-01-01 00:00:00 +0000 +++ dhis-2/dhis-support/dhis-support-hibernate/src/main/resources/org/hisp/dhis/usertype/UserTypes.hbm.xml 2014-07-07 06:44:19 +0000 @@ -0,0 +1,10 @@ + + + + + + strongHibernateStringEncryptor + + === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-settings/src/main/java/org/hisp/dhis/settings/action/system/GetGeneralSettingsAction.java' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-settings/src/main/java/org/hisp/dhis/settings/action/system/GetGeneralSettingsAction.java 2014-05-13 11:15:35 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-settings/src/main/java/org/hisp/dhis/settings/action/system/GetGeneralSettingsAction.java 2014-07-07 06:44:19 +0000 @@ -173,8 +173,6 @@ if ( offlineOrganisationUnitLevel == null ) { - // default to highest level - // TODO what if the org unit level hierarchy hasn't been created yet? int size = organisationUnitService.getOrganisationUnitLevels().size(); offlineOrganisationUnitLevel = organisationUnitService.getOrganisationUnitLevelByLevel( size ); === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-settings/src/main/java/org/hisp/dhis/settings/action/system/SetGeneralSettingsAction.java' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-settings/src/main/java/org/hisp/dhis/settings/action/system/SetGeneralSettingsAction.java 2014-05-04 13:16:49 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-settings/src/main/java/org/hisp/dhis/settings/action/system/SetGeneralSettingsAction.java 2014-07-07 06:44:19 +0000 @@ -245,7 +245,8 @@ configuration.setInfrastructuralPeriodType( periodService.getPeriodTypeByClass( PeriodType .getPeriodTypeByName( infrastructuralPeriodType ).getClass() ) ); } - + + configuration.setRemoteServerPassword( "abc" ); configurationService.setConfiguration( configuration ); message = i18n.getString( "settings_updated" ); === modified file 'dhis-2/pom.xml' --- dhis-2/pom.xml 2014-07-06 17:12:17 +0000 +++ dhis-2/pom.xml 2014-07-07 06:44:19 +0000 @@ -484,13 +484,28 @@ spring-security-openid ${spring.security.version} - org.springframework.mobile spring-mobile-device 1.0.2.RELEASE + + + org.jasypt + jasypt + 1.9.2 + + + org.jasypt + jasypt-hibernate4 + 1.9.2 + + + org.jasypt + jasypt-spring31 + 1.9.2 +