MotechSettings¶
-
public interface
MotechSettings
¶ Interface for main MOTECH settings management.
Methods¶
asProperties¶
-
Properties
asProperties
()¶ Converts this MOTECH setting to
Properties
.Returns: this object as Properties
getFailureLoginLimit¶
getMinPasswordLength¶
getNumberOfDaysForReminder¶
getNumberOfDaysToChangePassword¶
getPasswordValidator¶
getSessionTimeout¶
isPasswordResetReminderEnabled¶
-
boolean
isPasswordResetReminderEnabled
()¶ Checks whether the reminding about password reset is enabled.
Returns: true when the reminding is enabled
isPlatformInitialized¶
-
boolean
isPlatformInitialized
()¶ Checks whether platform is initialized.
Returns: true if platform is initialized, false otherwise
load¶
-
void
load
(DigestInputStream dis)¶ Loads the properties from given stream and stores them withing this object.
Parameters: - dis – the source stream
Throws: - IOException – when I/O error occurs
savePlatformSetting¶
setFailureLoginLimit¶
-
void
setFailureLoginLimit
(int limit)¶ Sets the failure login limit. After reaching this limit user will be blocked. If 0 then blocking will be disabled.
Parameters: - limit – the failure login limit
setMinPasswordLength¶
setNumberOfDaysForReminder¶
setNumberOfDaysToChangePassword¶
setPasswordResetReminder¶
setPasswordValidator¶
setSessionTimeout¶
-
void
setSessionTimeout
(Integer sessionTimeout)¶ Sets the http session timeout for Motech users. Users will be logged out after reaching this timeout. This value is specified in seconds. A negative value specifies that sessions should never time out.
Parameters: - sessionTimeout – the http session timeout, in seconds
updateFromProperties¶
-
void
updateFromProperties
(Properties props)¶ Updates this object with given properties.
Parameters: - props – properties to be applied
updateSettings¶
-
void
updateSettings
(String configFileChecksum, String filePath, Properties platformSettings)¶ Updates settings with given information.
Parameters: - configFileChecksum – the configuration file checksum to be set
- filePath – the file path to be set
- platformSettings – the platform settings to be add