Class CmsLogLevelListItemComparator
java.lang.Object
org.opencms.workplace.tools.workplace.logging.CmsLogLevelListItemComparator
- All Implemented Interfaces:
I_CmsListItemComparator
Help function to select the comparator.
Returns the comparator for the requested Column.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant for the DEBUG level.static final StringConstant for the ERROR level.static final StringConstant for the FATAL level.static final StringConstant for the INFO level.static final StringConstant for the OFF level.static final StringConstant for the WARN level. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComparator(String columnId, Locale locale) Returns a new comparator for comparing list items by the given column, and using the given locale.
-
Field Details
-
DEBUG
Constant for the DEBUG level.- See Also:
-
INFO
Constant for the INFO level.- See Also:
-
WARN
Constant for the WARN level.- See Also:
-
ERROR
Constant for the ERROR level.- See Also:
-
FATAL
Constant for the FATAL level.- See Also:
-
OFF
Constant for the OFF level.- See Also:
-
-
Constructor Details
-
CmsLogLevelListItemComparator
public CmsLogLevelListItemComparator()
-
-
Method Details
-
getComparator
Description copied from interface:I_CmsListItemComparatorReturns a new comparator for comparing list items by the given column, and using the given locale.- Specified by:
getComparatorin interfaceI_CmsListItemComparator- Parameters:
columnId- the id of the column to sort bylocale- the current used locale- Returns:
- a new comparator
- See Also:
-