Package org.opencms.ui.login
Class CmsInactiveUserMessages
- java.lang.Object
-
- org.opencms.ui.login.CmsInactiveUserMessages
-
public class CmsInactiveUserMessages extends java.lang.Object
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
Constructors Constructor Description CmsInactiveUserMessages()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getLockoutText(java.util.Locale locale)
Text to display for the lockout screen.static java.lang.String
getMessage(java.lang.String key, java.util.Locale locale)
Gets the message for the given key and locale.static java.lang.String
getReportHeader(java.util.Locale locale)
Gets the header text for the report mail.static java.lang.String
getReportSubject(java.util.Locale locale)
Gets the subject for the report mail.
-
-
-
Constructor Detail
-
CmsInactiveUserMessages
public CmsInactiveUserMessages()
-
-
Method Detail
-
getLockoutText
public static java.lang.String getLockoutText(java.util.Locale locale)
Text to display for the lockout screen.- Parameters:
locale
- the locale- Returns:
- the localized text
-
getMessage
public static java.lang.String getMessage(java.lang.String key, java.util.Locale locale)
Gets the message for the given key and locale.- Parameters:
key
- the keylocale
- the locale- Returns:
- the localized text
-
getReportHeader
public static java.lang.String getReportHeader(java.util.Locale locale)
Gets the header text for the report mail.- Parameters:
locale
- the locale- Returns:
- the localized text
-
getReportSubject
public static java.lang.String getReportSubject(java.util.Locale locale)
Gets the subject for the report mail.- Parameters:
locale
- the locale- Returns:
- the localized text
-
-