public class ConsumingFileHandlerImpl extends Object implements IConsumingFileHandler
| Constructor and Description | 
|---|
ConsumingFileHandlerImpl(IWorkflowProcessingContext wfpc)  | 
| Modifier and Type | Method and Description | 
|---|---|
List<Attachment> | 
getAttachmentsFromUploadElements(IUploadConsuming consuming,
                                Aktion action)
Same as  
IConsumingFileHandler.getAttachmentsFromUploadElements(List, Aktion), but takes the arguments from the given
 IUploadConsuming belonging to the given action. | 
List<Attachment> | 
getAttachmentsFromUploadElements(List<String> uploadElements,
                                Aktion action)
Returns a list of all attachments for the given upload elements. 
 | 
File | 
getDirWithUploadElements(IUploadConsuming consuming,
                        Aktion action)
Same as  
IConsumingFileHandler.getDirWithUploadElements(IUploadConsuming, Aktion), but takes the parameters from the given
 IUploadConsuming corresponding to the given action. | 
File | 
getDirWithUploadElements(List<String> uploadElements,
                        Aktion action)
Similar to  
IConsumingFileHandler.getFilesFromUploadElements(List, Aktion), but returns a File for the directory which
 contains all the uploaded elements. | 
Map<? super Object,File> | 
getFileOrDirsFromPreviousActions(IConsuming consuming,
                                Aktion action)
For each previous action as specified by  
IConsuming.getActionUUIDs(), find the file or directory created by
 that action and returns them. | 
List<File> | 
getFilesFromPreviousActions(IConsuming consuming,
                           Aktion action)
Returns all files from previous actions as specified by the  
IConsuming.getActionUUIDs(). | 
List<File> | 
getFilesFromUploadElements(IUploadConsuming consuming,
                          Aktion action)
Same as  
IConsumingFileHandler.getFilesFromUploadElements(List, Aktion), but takes the parameters from the given
 IUploadConsuming corresponding to the given action. | 
List<File> | 
getFilesFromUploadElements(List<String> uploadElements,
                          Aktion action)
Returns a list of all files from the given upload elements. 
 | 
public ConsumingFileHandlerImpl(IWorkflowProcessingContext wfpc)
public Map<? super Object,File> getFileOrDirsFromPreviousActions(IConsuming consuming, Aktion action)
IConsumingFileHandlerIConsuming.getActionUUIDs(), find the file or directory created by
 that action and returns them. Actions that did not create a file or directory are omitted.getFileOrDirsFromPreviousActions in interface IConsumingFileHandlerconsuming - The IConsuming belonging to the given action.action - A file consuming action whose files to get.public List<File> getFilesFromPreviousActions(IConsuming consuming, Aktion action)
IConsumingFileHandlerIConsuming.getActionUUIDs(). This method does
 not return any File.isDirectory()s. Instead, it recursively walks all directories and only returns the
 files they contain.getFilesFromPreviousActions in interface IConsumingFileHandlerconsuming - The IProcessing for the given action.action - Action for which to get the files.public List<Attachment> getAttachmentsFromUploadElements(IUploadConsuming consuming, Aktion action) throws Exception
IConsumingFileHandlerIConsumingFileHandler.getAttachmentsFromUploadElements(List, Aktion), but takes the arguments from the given
 IUploadConsuming belonging to the given action.getAttachmentsFromUploadElements in interface IConsumingFileHandlerExceptionIConsumingFileHandler.getAttachmentsFromUploadElements(List, Aktion)public List<Attachment> getAttachmentsFromUploadElements(List<String> uploadElements, Aktion action) throws Exception
IConsumingFileHandlergetAttachmentsFromUploadElements in interface IConsumingFileHandleruploadElements - Upload elements the given action required. Must contain the FormElement.getAlias() of
 the form upload element.action - The current action that is being processed.Exceptionpublic List<File> getFilesFromUploadElements(IUploadConsuming consuming, Aktion action) throws Exception
IConsumingFileHandlerIConsumingFileHandler.getFilesFromUploadElements(List, Aktion), but takes the parameters from the given
 IUploadConsuming corresponding to the given action.getFilesFromUploadElements in interface IConsumingFileHandlerExceptionIConsumingFileHandler.getFilesFromUploadElements(List, Aktion)public List<File> getFilesFromUploadElements(List<String> uploadElements, Aktion action) throws Exception
IConsumingFileHandlergetFilesFromUploadElements in interface IConsumingFileHandleruploadElements - Upload elements the given action required. Must contain the FormElement.getAlias() of
 the form upload element.action - The current action that is being processed.Exceptionpublic File getDirWithUploadElements(IUploadConsuming consuming, Aktion action) throws Exception
IConsumingFileHandlerIConsumingFileHandler.getDirWithUploadElements(IUploadConsuming, Aktion), but takes the parameters from the given
 IUploadConsuming corresponding to the given action.getDirWithUploadElements in interface IConsumingFileHandlerExceptionIConsumingFileHandler.getDirWithUploadElements(List, Aktion)public File getDirWithUploadElements(List<String> uploadElements, Aktion action) throws Exception
IConsumingFileHandlerIConsumingFileHandler.getFilesFromUploadElements(List, Aktion), but returns a File for the directory which
 contains all the uploaded elements.getDirWithUploadElements in interface IConsumingFileHandleruploadElements - Upload elements the given action required. Must contain the FormElement.getAlias() of
 the form upload element.action - The current action that is being processed.ExceptionIConsumingFileHandler.getDirWithUploadElements(IUploadConsuming, Aktion)Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.