dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #30054
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 15246: remove programInstances from Program json/xml export, this should be considered data, and not exp...
------------------------------------------------------------
revno: 15246
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2014-05-13 10:03:15 +0200
message:
remove programInstances from Program json/xml export, this should be considered data, and not exported as meta-data
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/Program.java
dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata/ExchangeClasses.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/Program.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/Program.java 2014-04-25 11:22:12 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/Program.java 2014-05-13 08:03:15 +0000
@@ -274,10 +274,6 @@
this.organisationUnits = organisationUnits;
}
- @JsonProperty( value = "programInstances" )
- @JsonView( { DetailedView.class, ExportView.class, WithoutOrganisationUnitsView.class } )
- @JacksonXmlElementWrapper( localName = "programInstances", namespace = DxfNamespaces.DXF_2_0 )
- @JacksonXmlProperty( localName = "programInstance", namespace = DxfNamespaces.DXF_2_0 )
public Set<ProgramInstance> getProgramInstances()
{
return programInstances;
=== modified file 'dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata/ExchangeClasses.java'
--- dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata/ExchangeClasses.java 2014-04-03 16:03:26 +0000
+++ dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata/ExchangeClasses.java 2014-05-13 08:03:15 +0000
@@ -79,6 +79,7 @@
import org.hisp.dhis.user.User;
import org.hisp.dhis.user.UserAuthorityGroup;
import org.hisp.dhis.user.UserGroup;
+import org.hisp.dhis.validation.ValidationCriteria;
import org.hisp.dhis.validation.ValidationRule;
import org.hisp.dhis.validation.ValidationRuleGroup;
@@ -157,7 +158,7 @@
allExportClasses.put( Report.class, "reports" );
allExportClasses.put( Chart.class, "charts" );
allExportClasses.put( EventReport.class, "eventReports" );
-
+
allExportClasses.put( DataApprovalLevel.class, "dataApprovalLevels" );
allExportClasses.put( Dashboard.class, "dashboards" );
@@ -171,6 +172,7 @@
allExportClasses.put( MessageConversation.class, "messageConversations" );
allExportClasses.put( Interpretation.class, "interpretations" );
+ // allExportClasses.put( ValidationCriteria.class, "validationCriterias" );
allExportClasses.put( Program.class, "programs" );
allExportClasses.put( ProgramStage.class, "programStages" );
allExportClasses.put( RelationshipType.class, "relationshipTypes" );
@@ -192,7 +194,7 @@
importClasses.remove( Interpretation.class );
importClasses.remove( Dashboard.class );
importClasses.remove( BaseDimensionalObject.class );
-
+
// tracker types are not enabled for meta-data import-export yet
exportClasses.remove( Program.class );
exportClasses.remove( ProgramStage.class );