dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #32818
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 16715: expose dashboard items in ExportView
------------------------------------------------------------
revno: 16715
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Sun 2014-09-14 14:06:07 +0700
message:
expose dashboard items in ExportView
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/dashboard/DashboardItem.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/dashboard/DashboardItem.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/dashboard/DashboardItem.java 2014-09-12 11:14:27 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/dashboard/DashboardItem.java 2014-09-14 07:06:07 +0000
@@ -41,6 +41,7 @@
import org.hisp.dhis.common.IdentifiableObject;
import org.hisp.dhis.common.annotation.Scanned;
import org.hisp.dhis.common.view.DetailedView;
+import org.hisp.dhis.common.view.ExportView;
import org.hisp.dhis.document.Document;
import org.hisp.dhis.eventchart.EventChart;
import org.hisp.dhis.mapping.Map;
@@ -275,7 +276,7 @@
// -------------------------------------------------------------------------
@JsonProperty
- @JsonView( { DetailedView.class } )
+ @JsonView( { DetailedView.class, ExportView.class } )
@JsonSerialize( as = BaseIdentifiableObject.class )
@JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 )
public Chart getChart()
@@ -289,7 +290,7 @@
}
@JsonProperty
- @JsonView( { DetailedView.class } )
+ @JsonView( { DetailedView.class, ExportView.class } )
@JsonSerialize( as = BaseIdentifiableObject.class )
@JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 )
public EventChart getEventChart()
@@ -303,7 +304,7 @@
}
@JsonProperty
- @JsonView( { DetailedView.class } )
+ @JsonView( { DetailedView.class, ExportView.class } )
@JsonSerialize( as = BaseIdentifiableObject.class )
@JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 )
public Map getMap()
@@ -317,7 +318,7 @@
}
@JsonProperty
- @JsonView( { DetailedView.class } )
+ @JsonView( { DetailedView.class, ExportView.class } )
@JsonSerialize( as = BaseIdentifiableObject.class )
@JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 )
public ReportTable getReportTable()
@@ -331,7 +332,7 @@
}
@JsonProperty( value = "users" )
- @JsonView( { DetailedView.class } )
+ @JsonView( { DetailedView.class, ExportView.class } )
@JsonSerialize( contentAs = BaseIdentifiableObject.class )
@JacksonXmlElementWrapper( localName = "users", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "user", namespace = DxfNamespaces.DXF_2_0 )
@@ -346,7 +347,7 @@
}
@JsonProperty( value = "reportTables" )
- @JsonView( { DetailedView.class } )
+ @JsonView( { DetailedView.class, ExportView.class } )
@JsonSerialize( contentAs = BaseIdentifiableObject.class )
@JacksonXmlElementWrapper( localName = "reportTables", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "reportTableItem", namespace = DxfNamespaces.DXF_2_0 )
@@ -361,7 +362,7 @@
}
@JsonProperty( value = "reports" )
- @JsonView( { DetailedView.class } )
+ @JsonView( { DetailedView.class, ExportView.class } )
@JsonSerialize( contentAs = BaseIdentifiableObject.class )
@JacksonXmlElementWrapper( localName = "reports", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "report", namespace = DxfNamespaces.DXF_2_0 )
@@ -376,7 +377,7 @@
}
@JsonProperty( value = "resources" )
- @JsonView( { DetailedView.class } )
+ @JsonView( { DetailedView.class, ExportView.class } )
@JsonSerialize( contentAs = BaseIdentifiableObject.class )
@JacksonXmlElementWrapper( localName = "resources", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "resource", namespace = DxfNamespaces.DXF_2_0 )
@@ -391,7 +392,7 @@
}
@JsonProperty
- @JsonView( { DetailedView.class } )
+ @JsonView( { DetailedView.class, ExportView.class } )
@JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 )
public Boolean getMessages()
{