Class PromptTempFolderManager

java.lang.Object
de.xima.fc.prompt.mgmt.gui.logic.PromptTempFolderManager
All Implemented Interfaces:
Serializable

public final class PromptTempFolderManager extends Object implements Serializable
See Also:
  • Constructor Details

  • 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

      public IPromptFileStorage 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

      public Path testExecutionInputDir() throws IOException
      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

      public Path testExecutionOutputDir() throws IOException
      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