public class ArchivedLogClientSideElement extends StaticClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
Modifier and Type | Field and Description |
---|---|
protected JSONUtils |
_jsonUtils
JSON Utils
|
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
Constructor and Description |
---|
ArchivedLogClientSideElement() |
Modifier and Type | Method and Description |
---|---|
private Map<String,Object> |
_convertFilters(String filtersJson) |
private File |
_getLogsDirectory()
Get the logs directory.
|
Map<String,Object> |
getLogLines(String logFileName,
String filtersJson,
Integer limit)
Get the log lines of the given log file.
|
void |
service(ServiceManager smanager) |
_configureClass, _configureParameters, _configureScript, configureInitialParameters
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toString
getLogger, setLogger
protected JSONUtils _jsonUtils
public ArchivedLogClientSideElement()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class StaticFileImportsClientSideElement
ServiceException
public Map<String,Object> getLogLines(String logFileName, String filtersJson, Integer limit)
logFileName
- The log file name.filtersJson
- The filters (received as a JSON object)limit
- Limit of displayed events (can be 0 or -1 for no limit)Map
, in "lines" there are the log lines, in "error" there is the error message if an error occurs.private File _getLogsDirectory()
private Map<String,Object> _convertFilters(String filtersJson)