Package de.xima.fc.interfaces.file
Interface IProvidingFileHandler
- All Known Implementing Classes:
ProvidingFileHandlerImpl
Deprecated.
This is part of the old workflow engine. Use the new workflow engine.
Utility methods for actions implementing
IProviding
and IAttachableFile
. Contains methods such as
attaching files to the form record or saving files to the file system.- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttachment
(File file) Deprecated.Attaches the given file to the current form record of the workflow processing context.void
attachFilesFromActionToFormRecord
(long actionId) Deprecated.For a given action, attaches the files produced by that action to the current form record.void
Deprecated.For a workflow action that provides files, takes the files it produces and attaches those files to the current form record.getExportDirectory
(String exportDirectory, boolean useProcessId) Deprecated.Returns the export directory for aIProviding
.void
saveFilesFromActionToFileSystem
(long actionId, File outputDir) Deprecated.For a given action, saves the files produced by that action to the file system.void
saveFileToFileSystem
(File srcFile, File outputDir) Deprecated.Saves the given file to the file system, ie. copies it to the given directory.
-
Method Details
-
addAttachment
Deprecated.Attaches the given file to the current form record of the workflow processing context. The file is attached with theUserMgmtUtils.SYSTEM
user.- Parameters:
file
- File to be attached to the form record. Must not be a directory.- Throws:
IOException
- When the file data could not be read.
-
attachFilesFromActionToFormRecord
Deprecated.For a given action, attaches the files produced by that action to the current form record.- Parameters:
actionId
-Aktion.getId()
of the action whose files are to be attached.- Throws:
IOException
- When the files could not be attached.
-
attachFilesFromCurrentActionToFormRecord
Deprecated.For a workflow action that provides files, takes the files it produces and attaches those files to the current form record.- Parameters:
action
- The current action whose files are to be attached.- Throws:
IOException
- When the files could not be attached.
-
getExportDirectory
Deprecated.Returns the export directory for aIProviding
. When enabled, creates a sub directory with the name of the current process ID.- 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.
-
saveFilesFromActionToFileSystem
Deprecated.For a given action, saves the files produced by that action to the file system.- Parameters:
actionId
-Aktion.getId()
of the action whose files are to be saved.outputDir
- The directory to which the files are saved.- Throws:
IOException
- When the files could not be attached.
-
saveFileToFileSystem
Deprecated.Saves the given file to the file system, ie. copies it to the given directory.- 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.
-