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
#getAttachmentsFromUploadElements(List, Aktion, IWorkflowProcessingContext), 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
#getDirWithUploadElements(List, Aktion, IWorkflowProcessingContext), but takes the parameters from
the given IUploadConsuming corresponding to the given action. |
File |
getDirWithUploadElements(List<String> uploadElements,
Aktion action)
Similar to
#getFilesFromUploadElements(List, Aktion, IWorkflowProcessingContext), 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.getAktionsIdErgebnisse(), 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.getAktionsIdErgebnisse(). |
List<File> |
getFilesFromUploadElements(IUploadConsuming consuming,
Aktion action)
Same as
#getFilesFromUploadElements(List, Aktion, IWorkflowProcessingContext), 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.getAktionsIdErgebnisse(), 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.getAktionsIdErgebnisse(). 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
IConsumingFileHandler#getAttachmentsFromUploadElements(List, Aktion, IWorkflowProcessingContext), but takes the
arguments from the given IUploadConsuming belonging to the given action.getAttachmentsFromUploadElements in interface IConsumingFileHandlerException#getAttachmentsFromUploadElements(List, Aktion, IWorkflowProcessingContext)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
IConsumingFileHandler#getFilesFromUploadElements(List, Aktion, IWorkflowProcessingContext), but takes the parameters
from the given IUploadConsuming corresponding to the given action.getFilesFromUploadElements in interface IConsumingFileHandlerException#getFilesFromUploadElements(List, Aktion, IWorkflowProcessingContext)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
IConsumingFileHandler#getDirWithUploadElements(List, Aktion, IWorkflowProcessingContext), but takes the parameters from
the given IUploadConsuming corresponding to the given action.getDirWithUploadElements in interface IConsumingFileHandlerException#getDirWithUploadElements(List, Aktion, IWorkflowProcessingContext)public File getDirWithUploadElements(List<String> uploadElements, Aktion action) throws Exception
IConsumingFileHandler#getFilesFromUploadElements(List, Aktion, IWorkflowProcessingContext), 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.ExceptionCopyright © 2019 XIMA MEDIA GmbH. All rights reserved.