Package de.xima.fc.bl.fdv.file
Class ProvidingFileHandlerImpl
- java.lang.Object
- 
- de.xima.fc.bl.fdv.file.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 implementingIProviding. Contains methods such as attaching files to the form record or saving files to the file system.- Author:
- XIMA MEDIA GmbH
 
- 
- 
Constructor SummaryConstructors Constructor Description ProvidingFileHandlerImpl(IWorkflowProcessingContext wfpc)Deprecated.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddAttachment(File file)Deprecated.Attaches the given file to the current form record of the workflow processing context.voidattachFilesFromActionToFormRecord(long actionId)Deprecated.For a given action, attaches the files produced by that action to the current form record.voidattachFilesFromCurrentActionToFormRecord(Aktion action)Deprecated.For a workflow action that provides files, takes the files it produces and attaches those files to the current form record.FilegetExportDirectory(String exportDirectory, boolean useProcessId)Deprecated.Returns the export directory for aIProviding.voidsaveFilesFromActionToFileSystem(long actionId, File outputDir)Deprecated.For a given action, saves the files produced by that action to the file system.voidsaveFileToFileSystem(File srcFile, File outputDir)Deprecated.Saves the given file to the file system, ie.
 
- 
- 
- 
Constructor Detail- 
ProvidingFileHandlerImplpublic ProvidingFileHandlerImpl(IWorkflowProcessingContext wfpc) Deprecated.
 
- 
 - 
Method Detail- 
addAttachmentpublic void addAttachment(File file) throws IOException Deprecated.Description copied from interface:IProvidingFileHandlerAttaches the given file to the current form record of the workflow processing context. The file is attached with theUserMgmtUtils.SYSTEMuser.- Specified by:
- addAttachmentin interface- IProvidingFileHandler
- 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.
 
 - 
attachFilesFromActionToFormRecordpublic void attachFilesFromActionToFormRecord(long actionId) throws IOExceptionDeprecated.Description copied from interface:IProvidingFileHandlerFor a given action, attaches the files produced by that action to the current form record.- Specified by:
- attachFilesFromActionToFormRecordin interface- IProvidingFileHandler
- Parameters:
- actionId-- Aktion.getId()of the action whose files are to be attached.
- Throws:
- IOException- When the files could not be attached.
 
 - 
attachFilesFromCurrentActionToFormRecordpublic void attachFilesFromCurrentActionToFormRecord(Aktion action) throws IOException Deprecated.Description copied from interface:IProvidingFileHandlerFor a workflow action that provides files, takes the files it produces and attaches those files to the current form record.- Specified by:
- attachFilesFromCurrentActionToFormRecordin interface- IProvidingFileHandler
- Parameters:
- action- The current action whose files are to be attached.
- Throws:
- IOException- When the files could not be attached.
 
 - 
getExportDirectorypublic File getExportDirectory(String exportDirectory, boolean useProcessId) throws IOException Deprecated.Description copied from interface:IProvidingFileHandlerReturns the export directory for aIProviding. When enabled, creates a sub directory with the name of the current process ID.- Specified by:
- getExportDirectoryin interface- IProvidingFileHandler
- Parameters:
- exportDirectory- Base export directory.
- useProcessId- Whether a sub directory with the process ID is created.
- Returns:
- The export directory. nullif the given export directory is blank.
- Throws:
- IOException- When the directory could not be created.
 
 - 
saveFilesFromActionToFileSystempublic void saveFilesFromActionToFileSystem(long actionId, File outputDir) throws IOExceptionDeprecated.Description copied from interface:IProvidingFileHandlerFor a given action, saves the files produced by that action to the file system.- Specified by:
- saveFilesFromActionToFileSystemin interface- IProvidingFileHandler
- 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.
 
 - 
saveFileToFileSystempublic void saveFileToFileSystem(File srcFile, File outputDir) throws IOException Deprecated.Description copied from interface:IProvidingFileHandlerSaves the given file to the file system, ie. copies it to the given directory.- Specified by:
- saveFileToFileSystemin 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.
 
 
- 
 
-