Class PromptTempFolderManager
java.lang.Object
de.xima.fc.prompt.mgmt.gui.logic.PromptTempFolderManager
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclean()Cleans up the temporary folder by deleting all its contents.Gets the file storage for external files.Gets the temporary folder for test execution inputs.Gets the temporary folder for test execution outputs.
-
Constructor Details
-
PromptTempFolderManager
- Throws:
IOException
-
-
Method Details
-
clean
public void clean()Cleans up the temporary folder by deleting all its contents. Other methods should not be used anymore after calling this method. -
newExternalFileStorage
Gets the file storage for external files. It will be passed to prompt service handlers implementations that need to store files. Also removes all files that were created by the previous file storage object returned by this method.- Returns:
- The new provider.
-
testExecutionInputDir
Gets the temporary folder for test execution inputs. The temporary folder is reused across multiple test executions. It stores the input files uploaded by the user that are required by the prompt query for execution; and the output files created during execution that are shown to the user after execution.- Returns:
- The temp folder for test execution input files.
- Throws:
IOException
-
testExecutionOutputDir
Gets the temporary folder for test execution outputs. The temporary folder is reused across multiple test executions. It stores the output files returned by the prompt service during execution; so that the user can download them later.- Returns:
- The temp folder for test execution output files.
- Throws:
IOException
-