Class CmsChangeLogLevelAction

java.lang.Object
org.opencms.workplace.tools.A_CmsHtmlIconButton
org.opencms.workplace.list.A_CmsListAction
org.opencms.workplace.list.CmsListDirectAction
org.opencms.workplace.tools.workplace.logging.CmsChangeLogLevelAction
All Implemented Interfaces:
I_CmsListAction, I_CmsListDirectAction, org.opencms.workplace.tools.I_CmsHtmlIconButton

Action handler for single actions from logging view.

  • Field Details

    • m_logLevel

      protected org.apache.logging.log4j.Level m_logLevel
      The actual log level of this row.
  • Constructor Details

    • CmsChangeLogLevelAction

      public CmsChangeLogLevelAction(String id, org.apache.logging.log4j.Level level)
      Constructor so generate an instance.

      Parameters:
      id - The id of the Log-channel
      level - The level of the Log-channel
    • CmsChangeLogLevelAction

      public CmsChangeLogLevelAction(String id, org.apache.logging.log4j.Level level, org.opencms.i18n.CmsMessageContainer helpText)
      Constructor so generate an instance.

      Parameters:
      id - Id of the Log-channel
      level - Level of the Log-channel
      helpText - Helptext of the Log-Channel
    • CmsChangeLogLevelAction

      public CmsChangeLogLevelAction(String id, org.apache.logging.log4j.Level level, org.opencms.i18n.CmsMessageContainer name, org.opencms.i18n.CmsMessageContainer helpText)
      Constructor so generate an instance.

      Parameters:
      id - Id of the Log-channel
      level - Level of the Log-channel
      name - Name of the Log-channel
      helpText - Helptext of the Log-Channel
  • Method Details

    • resolveName

      protected String resolveName(Locale locale)
      Help method to resolve the name to use.

      Overrides:
      resolveName in class CmsListDirectAction
      Parameters:
      locale - the used locale
      Returns:
      the name
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface org.opencms.workplace.tools.I_CmsHtmlIconButton
      Overrides:
      isEnabled in class org.opencms.workplace.tools.A_CmsHtmlIconButton
      See Also:
      • A_CmsHtmlIconButton.isEnabled()