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¶
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¶
isRefreshModuleAfterTimeout¶
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