Class LogsClientSideElement
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.core.ui.StaticClientSideElement
org.ametys.runtime.plugins.admin.logs.LogsClientSideElement
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Serviceable
Client side element for log actions
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
-
Field Summary
Fields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionchangeLogLevel
(String level, String category) Change the log level of the selected category to the selected leveldeleteLogs
(List<String> files) Delete the log filesDelete the log entries that are at least 12 days oldvoid
service
(ServiceManager serviceManager) Methods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureClass, _configureParameters, _configureScript, configureInitialParameters
Methods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toString
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
LogsClientSideElement
public LogsClientSideElement()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classStaticFileImportsClientSideElement
- Throws:
ServiceException
-
deleteLogs
Delete the log files- Parameters:
files
- the files to delete- Returns:
- the result map with the successes and failures files.
- Throws:
IOException
- if an error occurred during deletionProcessingException
- if an error occurred during deletion
-
purgeLogs
Delete the log entries that are at least 12 days old- Returns:
- the result
- Throws:
ProcessingException
- if an exception occurs while processing the deletion
-
changeLogLevel
Change the log level of the selected category to the selected level- Parameters:
level
- the selected levelcategory
- the selected category- Returns:
- a map
-