DhisSettingsController

public class DhisSettingsController

The controller that handles both changes to module settings and syncing to the DHIS2 server.

See also: org.motechproject.dhis2.service.SyncService, org.motechproject.dhis2.service.SettingsService

Methods

getSettings

public Settings getSettings()

Returns the settings for the module

Returns:an Settings object for the DHIS2 module

sync

public boolean sync()

Attempts to sync the module to the DHIS2 server. If successful, updates the task channel to reflect any changes to the DHIS2 schema

Returns:a boolean value indicating success or failure

updateSettings

public Settings updateSettings(Settings settings)

Updates the settings to the configuration specfied in the parameters

Parameters:
  • settings – the new settings configuration
Returns:

the new settings configuration