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
public class CmsChangeLogLevelAction extends CmsListDirectAction
Action handler for single actions from logging view.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.logging.log4j.Level
m_logLevel
The actual log level of this row.
-
Constructor Summary
Constructors Constructor Description CmsChangeLogLevelAction(java.lang.String id, org.apache.logging.log4j.Level level)
Constructor so generate an instance.CmsChangeLogLevelAction(java.lang.String id, org.apache.logging.log4j.Level level, org.opencms.i18n.CmsMessageContainer helpText)
Constructor so generate an instance.CmsChangeLogLevelAction(java.lang.String id, org.apache.logging.log4j.Level level, org.opencms.i18n.CmsMessageContainer name, org.opencms.i18n.CmsMessageContainer helpText)
Constructor so generate an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEnabled()
protected java.lang.String
resolveName(java.util.Locale locale)
Help method to resolve the name to use.-
Methods inherited from class org.opencms.workplace.list.CmsListDirectAction
buttonHtml, confirmationTextHtml, getColumnForTexts, getItem, helpTextHtml, resolveButtonStyle, resolveHelpText, resolveOnClic, setColumnForTexts, setItem
-
Methods inherited from class org.opencms.workplace.list.A_CmsListAction
buttonHtml, defaultConfirmationHtml, getConfirmationMessage, getListId, getWp, setConfirmationMessage, setListId, setWp
-
Methods inherited from class org.opencms.workplace.tools.A_CmsHtmlIconButton
defaultButtonHtml, defaultButtonHtml, defaultHelpHtml, getHelpText, getIconPath, getId, getName, isVisible, setEnabled, setHelpText, setIconPath, setName, setVisible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opencms.workplace.tools.I_CmsHtmlIconButton
getHelpText, getIconPath, getId, getName, isVisible, setEnabled, setHelpText, setIconPath, setName, setVisible
-
Methods inherited from interface org.opencms.workplace.list.I_CmsListAction
buttonHtml, getConfirmationMessage, getListId, getWp, setConfirmationMessage, setListId, setWp
-
-
-
-
Field Detail
-
m_logLevel
protected org.apache.logging.log4j.Level m_logLevel
The actual log level of this row.
-
-
Constructor Detail
-
CmsChangeLogLevelAction
public CmsChangeLogLevelAction(java.lang.String id, org.apache.logging.log4j.Level level)
Constructor so generate an instance.- Parameters:
id
- The id of the Log-channellevel
- The level of the Log-channel
-
CmsChangeLogLevelAction
public CmsChangeLogLevelAction(java.lang.String id, org.apache.logging.log4j.Level level, org.opencms.i18n.CmsMessageContainer helpText)
Constructor so generate an instance.- Parameters:
id
- Id of the Log-channellevel
- Level of the Log-channelhelpText
- Helptext of the Log-Channel
-
CmsChangeLogLevelAction
public CmsChangeLogLevelAction(java.lang.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-channellevel
- Level of the Log-channelname
- Name of the Log-channelhelpText
- Helptext of the Log-Channel
-
-
Method Detail
-
resolveName
protected java.lang.String resolveName(java.util.Locale locale)
Help method to resolve the name to use.- Overrides:
resolveName
in classCmsListDirectAction
- Parameters:
locale
- the used locale- Returns:
- the name
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interfaceorg.opencms.workplace.tools.I_CmsHtmlIconButton
- Overrides:
isEnabled
in classorg.opencms.workplace.tools.A_CmsHtmlIconButton
- See Also:
A_CmsHtmlIconButton.isEnabled()
-
-