Class ProvidingFileHandlerImpl

  • All Implemented Interfaces:
    IProvidingFileHandler

    @Deprecated
    public class ProvidingFileHandlerImpl
    extends Object
    implements IProvidingFileHandler
    Deprecated.
    This is part of the old workflow engine. Use the new workflow engine.
    Helper utility class for all workflow actions implementing IProviding. Contains methods such as attaching files to the form record or saving files to the file system.
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • attachFilesFromCurrentActionToFormRecord

        public void attachFilesFromCurrentActionToFormRecord​(Aktion action)
                                                      throws IOException
        Deprecated.
        Description copied from interface: IProvidingFileHandler
        For a workflow action that provides files, takes the files it produces and attaches those files to the current form record.
        Specified by:
        attachFilesFromCurrentActionToFormRecord in interface IProvidingFileHandler
        Parameters:
        action - The current action whose files are to be attached.
        Throws:
        IOException - When the files could not be attached.
      • getExportDirectory

        public File getExportDirectory​(String exportDirectory,
                                       boolean useProcessId)
                                throws IOException
        Deprecated.
        Description copied from interface: IProvidingFileHandler
        Returns the export directory for a IProviding. When enabled, creates a sub directory with the name of the current process ID.
        Specified by:
        getExportDirectory in interface IProvidingFileHandler
        Parameters:
        exportDirectory - Base export directory.
        useProcessId - Whether a sub directory with the process ID is created.
        Returns:
        The export directory. null if the given export directory is blank.
        Throws:
        IOException - When the directory could not be created.
      • saveFileToFileSystem

        public void saveFileToFileSystem​(File srcFile,
                                         File outputDir)
                                  throws IOException
        Deprecated.
        Description copied from interface: IProvidingFileHandler
        Saves the given file to the file system, ie. copies it to the given directory.
        Specified by:
        saveFileToFileSystem in interface IProvidingFileHandler
        Parameters:
        srcFile - File to be saved to the file system.
        outputDir - Directory to which the file is saved.
        Throws:
        IOException - When the file cannot be copied.