Package de.xima.fc.bl.fdv.file
Class ConsumingFileHandlerImpl
java.lang.Object
de.xima.fc.bl.fdv.file.ConsumingFileHandlerImpl
- All Implemented Interfaces:
IConsumingFileHandler
Deprecated.
This is part of the old workflow engine. Use the new workflow engine.
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttachmentsFromUploadElements
(IUploadConsuming consuming, Aktion action) Deprecated.Same asIConsumingFileHandler.getAttachmentsFromUploadElements(List, Aktion)
, but takes the arguments from the givenIUploadConsuming
belonging to the given action.getAttachmentsFromUploadElements
(List<String> uploadElements, Aktion action) Deprecated.Returns a list of all attachments for the given upload elements.getDirWithUploadElements
(IUploadConsuming consuming, Aktion action) Deprecated.Same asIConsumingFileHandler.getDirWithUploadElements(IUploadConsuming, Aktion)
, but takes the parameters from the givenIUploadConsuming
corresponding to the given action.getDirWithUploadElements
(List<String> uploadElements, Aktion action) Deprecated.Similar toIConsumingFileHandler.getFilesFromUploadElements(List, Aktion)
, but returns aFile
for the directory which contains all the uploaded elements.getFileOrDirsFromPreviousActions
(IConsuming consuming, Aktion action) Deprecated.For each previous action as specified byIConsuming.getActionUUIDs()
, find the file or directory created by that action and returns them.getFilesFromPreviousActions
(IConsuming consuming, Aktion action) Deprecated.Returns all files from previous actions as specified by theIConsuming.getActionUUIDs()
.getFilesFromUploadElements
(IUploadConsuming consuming, Aktion action) Deprecated.Same asIConsumingFileHandler.getFilesFromUploadElements(List, Aktion)
, but takes the parameters from the givenIUploadConsuming
corresponding to the given action.getFilesFromUploadElements
(List<String> uploadElements, Aktion action) Deprecated.Returns a list of all files from the given upload elements.
-
Constructor Details
-
ConsumingFileHandlerImpl
Deprecated.
-
-
Method Details
-
getFileOrDirsFromPreviousActions
public Map<? super Object,File> getFileOrDirsFromPreviousActions(IConsuming consuming, Aktion action) Deprecated.Description copied from interface:IConsumingFileHandler
For each previous action as specified byIConsuming.getActionUUIDs()
, find the file or directory created by that action and returns them. Actions that did not create a file or directory are omitted.- Specified by:
getFileOrDirsFromPreviousActions
in interfaceIConsumingFileHandler
- Parameters:
consuming
- TheIConsuming
belonging to the given action.action
- A file consuming action whose files to get.- Returns:
- A map from the ID of each previous action to the file or directory created by that action.
-
getFilesFromPreviousActions
Deprecated.Description copied from interface:IConsumingFileHandler
Returns all files from previous actions as specified by theIConsuming.getActionUUIDs()
. This method does not return anyFile.isDirectory()
s. Instead, it recursively walks all directories and only returns the files they contain.- Specified by:
getFilesFromPreviousActions
in interfaceIConsumingFileHandler
- Parameters:
consuming
- TheIProcessing
for the given action.action
- Action for which to get the files.- Returns:
- All files without directories from the specified previous actions.
-
getAttachmentsFromUploadElements
public List<Attachment> getAttachmentsFromUploadElements(IUploadConsuming consuming, Aktion action) throws Exception Deprecated.Description copied from interface:IConsumingFileHandler
Same asIConsumingFileHandler.getAttachmentsFromUploadElements(List, Aktion)
, but takes the arguments from the givenIUploadConsuming
belonging to the given action.- Specified by:
getAttachmentsFromUploadElements
in interfaceIConsumingFileHandler
- Parameters:
consuming
- A file consuming action.action
- The corresponding action entity.- Returns:
- A list of all attachments.
- Throws:
Exception
- When the attachments could not be retrieved.- See Also:
-
getAttachmentsFromUploadElements
public List<Attachment> getAttachmentsFromUploadElements(List<String> uploadElements, Aktion action) throws Exception Deprecated.Description copied from interface:IConsumingFileHandler
Returns a list of all attachments for the given upload elements. If no file was uploaded for a certain upload element, the attachment is omitted in the returned list.- Specified by:
getAttachmentsFromUploadElements
in interfaceIConsumingFileHandler
- Parameters:
uploadElements
- Upload elements the given action required. Must contain theFormElement.getAlias()
of the form upload element.action
- The current action that is being processed.- Returns:
- List of attachments.
- Throws:
Exception
- When the attachments could not be retrieved (from the database).
-
getFilesFromUploadElements
public List<File> getFilesFromUploadElements(IUploadConsuming consuming, Aktion action) throws Exception Deprecated.Description copied from interface:IConsumingFileHandler
Same asIConsumingFileHandler.getFilesFromUploadElements(List, Aktion)
, but takes the parameters from the givenIUploadConsuming
corresponding to the given action.- Specified by:
getFilesFromUploadElements
in interfaceIConsumingFileHandler
- Parameters:
consuming
- An action making use of uploads.action
- The corresponding action entity.- Returns:
- A list with all selected files that were uploaded.
- Throws:
Exception
- When the files could not be retrieved.- See Also:
-
getFilesFromUploadElements
public List<File> getFilesFromUploadElements(List<String> uploadElements, Aktion action) throws Exception Deprecated.Description copied from interface:IConsumingFileHandler
Returns a list of all files from the given upload elements. Upload elements with no uploaded file are skipped.- Specified by:
getFilesFromUploadElements
in interfaceIConsumingFileHandler
- Parameters:
uploadElements
- Upload elements the given action required. Must contain theFormElement.getAlias()
of the form upload element.action
- The current action that is being processed.- Returns:
- List of uploaded files.
- Throws:
Exception
- When the files could not be retrieved.
-
getDirWithUploadElements
Deprecated.Description copied from interface:IConsumingFileHandler
Same asIConsumingFileHandler.getDirWithUploadElements(IUploadConsuming, Aktion)
, but takes the parameters from the givenIUploadConsuming
corresponding to the given action.- Specified by:
getDirWithUploadElements
in interfaceIConsumingFileHandler
- Parameters:
consuming
- An action making use of uploads.action
- The corresponding action entity.- Returns:
- The selected upload file.
- Throws:
Exception
- When the directory could not be created or the files could not be written.- See Also:
-
getDirWithUploadElements
Deprecated.Description copied from interface:IConsumingFileHandler
Similar toIConsumingFileHandler.getFilesFromUploadElements(List, Aktion)
, but returns aFile
for the directory which contains all the uploaded elements.- Specified by:
getDirWithUploadElements
in interfaceIConsumingFileHandler
- Parameters:
uploadElements
- Upload elements the given action required. Must contain theFormElement.getAlias()
of the form upload element.action
- The current action that is being processed.- Returns:
- Directory with all the uploaded files.
- Throws:
Exception
- When the files could not be retrieved.- See Also:
-