dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #37214
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 19042: Added JacksonXmlRootElement to ProgramRule classes
------------------------------------------------------------
revno: 19042
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2015-04-28 15:03:32 +0200
message:
Added JacksonXmlRootElement to ProgramRule classes
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/programrule/ProgramRule.java
dhis-2/dhis-api/src/main/java/org/hisp/dhis/programrule/ProgramRuleAction.java
dhis-2/dhis-api/src/main/java/org/hisp/dhis/programrule/ProgramRuleVariable.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/programrule/ProgramRule.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/programrule/ProgramRule.java 2015-03-13 08:24:36 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/programrule/ProgramRule.java 2015-04-28 13:03:32 +0000
@@ -44,16 +44,15 @@
import com.fasterxml.jackson.annotation.JsonView;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
/**
* @author markusbekken
*/
-
+@JacksonXmlRootElement( localName = "programRule", namespace = DxfNamespaces.DXF_2_0 )
public class ProgramRule
extends BaseIdentifiableObject
{
- private static final long serialVersionUID = -2807997671779497354L;
-
/**
* The program that the rule belongs to
*/
=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/programrule/ProgramRuleAction.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/programrule/ProgramRuleAction.java 2015-03-13 08:24:36 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/programrule/ProgramRuleAction.java 2015-04-28 13:03:32 +0000
@@ -41,16 +41,15 @@
import com.fasterxml.jackson.annotation.JsonView;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
/**
* @author markusbekken
*/
-
+@JacksonXmlRootElement( localName = "programRuleAction", namespace = DxfNamespaces.DXF_2_0 )
public class ProgramRuleAction
extends BaseIdentifiableObject
{
- private static final long serialVersionUID = -2807997671779497354L;
-
/**
* The programRule that the action belongs to
*/
@@ -89,7 +88,7 @@
private ProgramRuleActionType programRuleActionType;
/**
- * the dataelement that is affected by the ruleAction.
+ * The dataelement that is affected by the ruleAction.
* Used for
* hidefield
* showwarning
=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/programrule/ProgramRuleVariable.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/programrule/ProgramRuleVariable.java 2015-03-13 08:24:36 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/programrule/ProgramRuleVariable.java 2015-04-28 13:03:32 +0000
@@ -53,14 +53,11 @@
public class ProgramRuleVariable
extends BaseIdentifiableObject
{
- private static final long serialVersionUID = -2807997671779497354L;
-
/**
* The program that the variable belongs to
*/
private Program program;
-
/**
* The source of the variables content. Allowed values are:
* dataelement_newest_event_program_stage Get a specific data elements value