Class DeleteExtractionResultFilesClientSideElement
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.core.ui.StaticFileImportsClientSideElement
-
- org.ametys.core.ui.StaticClientSideElement
-
- org.ametys.plugins.extraction.execution.DeleteExtractionResultFilesClientSideElement
-
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Serviceable
public class DeleteExtractionResultFilesClientSideElement extends StaticClientSideElement
This client site element manages a button to delete extraction result folders and files
-
-
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
Constructors Constructor Description DeleteExtractionResultFilesClientSideElement()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static void
_delete(Path fileOrFolder)
private static void
_tryToDelete(String path, Path rootResults, List<String> deleted, List<String> notDeleted, List<String> doNotExist)
Map<String,Object>
deleteResults(List<String> paths)
Deletes multiple result folders and result files.-
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, service, setPluginInfo, toString
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
DeleteExtractionResultFilesClientSideElement
public DeleteExtractionResultFilesClientSideElement()
-
-
Method Detail
-
deleteResults
public Map<String,Object> deleteResults(List<String> paths)
Deletes multiple result folders and result files.- Parameters:
paths
- The paths of the result folders and files to delete- Returns:
- The result map
-
_tryToDelete
private static void _tryToDelete(String path, Path rootResults, List<String> deleted, List<String> notDeleted, List<String> doNotExist)
-
_delete
private static void _delete(Path fileOrFolder) throws IOException
- Throws:
IOException
-
-