CommcareSchemaService¶
-
public interface
CommcareSchemaService
¶ The
CommcareSchemaService
is responsible for retrieving CommCare applications and schemas from MOTECH database. The important point is that implementers should NOT query CommCareHQ for data, but rather use current, local copy of the data.
Methods¶
getAllCaseTypes¶
getAllCaseTypes¶
getAllFormSchemas¶
-
List<FormSchemaJson>
getAllFormSchemas
(String configName)¶ Retrieves form schemas for all modules from MOTECH database for given configuration..
Returns: List of all from schemas
getAllFormSchemas¶
-
List<FormSchemaJson>
getAllFormSchemas
()¶ Same as
getAllFormSchemas
but uses default CommcareHQ configuration.
getCaseTypesWithApplicationName¶
getFormsWithApplicationName¶
getReportsMetadata¶
-
List<ReportsMetadataInfo>
getReportsMetadata
(String configName)¶ Retrieves reports metadata by configuration name
Returns: the list of matching reports metadata
retrieveApplications¶
-
List<CommcareApplicationJson>
retrieveApplications
(String configName)¶ Retrieves applications by configuration name
Returns: the list of matching applications