SettingsService

public interface SettingsService

The SettingsService is a generic class, allowing access to all MDS settings, as well as providing an ability to easily change these settings.

Methods

getDeleteMode

DeleteMode getDeleteMode()

Returns current setting of the Delete mode. Depending on its setting, deleting an MDS instance either moves it to trash, or removes it permanently.

Returns:current delete mode setting

getGridSize

Integer getGridSize()

Returns current setting of the grid size.

Returns:the size of the grid

getModuleSettings

ModuleSettings getModuleSettings()

Retrieves all MDS settings.

Returns:MDS settings

getTimeUnit

TimeUnit getTimeUnit()

Together with getTimeValue() specifies frequency of the automatic removal of the instances.

Returns:selected unit of time

getTimeValue

Integer getTimeValue()

Together with getTimeUnit() specifies frequency of the automatic removal of the instances.

Returns:value as an integer

isEmptyTrash

Boolean isEmptyTrash()

Returns current setting of the Empty trash, which informs whether automatic removal of instances is enabled.

Returns:true, if setting is enabled, false otherwise

isRefreshModuleAfterTimeout

Boolean isRefreshModuleAfterTimeout()

Returns current setting of bundle restarting after timeout.

Returns:true, if setting is enabled, false otherwise

saveModuleSettings

void saveModuleSettings(ModuleSettings settings)

Updates all MDS settings and performs necessary actions if required (eg. scheduling jobs, that remove instances from trash).

Parameters:
  • settings – settings to save