← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 22056: add new metadata json test file which includes attributeValues

 

------------------------------------------------------------
revno: 22056
committer: Morten Olav Hansen <morten@xxxxxxxxx>
branch nick: dhis2
timestamp: Sat 2016-02-27 10:28:59 +0700
message:
  add new metadata json test file which includes attributeValues
removed:
  dhis-2/dhis-services/dhis-service-dxf2/src/test/resources/dxf2/simple_metadata1.json
added:
  dhis-2/dhis-services/dhis-service-dxf2/src/test/resources/dxf2/simple_metadata.json
  dhis-2/dhis-services/dhis-service-dxf2/src/test/resources/dxf2/simple_metadata_with_av.json
modified:
  dhis-2/dhis-services/dhis-service-dxf2/src/test/java/org/hisp/dhis/dxf2/metadata2/objectbundle/ObjectBundleServiceTest.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/test/java/org/hisp/dhis/dxf2/metadata2/objectbundle/ObjectBundleServiceTest.java'
--- dhis-2/dhis-services/dhis-service-dxf2/src/test/java/org/hisp/dhis/dxf2/metadata2/objectbundle/ObjectBundleServiceTest.java	2016-02-26 10:05:22 +0000
+++ dhis-2/dhis-services/dhis-service-dxf2/src/test/java/org/hisp/dhis/dxf2/metadata2/objectbundle/ObjectBundleServiceTest.java	2016-02-27 03:28:59 +0000
@@ -431,7 +431,7 @@
     public void testCreateSimpleMetadataUID() throws IOException
     {
         Map<Class<? extends IdentifiableObject>, List<IdentifiableObject>> metadata = renderService.fromMetadata(
-            new ClassPathResource( "dxf2/simple_metadata1.json" ).getInputStream(), RenderFormat.JSON );
+            new ClassPathResource( "dxf2/simple_metadata.json" ).getInputStream(), RenderFormat.JSON );
 
         ObjectBundleParams params = new ObjectBundleParams();
         params.setObjectBundleMode( ObjectBundleMode.COMMIT );

=== added file 'dhis-2/dhis-services/dhis-service-dxf2/src/test/resources/dxf2/simple_metadata.json'
--- dhis-2/dhis-services/dhis-service-dxf2/src/test/resources/dxf2/simple_metadata.json	1970-01-01 00:00:00 +0000
+++ dhis-2/dhis-services/dhis-service-dxf2/src/test/resources/dxf2/simple_metadata.json	2016-02-27 03:28:59 +0000
@@ -0,0 +1,282 @@
+{
+  "organisationUnitLevels": [
+    {
+      "name": "Country",
+      "created": "2016-02-17T06:17:12.379+0000",
+      "lastUpdated": "2016-02-17T06:19:09.255+0000",
+      "level": 1,
+      "id": "e1DcQuAONBm"
+    }
+  ],
+  "categoryCombos": [
+    {
+      "lastUpdated": "2016-02-17T06:13:29.135+0000",
+      "name": "default",
+      "skipTotal": false,
+      "categories": [
+        {
+          "id": "XSypGD15atv"
+        }
+      ],
+      "id": "zU1OZFVxnw7",
+      "created": "2016-02-17T06:13:29.133+0000",
+      "dataDimensionType": "DISAGGREGATION",
+      "publicAccess": "--------",
+      "userGroupAccesses": []
+    }
+  ],
+  "users": [
+    {
+      "firstName": "admin",
+      "created": "2016-02-17T06:14:12.250+0000",
+      "organisationUnits": [
+        {
+          "id": "PdWlltZnVZe"
+        }
+      ],
+      "surname": "admin",
+      "userCredentials": {
+        "lastLogin": "2016-02-17T06:14:12.274+0000",
+        "created": "2016-02-17T06:14:12.362+0000",
+        "userRoles": [
+          {
+            "id": "rKLtmQLRMU8"
+          }
+        ],
+        "invitation": false,
+        "disabled": false,
+        "externalAuth": false,
+        "cogsDimensionConstraints": [],
+        "userInfo": {
+          "id": "ueKaFVdR8Fz"
+        },
+        "passwordLastUpdated": "2016-02-17T06:14:12.274+0000",
+        "catDimensionConstraints": [],
+        "username": "admin",
+        "selfRegistered": false
+      },
+      "attributeValues": [],
+      "dataViewOrganisationUnits": [],
+      "lastUpdated": "2016-02-17T06:14:12.250+0000",
+      "id": "ueKaFVdR8Fz"
+    }
+  ],
+  "organisationUnits": [
+    {
+      "shortName": "OrgUnitShortA",
+      "created": "2016-02-17T06:17:01.218+0000",
+      "featureType": "NONE",
+      "openingDate": "2016-02-17",
+      "code": "OrgUnitCodeA",
+      "attributeValues": [],
+      "path": "/PdWlltZnVZe",
+      "user": {
+        "id": "ueKaFVdR8Fz"
+      },
+      "lastUpdated": "2016-02-17T06:17:01.228+0000",
+      "name": "OrgUnitA",
+      "description": "",
+      "id": "PdWlltZnVZe",
+      "uuid": "6ea86a20-1eb1-4bbd-87ea-948ee1e01f20"
+    }
+  ],
+  "dataSets": [
+    {
+      "dataElements": [
+        {
+          "id": "CCwk5Yx440o"
+        },
+        {
+          "id": "SG4HuKlNEFH"
+        }
+      ],
+      "periodType": "Monthly",
+      "dataElementDecoration": false,
+      "noValueRequiresComment": false,
+      "openFuturePeriods": 0,
+      "name": "DataSetA",
+      "skipOffline": false,
+      "notifyCompletingUser": false,
+      "code": "DataSetCodeA",
+      "publicAccess": "rw------",
+      "fieldCombinationRequired": false,
+      "organisationUnits": [
+        {
+          "id": "PdWlltZnVZe"
+        }
+      ],
+      "mobile": false,
+      "id": "DSaKQTwN4qg",
+      "compulsoryDataElementOperands": [],
+      "expiryDays": 0,
+      "version": 1,
+      "indicators": [],
+      "user": {
+        "id": "ueKaFVdR8Fz"
+      },
+      "lastUpdated": "2016-02-17T06:19:18.986+0000",
+      "renderHorizontally": false,
+      "userGroupAccesses": [],
+      "validCompleteOnly": false,
+      "attributeValues": [],
+      "timelyDays": 15,
+      "categoryCombo": {
+        "id": "zU1OZFVxnw7"
+      },
+      "renderAsTabs": false,
+      "created": "2016-02-17T06:16:40.204+0000",
+      "shortName": "DataSetShortA"
+    }
+  ],
+  "categoryOptionCombos": [
+    {
+      "name": "default",
+      "lastUpdated": "2016-02-17T06:13:29.134+0000",
+      "categoryOptions": [
+        {
+          "id": "SMHi6P8WZ1H"
+        }
+      ],
+      "created": "2016-02-17T06:13:29.133+0000",
+      "ignoreApproval": false,
+      "categoryCombo": {
+        "id": "zU1OZFVxnw7"
+      },
+      "id": "gOeVvNgprQ8"
+    }
+  ],
+  "userRoles": [
+    {
+      "authorities": [
+        "F_TRACKED_ENTITY_INSTANCE_SEARCH_IN_ALL_ORGUNITS",
+        "ALL",
+        "F_USERGROUP_MANAGING_RELATIONSHIPS_ADD",
+        "F_REPORTTABLE_PUBLIC_ADD",
+        "F_TRACKED_ENTITY_INSTANCE_DELETE",
+        "F_USER_GROUPS_READ_ONLY_ADD_MEMBERS",
+        "F_MAP_PUBLIC_ADD",
+        "F_USER_ADD_WITHIN_MANAGED_GROUP",
+        "F_TRACKED_ENTITY_INSTANCE_SEARCH",
+        "F_PROGRAM_ENROLLMENT",
+        "F_REPORTTABLE_EXTERNAL",
+        "F_SQLVIEW_EXTERNAL",
+        "F_GIS_ADMIN",
+        "F_REPLICATE_USER",
+        "F_INSERT_CUSTOM_JS_CSS",
+        "F_DASHBOARD_PUBLIC_ADD",
+        "F_METADATA_IMPORT",
+        "F_CHART_PUBLIC_ADD",
+        "F_VIEW_UNAPPROVED_DATA",
+        "F_CHART_EXTERNAL",
+        "F_USERGROUP_MANAGING_RELATIONSHIPS_VIEW",
+        "F_METADATA_EXPORT",
+        "F_PROGRAM_UNENROLLMENT",
+        "F_APPROVE_DATA",
+        "F_ACCEPT_DATA_LOWER_LEVELS",
+        "F_TRACKED_ENTITY_INSTANCE_ADD",
+        "F_USERGROUP_PUBLIC_ADD",
+        "F_OAUTH2_CLIENT_MANAGE",
+        "F_TRACKED_ENTITY_DATAVALUE_ADD",
+        "F_PROGRAM_DASHBOARD_CONFIG_ADMIN",
+        "F_MAP_EXTERNAL",
+        "F_APPROVE_DATA_LOWER_LEVELS",
+        "F_TRACKED_ENTITY_DATAVALUE_DELETE"
+      ],
+      "id": "rKLtmQLRMU8",
+      "lastUpdated": "2016-02-17T06:14:12.260+0000",
+      "name": "Superuser",
+      "userGroupAccesses": [],
+      "dataSets": [],
+      "programs": [],
+      "created": "2016-02-17T06:14:12.260+0000",
+      "publicAccess": "--------"
+    }
+  ],
+  "trackedEntities": [
+    {
+      "id": "NdUUIOhQPcu",
+      "attributeValues": [],
+      "description": "Person",
+      "name": "Person",
+      "created": "2016-02-17T06:25:08.000+0000",
+      "lastUpdated": "2016-02-17T06:25:08.000+0000"
+    }
+  ],
+  "dataElements": [
+    {
+      "attributeValues": [],
+      "userGroupAccesses": [],
+      "valueType": "TEXT",
+      "aggregationType": "SUM",
+      "created": "2016-02-17T06:15:06.079+0000",
+      "shortName": "DataElementShortA",
+      "categoryCombo": {
+        "id": "zU1OZFVxnw7"
+      },
+      "aggregationLevels": [],
+      "id": "SG4HuKlNEFH",
+      "domainType": "AGGREGATE",
+      "lastUpdated": "2016-02-17T06:15:59.378+0000",
+      "user": {
+        "id": "ueKaFVdR8Fz"
+      },
+      "zeroIsSignificant": false,
+      "publicAccess": "rw------",
+      "code": "DataElementCodeA",
+      "name": "DataElementA"
+    },
+    {
+      "code": "DataElementCodeB",
+      "publicAccess": "rw------",
+      "name": "DataElementB",
+      "attributeValues": [],
+      "userGroupAccesses": [],
+      "valueType": "TEXT",
+      "aggregationType": "SUM",
+      "shortName": "DataElementShortB",
+      "created": "2016-02-17T06:15:49.487+0000",
+      "categoryCombo": {
+        "id": "zU1OZFVxnw7"
+      },
+      "id": "CCwk5Yx440o",
+      "aggregationLevels": [],
+      "domainType": "AGGREGATE",
+      "user": {
+        "id": "ueKaFVdR8Fz"
+      },
+      "lastUpdated": "2016-02-17T06:16:08.180+0000",
+      "zeroIsSignificant": false
+    }
+  ],
+  "categories": [
+    {
+      "lastUpdated": "2016-02-24T04:31:52.533+0000",
+      "categoryOptions": [
+        {
+          "id": "SMHi6P8WZ1H"
+        }
+      ],
+      "name": "default",
+      "id": "XSypGD15atv",
+      "created": "2016-02-17T06:13:29.131+0000",
+      "publicAccess": "--------",
+      "dataDimensionType": "DISAGGREGATION",
+      "userGroupAccesses": [],
+      "dataDimension": true
+    }
+  ],
+  "categoryOptions": [
+    {
+      "id": "SMHi6P8WZ1H",
+      "name": "default",
+      "lastUpdated": "2016-02-17T06:13:29.137+0000",
+      "userGroupAccesses": [],
+      "attributeValues": [],
+      "shortName": "default",
+      "organisationUnits": [],
+      "created": "2016-02-17T06:13:29.120+0000",
+      "publicAccess": "--------"
+    }
+  ],
+  "date": "2016-02-24T04:32:01.229+0000"
+}

=== removed file 'dhis-2/dhis-services/dhis-service-dxf2/src/test/resources/dxf2/simple_metadata1.json'
--- dhis-2/dhis-services/dhis-service-dxf2/src/test/resources/dxf2/simple_metadata1.json	2016-02-24 04:40:54 +0000
+++ dhis-2/dhis-services/dhis-service-dxf2/src/test/resources/dxf2/simple_metadata1.json	1970-01-01 00:00:00 +0000
@@ -1,282 +0,0 @@
-{
-  "organisationUnitLevels": [
-    {
-      "name": "Country",
-      "created": "2016-02-17T06:17:12.379+0000",
-      "lastUpdated": "2016-02-17T06:19:09.255+0000",
-      "level": 1,
-      "id": "e1DcQuAONBm"
-    }
-  ],
-  "categoryCombos": [
-    {
-      "lastUpdated": "2016-02-17T06:13:29.135+0000",
-      "name": "default",
-      "skipTotal": false,
-      "categories": [
-        {
-          "id": "XSypGD15atv"
-        }
-      ],
-      "id": "zU1OZFVxnw7",
-      "created": "2016-02-17T06:13:29.133+0000",
-      "dataDimensionType": "DISAGGREGATION",
-      "publicAccess": "--------",
-      "userGroupAccesses": []
-    }
-  ],
-  "users": [
-    {
-      "firstName": "admin",
-      "created": "2016-02-17T06:14:12.250+0000",
-      "organisationUnits": [
-        {
-          "id": "PdWlltZnVZe"
-        }
-      ],
-      "surname": "admin",
-      "userCredentials": {
-        "lastLogin": "2016-02-17T06:14:12.274+0000",
-        "created": "2016-02-17T06:14:12.362+0000",
-        "userRoles": [
-          {
-            "id": "rKLtmQLRMU8"
-          }
-        ],
-        "invitation": false,
-        "disabled": false,
-        "externalAuth": false,
-        "cogsDimensionConstraints": [],
-        "userInfo": {
-          "id": "ueKaFVdR8Fz"
-        },
-        "passwordLastUpdated": "2016-02-17T06:14:12.274+0000",
-        "catDimensionConstraints": [],
-        "username": "admin",
-        "selfRegistered": false
-      },
-      "attributeValues": [],
-      "dataViewOrganisationUnits": [],
-      "lastUpdated": "2016-02-17T06:14:12.250+0000",
-      "id": "ueKaFVdR8Fz"
-    }
-  ],
-  "organisationUnits": [
-    {
-      "shortName": "OrgUnitShortA",
-      "created": "2016-02-17T06:17:01.218+0000",
-      "featureType": "NONE",
-      "openingDate": "2016-02-17",
-      "code": "OrgUnitCodeA",
-      "attributeValues": [],
-      "path": "/PdWlltZnVZe",
-      "user": {
-        "id": "ueKaFVdR8Fz"
-      },
-      "lastUpdated": "2016-02-17T06:17:01.228+0000",
-      "name": "OrgUnitA",
-      "description": "",
-      "id": "PdWlltZnVZe",
-      "uuid": "6ea86a20-1eb1-4bbd-87ea-948ee1e01f20"
-    }
-  ],
-  "dataSets": [
-    {
-      "dataElements": [
-        {
-          "id": "CCwk5Yx440o"
-        },
-        {
-          "id": "SG4HuKlNEFH"
-        }
-      ],
-      "periodType": "Monthly",
-      "dataElementDecoration": false,
-      "noValueRequiresComment": false,
-      "openFuturePeriods": 0,
-      "name": "DataSetA",
-      "skipOffline": false,
-      "notifyCompletingUser": false,
-      "code": "DataSetCodeA",
-      "publicAccess": "rw------",
-      "fieldCombinationRequired": false,
-      "organisationUnits": [
-        {
-          "id": "PdWlltZnVZe"
-        }
-      ],
-      "mobile": false,
-      "id": "DSaKQTwN4qg",
-      "compulsoryDataElementOperands": [],
-      "expiryDays": 0,
-      "version": 1,
-      "indicators": [],
-      "user": {
-        "id": "ueKaFVdR8Fz"
-      },
-      "lastUpdated": "2016-02-17T06:19:18.986+0000",
-      "renderHorizontally": false,
-      "userGroupAccesses": [],
-      "validCompleteOnly": false,
-      "attributeValues": [],
-      "timelyDays": 15,
-      "categoryCombo": {
-        "id": "zU1OZFVxnw7"
-      },
-      "renderAsTabs": false,
-      "created": "2016-02-17T06:16:40.204+0000",
-      "shortName": "DataSetShortA"
-    }
-  ],
-  "categoryOptionCombos": [
-    {
-      "name": "default",
-      "lastUpdated": "2016-02-17T06:13:29.134+0000",
-      "categoryOptions": [
-        {
-          "id": "SMHi6P8WZ1H"
-        }
-      ],
-      "created": "2016-02-17T06:13:29.133+0000",
-      "ignoreApproval": false,
-      "categoryCombo": {
-        "id": "zU1OZFVxnw7"
-      },
-      "id": "gOeVvNgprQ8"
-    }
-  ],
-  "userRoles": [
-    {
-      "authorities": [
-        "F_TRACKED_ENTITY_INSTANCE_SEARCH_IN_ALL_ORGUNITS",
-        "ALL",
-        "F_USERGROUP_MANAGING_RELATIONSHIPS_ADD",
-        "F_REPORTTABLE_PUBLIC_ADD",
-        "F_TRACKED_ENTITY_INSTANCE_DELETE",
-        "F_USER_GROUPS_READ_ONLY_ADD_MEMBERS",
-        "F_MAP_PUBLIC_ADD",
-        "F_USER_ADD_WITHIN_MANAGED_GROUP",
-        "F_TRACKED_ENTITY_INSTANCE_SEARCH",
-        "F_PROGRAM_ENROLLMENT",
-        "F_REPORTTABLE_EXTERNAL",
-        "F_SQLVIEW_EXTERNAL",
-        "F_GIS_ADMIN",
-        "F_REPLICATE_USER",
-        "F_INSERT_CUSTOM_JS_CSS",
-        "F_DASHBOARD_PUBLIC_ADD",
-        "F_METADATA_IMPORT",
-        "F_CHART_PUBLIC_ADD",
-        "F_VIEW_UNAPPROVED_DATA",
-        "F_CHART_EXTERNAL",
-        "F_USERGROUP_MANAGING_RELATIONSHIPS_VIEW",
-        "F_METADATA_EXPORT",
-        "F_PROGRAM_UNENROLLMENT",
-        "F_APPROVE_DATA",
-        "F_ACCEPT_DATA_LOWER_LEVELS",
-        "F_TRACKED_ENTITY_INSTANCE_ADD",
-        "F_USERGROUP_PUBLIC_ADD",
-        "F_OAUTH2_CLIENT_MANAGE",
-        "F_TRACKED_ENTITY_DATAVALUE_ADD",
-        "F_PROGRAM_DASHBOARD_CONFIG_ADMIN",
-        "F_MAP_EXTERNAL",
-        "F_APPROVE_DATA_LOWER_LEVELS",
-        "F_TRACKED_ENTITY_DATAVALUE_DELETE"
-      ],
-      "id": "rKLtmQLRMU8",
-      "lastUpdated": "2016-02-17T06:14:12.260+0000",
-      "name": "Superuser",
-      "userGroupAccesses": [],
-      "dataSets": [],
-      "programs": [],
-      "created": "2016-02-17T06:14:12.260+0000",
-      "publicAccess": "--------"
-    }
-  ],
-  "trackedEntities": [
-    {
-      "id": "NdUUIOhQPcu",
-      "attributeValues": [],
-      "description": "Person",
-      "name": "Person",
-      "created": "2016-02-17T06:25:08.000+0000",
-      "lastUpdated": "2016-02-17T06:25:08.000+0000"
-    }
-  ],
-  "dataElements": [
-    {
-      "attributeValues": [],
-      "userGroupAccesses": [],
-      "valueType": "TEXT",
-      "aggregationType": "SUM",
-      "created": "2016-02-17T06:15:06.079+0000",
-      "shortName": "DataElementShortA",
-      "categoryCombo": {
-        "id": "zU1OZFVxnw7"
-      },
-      "aggregationLevels": [],
-      "id": "SG4HuKlNEFH",
-      "domainType": "AGGREGATE",
-      "lastUpdated": "2016-02-17T06:15:59.378+0000",
-      "user": {
-        "id": "ueKaFVdR8Fz"
-      },
-      "zeroIsSignificant": false,
-      "publicAccess": "rw------",
-      "code": "DataElementCodeA",
-      "name": "DataElementA"
-    },
-    {
-      "code": "DataElementCodeB",
-      "publicAccess": "rw------",
-      "name": "DataElementB",
-      "attributeValues": [],
-      "userGroupAccesses": [],
-      "valueType": "TEXT",
-      "aggregationType": "SUM",
-      "shortName": "DataElementShortB",
-      "created": "2016-02-17T06:15:49.487+0000",
-      "categoryCombo": {
-        "id": "zU1OZFVxnw7"
-      },
-      "id": "CCwk5Yx440o",
-      "aggregationLevels": [],
-      "domainType": "AGGREGATE",
-      "user": {
-        "id": "ueKaFVdR8Fz"
-      },
-      "lastUpdated": "2016-02-17T06:16:08.180+0000",
-      "zeroIsSignificant": false
-    }
-  ],
-  "categories": [
-    {
-      "lastUpdated": "2016-02-24T04:31:52.533+0000",
-      "categoryOptions": [
-        {
-          "id": "SMHi6P8WZ1H"
-        }
-      ],
-      "name": "default",
-      "id": "XSypGD15atv",
-      "created": "2016-02-17T06:13:29.131+0000",
-      "publicAccess": "--------",
-      "dataDimensionType": "DISAGGREGATION",
-      "userGroupAccesses": [],
-      "dataDimension": true
-    }
-  ],
-  "categoryOptions": [
-    {
-      "id": "SMHi6P8WZ1H",
-      "name": "default",
-      "lastUpdated": "2016-02-17T06:13:29.137+0000",
-      "userGroupAccesses": [],
-      "attributeValues": [],
-      "shortName": "default",
-      "organisationUnits": [],
-      "created": "2016-02-17T06:13:29.120+0000",
-      "publicAccess": "--------"
-    }
-  ],
-  "date": "2016-02-24T04:32:01.229+0000"
-}

=== added file 'dhis-2/dhis-services/dhis-service-dxf2/src/test/resources/dxf2/simple_metadata_with_av.json'
--- dhis-2/dhis-services/dhis-service-dxf2/src/test/resources/dxf2/simple_metadata_with_av.json	1970-01-01 00:00:00 +0000
+++ dhis-2/dhis-services/dhis-service-dxf2/src/test/resources/dxf2/simple_metadata_with_av.json	2016-02-27 03:28:59 +0000
@@ -0,0 +1,464 @@
+{
+   "dataElements" : [
+      {
+         "user" : {
+            "id" : "ueKaFVdR8Fz"
+         },
+         "aggregationLevels" : [],
+         "created" : "2016-02-17T06:15:06.079+0000",
+         "zeroIsSignificant" : false,
+         "attributeValues" : [],
+         "code" : "DataElementCodeA",
+         "publicAccess" : "rw------",
+         "aggregationType" : "SUM",
+         "domainType" : "AGGREGATE",
+         "userGroupAccesses" : [],
+         "shortName" : "DataElementShortA",
+         "name" : "DataElementA",
+         "id" : "SG4HuKlNEFH",
+         "categoryCombo" : {
+            "id" : "zU1OZFVxnw7"
+         },
+         "lastUpdated" : "2016-02-17T06:15:59.378+0000",
+         "valueType" : "TEXT"
+      },
+      {
+         "lastUpdated" : "2016-02-17T06:16:08.180+0000",
+         "valueType" : "TEXT",
+         "shortName" : "DataElementShortB",
+         "name" : "DataElementB",
+         "id" : "CCwk5Yx440o",
+         "categoryCombo" : {
+            "id" : "zU1OZFVxnw7"
+         },
+         "userGroupAccesses" : [],
+         "domainType" : "AGGREGATE",
+         "aggregationType" : "SUM",
+         "publicAccess" : "rw------",
+         "attributeValues" : [],
+         "code" : "DataElementCodeB",
+         "created" : "2016-02-17T06:15:49.487+0000",
+         "zeroIsSignificant" : false,
+         "aggregationLevels" : [],
+         "user" : {
+            "id" : "ueKaFVdR8Fz"
+         }
+      },
+      {
+         "publicAccess" : "rw------",
+         "aggregationType" : "SUM",
+         "shortName" : "DataElementShortC",
+         "name" : "DataElementC",
+         "id" : "j5PneRdU7WT",
+         "categoryCombo" : {
+            "id" : "zU1OZFVxnw7"
+         },
+         "domainType" : "AGGREGATE",
+         "userGroupAccesses" : [],
+         "lastUpdated" : "2016-02-27T03:17:13.827+0000",
+         "valueType" : "TEXT",
+         "aggregationLevels" : [],
+         "user" : {
+            "id" : "ueKaFVdR8Fz"
+         },
+         "created" : "2016-02-27T03:17:13.820+0000",
+         "zeroIsSignificant" : false,
+         "code" : "DataElementCodeC",
+         "attributeValues" : [
+            {
+               "created" : "2016-02-27T03:17:13.583+0000",
+               "value" : "DataElementTextAttributeC",
+               "attribute" : {
+                  "id" : "vNmjWwe4G1g"
+               },
+               "lastUpdated" : "2016-02-27T03:17:13.832+0000"
+            },
+            {
+               "value" : "Gender_Male",
+               "created" : "2016-02-27T03:17:13.583+0000",
+               "attribute" : {
+                  "id" : "dxk9vlXm8rI"
+               },
+               "lastUpdated" : "2016-02-27T03:17:13.830+0000"
+            }
+         ]
+      },
+      {
+         "publicAccess" : "rw------",
+         "aggregationType" : "SUM",
+         "userGroupAccesses" : [],
+         "domainType" : "AGGREGATE",
+         "id" : "k90AVpBahO4",
+         "categoryCombo" : {
+            "id" : "zU1OZFVxnw7"
+         },
+         "name" : "DataElementD",
+         "shortName" : "DataElementShortD",
+         "valueType" : "TEXT",
+         "lastUpdated" : "2016-02-27T03:17:51.963+0000",
+         "user" : {
+            "id" : "ueKaFVdR8Fz"
+         },
+         "aggregationLevels" : [],
+         "zeroIsSignificant" : false,
+         "created" : "2016-02-27T03:17:51.961+0000",
+         "attributeValues" : [
+            {
+               "attribute" : {
+                  "id" : "vNmjWwe4G1g"
+               },
+               "created" : "2016-02-27T03:17:51.892+0000",
+               "value" : "DataElementTextAttributeD",
+               "lastUpdated" : "2016-02-27T03:17:51.965+0000"
+            },
+            {
+               "lastUpdated" : "2016-02-27T03:17:51.963+0000",
+               "attribute" : {
+                  "id" : "dxk9vlXm8rI"
+               },
+               "value" : "Gender_Female",
+               "created" : "2016-02-27T03:17:51.892+0000"
+            }
+         ],
+         "code" : "DataElementCodeD"
+      }
+   ],
+   "options" : [
+      {
+         "code" : "Gender_Female",
+         "attributeValues" : [],
+         "lastUpdated" : "2016-02-27T03:09:09.734+0000",
+         "name" : "Female",
+         "id" : "uBDO9S6MdoE",
+         "created" : "2016-02-27T03:09:09.734+0000"
+      },
+      {
+         "attributeValues" : [],
+         "code" : "Gender_Male",
+         "lastUpdated" : "2016-02-27T03:09:03.161+0000",
+         "id" : "IoxIRLL7ZTU",
+         "name" : "Male",
+         "created" : "2016-02-27T03:09:03.161+0000"
+      }
+   ],
+   "date" : "2016-02-27T03:28:02.798+0000",
+   "userRoles" : [
+      {
+         "lastUpdated" : "2016-02-17T06:14:12.260+0000",
+         "userGroupAccesses" : [],
+         "created" : "2016-02-17T06:14:12.260+0000",
+         "name" : "Superuser",
+         "id" : "rKLtmQLRMU8",
+         "authorities" : [
+            "F_TRACKED_ENTITY_INSTANCE_SEARCH_IN_ALL_ORGUNITS",
+            "ALL",
+            "F_USERGROUP_MANAGING_RELATIONSHIPS_ADD",
+            "F_REPORTTABLE_PUBLIC_ADD",
+            "F_TRACKED_ENTITY_INSTANCE_DELETE",
+            "F_USER_GROUPS_READ_ONLY_ADD_MEMBERS",
+            "F_MAP_PUBLIC_ADD",
+            "F_USER_ADD_WITHIN_MANAGED_GROUP",
+            "F_TRACKED_ENTITY_INSTANCE_SEARCH",
+            "F_PROGRAM_ENROLLMENT",
+            "F_REPORTTABLE_EXTERNAL",
+            "F_SQLVIEW_EXTERNAL",
+            "F_GIS_ADMIN",
+            "F_REPLICATE_USER",
+            "F_INSERT_CUSTOM_JS_CSS",
+            "F_DASHBOARD_PUBLIC_ADD",
+            "F_METADATA_IMPORT",
+            "F_CHART_PUBLIC_ADD",
+            "F_VIEW_UNAPPROVED_DATA",
+            "F_CHART_EXTERNAL",
+            "F_USERGROUP_MANAGING_RELATIONSHIPS_VIEW",
+            "F_METADATA_EXPORT",
+            "F_PROGRAM_UNENROLLMENT",
+            "F_APPROVE_DATA",
+            "F_ACCEPT_DATA_LOWER_LEVELS",
+            "F_TRACKED_ENTITY_INSTANCE_ADD",
+            "F_USERGROUP_PUBLIC_ADD",
+            "F_OAUTH2_CLIENT_MANAGE",
+            "F_TRACKED_ENTITY_DATAVALUE_ADD",
+            "F_PROGRAM_DASHBOARD_CONFIG_ADMIN",
+            "F_MAP_EXTERNAL",
+            "F_APPROVE_DATA_LOWER_LEVELS",
+            "F_TRACKED_ENTITY_DATAVALUE_DELETE"
+         ],
+         "dataSets" : [],
+         "programs" : [],
+         "publicAccess" : "--------"
+      }
+   ],
+   "organisationUnitLevels" : [
+      {
+         "id" : "e1DcQuAONBm",
+         "name" : "Country",
+         "created" : "2016-02-17T06:17:12.379+0000",
+         "level" : 1,
+         "lastUpdated" : "2016-02-17T06:19:09.255+0000"
+      }
+   ],
+   "organisationUnits" : [
+      {
+         "openingDate" : "2016-02-17",
+         "path" : "/PdWlltZnVZe",
+         "user" : {
+            "id" : "ueKaFVdR8Fz"
+         },
+         "featureType" : "NONE",
+         "lastUpdated" : "2016-02-17T06:17:01.228+0000",
+         "code" : "OrgUnitCodeA",
+         "attributeValues" : [],
+         "uuid" : "6ea86a20-1eb1-4bbd-87ea-948ee1e01f20",
+         "description" : "",
+         "created" : "2016-02-17T06:17:01.218+0000",
+         "id" : "PdWlltZnVZe",
+         "shortName" : "OrgUnitShortA",
+         "name" : "OrgUnitA"
+      }
+   ],
+   "categories" : [
+      {
+         "created" : "2016-02-17T06:13:29.131+0000",
+         "userGroupAccesses" : [],
+         "name" : "default",
+         "id" : "XSypGD15atv",
+         "lastUpdated" : "2016-02-27T03:27:08.138+0000",
+         "dataDimensionType" : "DISAGGREGATION",
+         "dataDimension" : true,
+         "publicAccess" : "--------",
+         "categoryOptions" : [
+            {
+               "id" : "SMHi6P8WZ1H"
+            }
+         ]
+      }
+   ],
+   "trackedEntities" : [
+      {
+         "lastUpdated" : "2016-02-17T06:25:08.000+0000",
+         "attributeValues" : [],
+         "description" : "Person",
+         "created" : "2016-02-17T06:25:08.000+0000",
+         "name" : "Person",
+         "id" : "NdUUIOhQPcu"
+      }
+   ],
+   "categoryOptionCombos" : [
+      {
+         "ignoreApproval" : false,
+         "lastUpdated" : "2016-02-17T06:13:29.134+0000",
+         "categoryOptions" : [
+            {
+               "id" : "SMHi6P8WZ1H"
+            }
+         ],
+         "created" : "2016-02-17T06:13:29.133+0000",
+         "id" : "gOeVvNgprQ8",
+         "categoryCombo" : {
+            "id" : "zU1OZFVxnw7"
+         },
+         "name" : "default"
+      }
+   ],
+   "attributes" : [
+      {
+         "documentAttribute" : false,
+         "trackedEntityAttribute" : false,
+         "dataSetAttribute" : false,
+         "organisationUnitGroupAttribute" : false,
+         "optionAttribute" : false,
+         "trackedEntityAttributeAttribute" : false,
+         "userAttribute" : false,
+         "organisationUnitAttribute" : false,
+         "userGroupAttribute" : false,
+         "name" : "Data Element OptionSet Attribute",
+         "id" : "dxk9vlXm8rI",
+         "dataElementAttribute" : true,
+         "indicatorGroupAttribute" : false,
+         "optionSetAttribute" : false,
+         "lastUpdated" : "2016-02-27T03:10:19.638+0000",
+         "valueType" : "TEXT",
+         "unique" : false,
+         "categoryOptionGroupAttribute" : false,
+         "programAttribute" : false,
+         "programStageAttribute" : false,
+         "organisationUnitGroupSetAttribute" : false,
+         "optionSet" : {
+            "id" : "zyv3t0BEXXU"
+         },
+         "indicatorAttribute" : false,
+         "categoryOptionAttribute" : false,
+         "created" : "2016-02-27T03:10:19.638+0000",
+         "mandatory" : false,
+         "dataElementGroupAttribute" : false
+      },
+      {
+         "lastUpdated" : "2016-02-27T03:10:04.283+0000",
+         "optionSetAttribute" : false,
+         "valueType" : "TEXT",
+         "unique" : false,
+         "categoryOptionGroupAttribute" : false,
+         "indicatorGroupAttribute" : false,
+         "dataElementAttribute" : true,
+         "name" : "Data Element Text Attribute",
+         "id" : "vNmjWwe4G1g",
+         "userGroupAttribute" : false,
+         "userAttribute" : false,
+         "optionAttribute" : false,
+         "trackedEntityAttributeAttribute" : false,
+         "organisationUnitAttribute" : false,
+         "organisationUnitGroupAttribute" : false,
+         "trackedEntityAttribute" : false,
+         "documentAttribute" : false,
+         "dataSetAttribute" : false,
+         "dataElementGroupAttribute" : false,
+         "created" : "2016-02-27T03:10:04.282+0000",
+         "mandatory" : false,
+         "categoryOptionAttribute" : false,
+         "indicatorAttribute" : false,
+         "organisationUnitGroupSetAttribute" : false,
+         "programStageAttribute" : false,
+         "programAttribute" : false
+      }
+   ],
+   "categoryCombos" : [
+      {
+         "publicAccess" : "--------",
+         "created" : "2016-02-17T06:13:29.133+0000",
+         "userGroupAccesses" : [],
+         "name" : "default",
+         "skipTotal" : false,
+         "id" : "zU1OZFVxnw7",
+         "lastUpdated" : "2016-02-17T06:13:29.135+0000",
+         "dataDimensionType" : "DISAGGREGATION",
+         "categories" : [
+            {
+               "id" : "XSypGD15atv"
+            }
+         ]
+      }
+   ],
+   "dataSets" : [
+      {
+         "created" : "2016-02-17T06:16:40.204+0000",
+         "renderAsTabs" : false,
+         "organisationUnits" : [
+            {
+               "id" : "PdWlltZnVZe"
+            }
+         ],
+         "validCompleteOnly" : false,
+         "attributeValues" : [],
+         "code" : "DataSetCodeA",
+         "fieldCombinationRequired" : false,
+         "user" : {
+            "id" : "ueKaFVdR8Fz"
+         },
+         "userGroupAccesses" : [],
+         "dataElements" : [
+            {
+               "id" : "CCwk5Yx440o"
+            },
+            {
+               "id" : "SG4HuKlNEFH"
+            }
+         ],
+         "openFuturePeriods" : 0,
+         "noValueRequiresComment" : false,
+         "shortName" : "DataSetShortA",
+         "name" : "DataSetA",
+         "indicators" : [],
+         "renderHorizontally" : false,
+         "compulsoryDataElementOperands" : [],
+         "categoryCombo" : {
+            "id" : "zU1OZFVxnw7"
+         },
+         "id" : "DSaKQTwN4qg",
+         "lastUpdated" : "2016-02-17T06:19:18.986+0000",
+         "expiryDays" : 0,
+         "timelyDays" : 15,
+         "dataElementDecoration" : false,
+         "skipOffline" : false,
+         "periodType" : "Monthly",
+         "version" : 1,
+         "publicAccess" : "rw------",
+         "notifyCompletingUser" : false,
+         "mobile" : false
+      }
+   ],
+   "users" : [
+      {
+         "id" : "ueKaFVdR8Fz",
+         "firstName" : "admin",
+         "created" : "2016-02-17T06:14:12.250+0000",
+         "dataViewOrganisationUnits" : [],
+         "attributeValues" : [],
+         "surname" : "admin",
+         "organisationUnits" : [
+            {
+               "id" : "PdWlltZnVZe"
+            }
+         ],
+         "lastUpdated" : "2016-02-17T06:14:12.250+0000",
+         "userCredentials" : {
+            "cogsDimensionConstraints" : [],
+            "catDimensionConstraints" : [],
+            "invitation" : false,
+            "username" : "admin",
+            "selfRegistered" : false,
+            "userInfo" : {
+               "id" : "ueKaFVdR8Fz"
+            },
+            "created" : "2016-02-17T06:14:12.362+0000",
+            "disabled" : false,
+            "passwordLastUpdated" : "2016-02-17T06:14:12.274+0000",
+            "externalAuth" : false,
+            "userRoles" : [
+               {
+                  "id" : "rKLtmQLRMU8"
+               }
+            ],
+            "lastLogin" : "2016-02-17T06:14:12.274+0000"
+         }
+      }
+   ],
+   "optionSets" : [
+      {
+         "publicAccess" : "rw------",
+         "version" : 1,
+         "user" : {
+            "id" : "ueKaFVdR8Fz"
+         },
+         "code" : "Gender",
+         "attributeValues" : [],
+         "lastUpdated" : "2016-02-27T03:09:09.736+0000",
+         "valueType" : "TEXT",
+         "name" : "Gender",
+         "id" : "zyv3t0BEXXU",
+         "options" : [
+            {
+               "id" : "IoxIRLL7ZTU"
+            },
+            {
+               "id" : "uBDO9S6MdoE"
+            }
+         ],
+         "userGroupAccesses" : [],
+         "created" : "2016-02-27T03:08:49.239+0000"
+      }
+   ],
+   "categoryOptions" : [
+      {
+         "id" : "SMHi6P8WZ1H",
+         "shortName" : "default",
+         "name" : "default",
+         "created" : "2016-02-17T06:13:29.120+0000",
+         "userGroupAccesses" : [],
+         "attributeValues" : [],
+         "lastUpdated" : "2016-02-17T06:13:29.137+0000",
+         "organisationUnits" : [],
+         "publicAccess" : "--------"
+      }
+   ]
+}