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)
IConsumingFileHandler
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.getFileOrDirsFromPreviousActions
in interface IConsumingFileHandler
consuming
- The IConsuming
belonging to the given action.action
- A file consuming action whose files to get.public List<File> getFilesFromPreviousActions(IConsuming consuming, Aktion action)
IConsumingFileHandler
IConsuming.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 IConsumingFileHandler
consuming
- 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
IConsumingFileHandler.getAttachmentsFromUploadElements(List, Aktion)
, but takes the arguments from the given
IUploadConsuming
belonging to the given action.getAttachmentsFromUploadElements
in interface IConsumingFileHandler
Exception
IConsumingFileHandler.getAttachmentsFromUploadElements(List, Aktion)
public List<Attachment> getAttachmentsFromUploadElements(List<String> uploadElements, Aktion action) throws Exception
IConsumingFileHandler
getAttachmentsFromUploadElements
in interface IConsumingFileHandler
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.Exception
public List<File> getFilesFromUploadElements(IUploadConsuming consuming, Aktion action) throws Exception
IConsumingFileHandler
IConsumingFileHandler.getFilesFromUploadElements(List, Aktion)
, but takes the parameters from the given
IUploadConsuming
corresponding to the given action.getFilesFromUploadElements
in interface IConsumingFileHandler
Exception
IConsumingFileHandler.getFilesFromUploadElements(List, Aktion)
public List<File> getFilesFromUploadElements(List<String> uploadElements, Aktion action) throws Exception
IConsumingFileHandler
getFilesFromUploadElements
in interface IConsumingFileHandler
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.Exception
public File getDirWithUploadElements(IUploadConsuming consuming, Aktion action) throws Exception
IConsumingFileHandler
IConsumingFileHandler.getDirWithUploadElements(IUploadConsuming, Aktion)
, but takes the parameters from the given
IUploadConsuming
corresponding to the given action.getDirWithUploadElements
in interface IConsumingFileHandler
Exception
IConsumingFileHandler.getDirWithUploadElements(List, Aktion)
public File getDirWithUploadElements(List<String> uploadElements, Aktion action) throws Exception
IConsumingFileHandler
IConsumingFileHandler.getFilesFromUploadElements(List, Aktion)
, but returns a File
for the directory which
contains all the uploaded elements.getDirWithUploadElements
in interface IConsumingFileHandler
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.Exception
IConsumingFileHandler.getDirWithUploadElements(IUploadConsuming, Aktion)
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.