Class ExtractionFilesClientSideElement
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.core.ui.StaticClientSideElement
org.ametys.plugins.extraction.edition.ExtractionFilesClientSideElement
- All Implemented Interfaces:
ClientSideElement,LogEnabled,PluginAware,Configurable,Serviceable
Component for operations on extraction 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 -
Method Summary
Modifier and TypeMethodDescriptionAdd a new folderdeleteFile(String relPath) Remove a folder or a filegetDefinitionFiles(String path, String profileId) Gets parameters files and folders contained in the given path.getResultFiles(String path) Gets the result files of extractionsrenameFile(String relPath, String name) Rename a file or a foldervoidservice(ServiceManager serviceManager) Methods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureClass, _configureParameters, _configureScript, configureInitialParametersMethods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toStringMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
ExtractionFilesClientSideElement
public ExtractionFilesClientSideElement()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classStaticFileImportsClientSideElement- Throws:
ServiceException
-
getDefinitionFiles
public List<Map<String,Object>> getDefinitionFiles(String path, String profileId) throws IOException Gets parameters files and folders contained in the given path.- Parameters:
path- the relative file's path from parameters files root directoryprofileId- The extraction profile used to get the files- Returns:
- the list of parameters files and folders
- Throws:
IOException- If an error occurred while listing files
-
getResultFiles
Gets the result files of extractions- Parameters:
path- the relative file's path from the results root directory- Returns:
- the results files
- Throws:
IOException- If an error occurred while listing files
-
addFolder
Add a new folder- Parameters:
parentRelPath- the relative parent file's path from parameters files root directoryname- The name of folder to create- Returns:
- a map containing the name of the created folder, its path and the path of its parent
- Throws:
IOException- If an error occurred while creating folder
-
deleteFile
Remove a folder or a file- Parameters:
relPath- the relative file's path from parameters files root directory- Returns:
- the result map
- Throws:
IOException- If an error occurs while removing the folder
-
renameFile
Rename a file or a folder- Parameters:
relPath- the relative file's path from parameters files root directoryname- the new name of the file/folder- Returns:
- the result map
- Throws:
IOException- if an error occurs while renaming the file/folder
-