~stian-sandvold/dhis2/AnalyticsByUser

« back to all changes in this revision

Viewing changes to dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/DataElementCategory.java

  • Committer: Stian Sandvold
  • Date: 2016-08-03 09:05:19 UTC
  • mfrom: (23568.1.32 dhis2)
  • Revision ID: stian.sandvold@gmail.com-20160803090519-sw34m18dzycv2amz
merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 */
30
30
 
31
31
import com.fasterxml.jackson.annotation.JsonProperty;
32
 
import com.fasterxml.jackson.annotation.JsonView;
33
32
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
34
33
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
35
34
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
45
44
import org.hisp.dhis.common.IdentifiableObject;
46
45
import org.hisp.dhis.common.MergeMode;
47
46
import org.hisp.dhis.common.annotation.Scanned;
48
 
import org.hisp.dhis.common.view.DetailedView;
49
 
import org.hisp.dhis.common.view.DimensionalView;
50
 
import org.hisp.dhis.common.view.ExportView;
51
47
 
52
48
import java.util.ArrayList;
53
49
import java.util.List;
167
163
    @Override
168
164
    @JsonProperty
169
165
    @JsonSerialize( contentAs = BaseDimensionalItemObject.class )
170
 
    @JsonView( { DetailedView.class, DimensionalView.class } )
171
166
    @JacksonXmlElementWrapper( localName = "items", namespace = DxfNamespaces.DXF_2_0 )
172
167
    @JacksonXmlProperty( localName = "item", namespace = DxfNamespaces.DXF_2_0 )
173
168
    public List<DimensionalItemObject> getItems()
209
204
    }
210
205
 
211
206
    @JsonProperty
212
 
    @JsonView( { DetailedView.class, ExportView.class } )
213
207
    @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 )
214
208
    public DataDimensionType getDataDimensionType()
215
209
    {
223
217
 
224
218
    @JsonProperty
225
219
    @JsonSerialize( contentAs = BaseIdentifiableObject.class )
226
 
    @JsonView( { DetailedView.class, ExportView.class } )
227
220
    @JacksonXmlElementWrapper( localName = "categoryOptions", namespace = DxfNamespaces.DXF_2_0 )
228
221
    @JacksonXmlProperty( localName = "categoryOption", namespace = DxfNamespaces.DXF_2_0 )
229
222
    public List<DataElementCategoryOption> getCategoryOptions()
238
231
 
239
232
    @JsonProperty
240
233
    @JsonSerialize( contentAs = BaseIdentifiableObject.class )
241
 
    @JsonView( { DetailedView.class } )
242
234
    @JacksonXmlElementWrapper( localName = "categoryCombos", namespace = DxfNamespaces.DXF_2_0 )
243
235
    @JacksonXmlProperty( localName = "categoryCombo", namespace = DxfNamespaces.DXF_2_0 )
244
236
    public List<DataElementCategoryCombo> getCategoryCombos()