=== 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 2016-01-05 14:03:19 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/configuration/Configuration.java 2016-01-12 00:42:41 +0000 @@ -41,6 +41,8 @@ import org.hisp.dhis.organisationunit.OrganisationUnitLevel; import org.hisp.dhis.period.PeriodType; import org.hisp.dhis.period.YearlyPeriodType; +import org.hisp.dhis.schema.PropertyType; +import org.hisp.dhis.schema.annotation.Property; import org.hisp.dhis.user.UserAuthorityGroup; import org.hisp.dhis.user.UserGroup; @@ -190,6 +192,7 @@ @JsonProperty @JsonSerialize( using = JacksonPeriodTypeSerializer.class ) @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) + @Property( PropertyType.TEXT ) public PeriodType getInfrastructuralPeriodType() { return infrastructuralPeriodType; === modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataapproval/DataApprovalWorkflow.java' --- dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataapproval/DataApprovalWorkflow.java 2016-01-04 02:27:49 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataapproval/DataApprovalWorkflow.java 2016-01-12 00:42:41 +0000 @@ -45,6 +45,8 @@ import org.hisp.dhis.common.view.DetailedView; import org.hisp.dhis.common.view.ExportView; import org.hisp.dhis.period.PeriodType; +import org.hisp.dhis.schema.PropertyType; +import org.hisp.dhis.schema.annotation.Property; import java.util.ArrayList; import java.util.Collections; @@ -128,6 +130,7 @@ @JsonDeserialize( using = JacksonPeriodTypeDeserializer.class ) @JsonView( { DetailedView.class, ExportView.class } ) @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) + @Property( PropertyType.TEXT ) public PeriodType getPeriodType() { return periodType; === modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataset/DataSet.java' --- dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataset/DataSet.java 2016-01-05 14:52:29 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataset/DataSet.java 2016-01-12 00:42:41 +0000 @@ -36,7 +36,6 @@ import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement; import com.google.common.collect.Sets; - import org.hisp.dhis.common.BaseDimensionalItemObject; import org.hisp.dhis.common.BaseIdentifiableObject; import org.hisp.dhis.common.DxfNamespaces; @@ -60,6 +59,8 @@ import org.hisp.dhis.indicator.Indicator; import org.hisp.dhis.organisationunit.OrganisationUnit; import org.hisp.dhis.period.PeriodType; +import org.hisp.dhis.schema.PropertyType; +import org.hisp.dhis.schema.annotation.Property; import org.hisp.dhis.user.UserGroup; import java.util.HashSet; @@ -243,7 +244,7 @@ // ------------------------------------------------------------------------- // Logic // ------------------------------------------------------------------------- - + public void addOrganisationUnit( OrganisationUnit organisationUnit ) { sources.add( organisationUnit ); @@ -333,7 +334,7 @@ { return sections != null && sections.size() > 0; } - + /** * Indicates whether data should be approved for this data set, i.e. whether * this data set is part of a data approval workflow. @@ -440,6 +441,7 @@ @JsonDeserialize( using = JacksonPeriodTypeDeserializer.class ) @JsonView( { DetailedView.class, ExportView.class } ) @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) + @Property( PropertyType.TEXT ) public PeriodType getPeriodType() { return periodType; === modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/period/Period.java' --- dhis-2/dhis-api/src/main/java/org/hisp/dhis/period/Period.java 2016-01-04 02:27:49 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/period/Period.java 2016-01-12 00:42:41 +0000 @@ -37,6 +37,8 @@ import org.hisp.dhis.common.adapter.JacksonPeriodTypeSerializer; import org.hisp.dhis.common.view.DetailedView; import org.hisp.dhis.common.view.ExportView; +import org.hisp.dhis.schema.PropertyType; +import org.hisp.dhis.schema.annotation.Property; import org.joda.time.DateTime; import org.joda.time.Days; @@ -361,6 +363,7 @@ @JsonSerialize( using = JacksonPeriodTypeSerializer.class ) @JsonDeserialize( using = JacksonPeriodTypeDeserializer.class ) @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) + @Property( PropertyType.TEXT ) public PeriodType getPeriodType() { return periodType; === modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/ProgramStage.java' --- dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/ProgramStage.java 2016-01-04 02:27:49 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/ProgramStage.java 2016-01-12 00:42:41 +0000 @@ -48,6 +48,8 @@ import org.hisp.dhis.dataentryform.DataEntryForm; import org.hisp.dhis.dataset.FormType; import org.hisp.dhis.period.PeriodType; +import org.hisp.dhis.schema.PropertyType; +import org.hisp.dhis.schema.annotation.Property; import org.hisp.dhis.schema.annotation.PropertyRange; import org.hisp.dhis.trackedentity.TrackedEntityInstanceReminder; @@ -474,6 +476,7 @@ @JsonDeserialize( using = JacksonPeriodTypeDeserializer.class ) @JsonView( { DetailedView.class, ExportView.class } ) @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) + @Property( PropertyType.TEXT ) public PeriodType getPeriodType() { return periodType; === modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/validation/ValidationRule.java' --- dhis-2/dhis-api/src/main/java/org/hisp/dhis/validation/ValidationRule.java 2016-01-05 12:41:21 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/validation/ValidationRule.java 2016-01-12 00:42:41 +0000 @@ -47,6 +47,8 @@ import org.hisp.dhis.expression.Expression; import org.hisp.dhis.expression.Operator; import org.hisp.dhis.period.PeriodType; +import org.hisp.dhis.schema.PropertyType; +import org.hisp.dhis.schema.annotation.Property; import org.hisp.dhis.schema.annotation.PropertyRange; import java.util.HashSet; @@ -336,6 +338,7 @@ @JsonDeserialize( using = JacksonPeriodTypeDeserializer.class ) @JsonView( { DetailedView.class, ExportView.class } ) @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) + @Property( PropertyType.TEXT ) public PeriodType getPeriodType() { return periodType;