public class Dhis2 extends Object
| Constructor and Description |
|---|
Dhis2(Dhis2Config dhis2Config) |
Dhis2(Dhis2Config dhis2Config,
org.springframework.web.client.RestTemplate restTemplate) |
public Dhis2(Dhis2Config dhis2Config)
public Dhis2(Dhis2Config dhis2Config, org.springframework.web.client.RestTemplate restTemplate)
public <T> ResponseMessage saveObject(String path, T object)
T - type.path - the URL path relative to the API end point.object - the object to save.ResponseMessage holding information about the operation.public <T> ResponseMessage updateObject(String path, T object)
T - type.path - the URL path relative to the API end point.object - the object to save.ResponseMessage holding information about the operation.public <T> T getObject(String path, Class<T> klass)
T - type.path - the URL path relative to the API end point.klass - the class type of the object.public boolean objectExists(String path)
path - the URL path relative to the API end point.public ResponseMessage saveOrgUnit(OrgUnit orgUnit)
OrgUnit.orgUnit - the object to save.ResponseMessage holding information about the operation.public ResponseMessage updateOrgUnit(OrgUnit orgUnit)
OrgUnit.orgUnit - the object to update.ResponseMessage holding information about the operation.public OrgUnit getOrgUnit(String id)
OrgUnit.id - the identifier of the org unit.OrgUnit.public List<OrgUnit> getOrgUnits()
OrgUnit.OrgUnit.public ResponseMessage saveOrgUnitGroup(OrgUnitGroup orgUnitGroup)
OrgUnitGroup.orgUnitGroup - the object to save.ResponseMessage holding information about the operation.public ResponseMessage updateOrgUnitGroup(OrgUnitGroup orgUnitGroup)
OrgUnitGroup.orgUnitGroup - the object to update.ResponseMessage holding information about the operation.public OrgUnitGroup getOrgUnitGroup(String id)
OrgUnitGroup.id - the identifier of the org unit group.OrgUnitGroup.public List<OrgUnitGroup> getOrgUnitGroups()
OrgUnitGroup.OrgUnitGroup.public List<OrgUnitGroup> getOrgUnitGroups(Query query)
OrgUnitGroup.query - the Query.OrgUnitGroup.public ResponseMessage saveOrgUnitGroupSet(OrgUnitGroupSet orgUnitGroupSet)
OrgUnitGroupSet.orgUnitGroupSet - the object to save.ResponseMessage holding information about the operation.public ResponseMessage updateOrgUnitGroupSet(OrgUnitGroupSet orgUnitGroupSet)
OrgUnitGroupSet.orgUnitGroupSet - the object to update.ResponseMessage holding information about the operation.public OrgUnitGroupSet getOrgUnitGroupSet(String id)
OrgUnitGroupSet.id - the identifier of the org unit group set.OrgUnitGroupSet.public List<OrgUnitGroupSet> getOrgUnitGroupSets()
OrgUnitGroupSet.OrgUnitGroupSet.public List<OrgUnitGroupSet> getOrgUnitGroupSets(Query query)
OrgUnitGroupSet.query - the Query.OrgUnitGroupSet.public ResponseMessage saveTableHook(TableHook tableHook)
TableHook.tableHook - the object to save.ResponseMessage holding information about the operation.public ResponseMessage updateTableHook(TableHook tableHook)
TableHook.tableHook - the object to update.ResponseMessage holding information about the operation.public TableHook getTableHook(String id)
TableHook.id - the identifier of the table hook.TableHook.public List<TableHook> getTableHooks()
TableHook.TableHook.Copyright © 2018 UiO. All rights reserved.