public interface IConsumingFileHandler
IConsuming
. Contains methods for
retrieving the files from previous actions and files from uploaded files.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.
|
Map<? super Object,File> getFileOrDirsFromPreviousActions(IConsuming consuming, Aktion action)
IConsuming.getAktionsIdErgebnisse()
, find the file or directory
created by that action and returns them. Actions that did not create a file or directory are omitted.consuming
- The IConsuming
belonging to the given action.action
- A file consuming action whose files to get.wfpc
- The current workflow processing context.List<File> getFilesFromPreviousActions(IConsuming consuming, Aktion action)
IConsuming.getAktionsIdErgebnisse()
. This
method does not return any File.isDirectory()
s. Instead, it recursively walks all directories and only
returns the files they contain.consuming
- The IProcessing
for the given action.action
- Action for which to get the files.wfpc
- The current workflow processing context.List<Attachment> getAttachmentsFromUploadElements(IUploadConsuming consuming, Aktion action) throws Exception
#getAttachmentsFromUploadElements(List, Aktion, IWorkflowProcessingContext)
, but takes the
arguments from the given IUploadConsuming
belonging to the given action.Exception
#getAttachmentsFromUploadElements(List, Aktion, IWorkflowProcessingContext)
List<Attachment> getAttachmentsFromUploadElements(List<String> uploadElements, Aktion action) throws Exception
uploadElements
- Upload elements the given action required. Must contain the FormElement.getAlias()
of
the form upload element.action
- The current action that is being processed.wfpc
- The current workflow processing context.Exception
List<File> getFilesFromUploadElements(IUploadConsuming consuming, Aktion action) throws Exception
#getFilesFromUploadElements(List, Aktion, IWorkflowProcessingContext)
, but takes the parameters
from the given IUploadConsuming
corresponding to the given action.Exception
#getFilesFromUploadElements(List, Aktion, IWorkflowProcessingContext)
List<File> getFilesFromUploadElements(List<String> uploadElements, Aktion action) throws Exception
uploadElements
- Upload elements the given action required. Must contain the FormElement.getAlias()
of
the form upload element.action
- The current action that is being processed.wfpc
- The current workflow processing context.Exception
File getDirWithUploadElements(IUploadConsuming consuming, Aktion action) throws Exception
#getDirWithUploadElements(List, Aktion, IWorkflowProcessingContext)
, but takes the parameters from
the given IUploadConsuming
corresponding to the given action.Exception
#getDirWithUploadElements(List, Aktion, IWorkflowProcessingContext)
File getDirWithUploadElements(List<String> uploadElements, Aktion action) throws Exception
#getFilesFromUploadElements(List, Aktion, IWorkflowProcessingContext)
, but returns a
File
for the directory which contains all the uploaded elements.uploadElements
- Upload elements the given action required. Must contain the FormElement.getAlias()
of
the form upload element.action
- The current action that is being processed.wfpc
- The current workflow processing context.Exception
Copyright © 2019 XIMA MEDIA GmbH. All rights reserved.