Class ResolvedAttachmentItem
java.lang.Object
de.xima.fc.workflow.processor.model.ResolvedAttachmentItem
- All Implemented Interfaces:
IAttachmentItemResolutionErrorProviding
,IResolvedAttachmentItem
Default POJO implementation of
IResolvedAttachmentItem
.- Since:
- 8.1.0
- Author:
- XIMA MEDIA GmbH
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder
(AttachmentItem AttachmentItem) Creates a builder to buildResolvedAttachmentItem
.Retrieves all attachments that were found for the attachment item.static IResolvedAttachmentItem
static IResolvedAttachmentItem
ofSuccess
(AttachmentItem item, ResolvedAttachment attachment) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.xima.fc.interfaces.workflow.retval.IAttachmentItemResolutionErrorProviding
getErrors, getErrorsAttachmentCountReducedTozeroByFilterOptions, getErrorsAttachmentFilterDoesNotMatch, getErrorsCannotProcessAttachmentItem, getErrorsCannotProcessAttachmentList, getErrorsDatabaseError, getErrorsFileSystemError, getErrorsNodeDoesNotExist, getErrorsNodeDoesNotProvideAttachments, getErrorsNodeNotExecuted, getErrorsUploadFieldDoesNotExist, getErrorsUploadFieldDoesNotProvideAttachments, isHasError
-
Method Details
-
getAttachmentItem
- Specified by:
getAttachmentItem
in interfaceIResolvedAttachmentItem
- Returns:
- The attachment item that was resolved.
-
getErrors
- Specified by:
getErrors
in interfaceIAttachmentItemResolutionErrorProviding
- Returns:
- All errors that occurred during the attachment item's resolution.
-
getIndividualAttachments
Description copied from interface:IResolvedAttachmentItem
Retrieves all attachments that were found for the attachment item. This is done on a best-effort basis. When theerrors
are not empty, this list may contain only some of the attachments referenced by the attachment item.- Specified by:
getIndividualAttachments
in interfaceIResolvedAttachmentItem
- Returns:
- A list of all attachments that were found for the attachment item.
-
builder
Creates a builder to buildResolvedAttachmentItem
.- Parameters:
AttachmentItem
- The attachment item that is being resolved.- Returns:
- A new builder.
-
ofError
public static IResolvedAttachmentItem ofError(AAttachmentListResolutionError.AAttachmentItemResolutionError error) - Parameters:
error
- Error that occurred.- Returns:
- A new resolved attachment item with a single error and no attachments.
-
ofSuccess
- Parameters:
item
- Item that was resolved.attachment
- Attachment that was obtained.- Returns:
- A new resolved attachment item with a single attachment and no errors.
-