public class DeleteExtractionResultFilesClientSideElement extends StaticClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
Constructor and Description |
---|
DeleteExtractionResultFilesClientSideElement() |
Modifier and Type | Method and 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.
|
_configureClass, _configureParameters, _configureScript, configureInitialParameters
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, service, setPluginInfo, toString
getLogger, setLogger
public DeleteExtractionResultFilesClientSideElement()
public Map<String,Object> deleteResults(List<String> paths)
paths
- The paths of the result folders and files to deleteprivate static void _tryToDelete(String path, Path rootResults, List<String> deleted, List<String> notDeleted, List<String> doNotExist)
private static void _delete(Path fileOrFolder) throws IOException
IOException