Package org.ametys.plugins.core.ui.log
Class LogManager
- java.lang.Object
-
- org.ametys.plugins.core.ui.log.LogManager
-
- All Implemented Interfaces:
Component
,Contextualizable
public class LogManager extends Object implements Component, Contextualizable
Manager for interacting with the MemoryAppender logs
-
-
Field Summary
Fields Modifier and Type Field Description private String
_contextPath
static String
MEMORY_APPENDER_NAME
Name of the memory appenderstatic String
ROLE
The Avalon role
-
Constructor Summary
Constructors Constructor Description LogManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private String
_hideRealPaths(String text)
void
contextualize(Context context)
List<Map<String,Object>>
getEvents(Long timestamp, List<String> categories)
Get the existing target types
-
-
-
Field Detail
-
MEMORY_APPENDER_NAME
public static final String MEMORY_APPENDER_NAME
Name of the memory appender- See Also:
- Constant Field Values
-
_contextPath
private String _contextPath
-
-
Constructor Detail
-
LogManager
public LogManager()
-
-
Method Detail
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
getEvents
public List<Map<String,Object>> getEvents(Long timestamp, List<String> categories)
Get the existing target types- Parameters:
timestamp
- Events after this timestamp will be retrievedcategories
- Events will be filtered by these categories. If empty, all categories are accepted.- Returns:
- the target types
-
_hideRealPaths
private String _hideRealPaths(String text)
-
-