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), 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(IUploadConsuming, Aktion), 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), 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
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.
|
Map<? super Object,File> getFileOrDirsFromPreviousActions(IConsuming consuming, Aktion action)
IConsuming.getActionUUIDs(), 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.getActionUUIDs(). 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), but takes the arguments from the given
IUploadConsuming belonging to the given action.ExceptiongetAttachmentsFromUploadElements(List, Aktion)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.ExceptionList<File> getFilesFromUploadElements(IUploadConsuming consuming, Aktion action) throws Exception
getFilesFromUploadElements(List, Aktion), but takes the parameters from the given
IUploadConsuming corresponding to the given action.ExceptiongetFilesFromUploadElements(List, Aktion)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.ExceptionFile getDirWithUploadElements(IUploadConsuming consuming, Aktion action) throws Exception
getDirWithUploadElements(IUploadConsuming, Aktion), but takes the parameters from the given
IUploadConsuming corresponding to the given action.ExceptiongetDirWithUploadElements(List, Aktion)File getDirWithUploadElements(List<String> uploadElements, Aktion action) throws Exception
getFilesFromUploadElements(List, Aktion), 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.ExceptiongetDirWithUploadElements(IUploadConsuming, Aktion)Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.