Class 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.

    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 key
        locale - 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