dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #41076
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20901: minor fixes to MetaData class, make sure that ProgramRule* classes have setters/getters
------------------------------------------------------------
revno: 20901
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2015-10-30 15:55:42 +0700
message:
minor fixes to MetaData class, make sure that ProgramRule* classes have setters/getters
modified:
dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata/MetaData.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-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata/MetaData.java'
--- dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata/MetaData.java 2015-09-01 07:37:41 +0000
+++ dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata/MetaData.java 2015-10-30 08:55:42 +0000
@@ -84,6 +84,9 @@
import org.hisp.dhis.program.ProgramStageDataElement;
import org.hisp.dhis.program.ProgramStageSection;
import org.hisp.dhis.program.ProgramValidation;
+import org.hisp.dhis.programrule.ProgramRule;
+import org.hisp.dhis.programrule.ProgramRuleAction;
+import org.hisp.dhis.programrule.ProgramRuleVariable;
import org.hisp.dhis.relationship.RelationshipType;
import org.hisp.dhis.report.Report;
import org.hisp.dhis.reporttable.ReportTable;
@@ -230,6 +233,12 @@
private List<ValidationCriteria> validationCriterias = new ArrayList<>();
+ private List<ProgramRule> programRules = new ArrayList<>();
+
+ private List<ProgramRuleAction> programRuleActions = new ArrayList<>();
+
+ private List<ProgramRuleVariable> programRuleVariables = new ArrayList<>();
+
private List<TrackedEntity> trackedEntities = new ArrayList<>();
private List<TrackedEntityAttribute> trackedEntityAttributes = new ArrayList<>();
@@ -961,6 +970,45 @@
}
@JsonProperty
+ @JacksonXmlElementWrapper( localName = "programRules", namespace = DxfNamespaces.DXF_2_0 )
+ @JacksonXmlProperty( localName = "programRule", namespace = DxfNamespaces.DXF_2_0 )
+ public List<ProgramRule> getProgramRules()
+ {
+ return programRules;
+ }
+
+ public void setProgramRules( List<ProgramRule> programRules )
+ {
+ this.programRules = programRules;
+ }
+
+ @JsonProperty
+ @JacksonXmlElementWrapper( localName = "programRuleActions", namespace = DxfNamespaces.DXF_2_0 )
+ @JacksonXmlProperty( localName = "programRuleAction", namespace = DxfNamespaces.DXF_2_0 )
+ public List<ProgramRuleAction> getProgramRuleActions()
+ {
+ return programRuleActions;
+ }
+
+ public void setProgramRuleActions( List<ProgramRuleAction> programRuleActions )
+ {
+ this.programRuleActions = programRuleActions;
+ }
+
+ @JsonProperty
+ @JacksonXmlElementWrapper( localName = "programRuleVariables", namespace = DxfNamespaces.DXF_2_0 )
+ @JacksonXmlProperty( localName = "programRuleVariable", namespace = DxfNamespaces.DXF_2_0 )
+ public List<ProgramRuleVariable> getProgramRuleVariables()
+ {
+ return programRuleVariables;
+ }
+
+ public void setProgramRuleVariables( List<ProgramRuleVariable> programRuleVariables )
+ {
+ this.programRuleVariables = programRuleVariables;
+ }
+
+ @JsonProperty
@JacksonXmlElementWrapper( localName = "events", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "event", namespace = DxfNamespaces.DXF_2_0 )
public List<Event> getEvents()