Package org.opencms.ui.login
Class CmsInactiveUserMessages
java.lang.Object
org.opencms.ui.login.CmsInactiveUserMessages
Helper class for getting localized messages for the 'lock inactive users' feature.
We are not just using the standard Messages class here because the messages are supposed to be customizable, and we do not want to lose the customizations if e.g. we install a new opencms.jar.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getLockoutText
(Locale locale) Text to display for the lockout screen.static String
getMessage
(String key, Locale locale) Gets the message for the given key and locale.static String
getReportHeader
(Locale locale) Gets the header text for the report mail.static String
getReportSubject
(Locale locale) Gets the subject for the report mail.
-
Constructor Details
-
CmsInactiveUserMessages
public CmsInactiveUserMessages()
-
-
Method Details
-
getLockoutText
Text to display for the lockout screen.- Parameters:
locale
- the locale- Returns:
- the localized text
-
getMessage
Gets the message for the given key and locale.- Parameters:
key
- the keylocale
- the locale- Returns:
- the localized text
-
getReportHeader
Gets the header text for the report mail.- Parameters:
locale
- the locale- Returns:
- the localized text
-
getReportSubject
Gets the subject for the report mail.- Parameters:
locale
- the locale- Returns:
- the localized text
-