Class ResolvedAttachmentItem
- java.lang.Object
 - 
- de.xima.fc.workflow.processor.model.ResolvedAttachmentItem
 
 
- 
- All Implemented Interfaces:
 IAttachmentItemResolutionErrorProviding,IResolvedAttachmentItem
public class ResolvedAttachmentItem extends Object implements IResolvedAttachmentItem
Default POJO implementation ofIResolvedAttachmentItem.- Since:
 - 8.1.0
 - Author:
 - XIMA MEDIA GmbH
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResolvedAttachmentItem.BuilderBuilder to buildResolvedAttachmentItem. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResolvedAttachmentItem.Builderbuilder(AttachmentItem AttachmentItem)Creates a builder to buildResolvedAttachmentItem.AttachmentItemgetAttachmentItem()Map<EAttachmentItemResolutionError,List<AAttachmentListResolutionError>>getErrors()List<IResolvedAttachment>getIndividualAttachments()Retrieves all attachments that were found for the attachment item.static IResolvedAttachmentItemofError(AAttachmentListResolutionError.AAttachmentItemResolutionError error)static IResolvedAttachmentItemofSuccess(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 Detail
- 
getAttachmentItem
public AttachmentItem getAttachmentItem()
- Specified by:
 getAttachmentItemin interfaceIResolvedAttachmentItem- Returns:
 - The attachment item that was resolved.
 
 
- 
getErrors
public Map<EAttachmentItemResolutionError,List<AAttachmentListResolutionError>> getErrors()
- Specified by:
 getErrorsin interfaceIAttachmentItemResolutionErrorProviding- Returns:
 - All errors that occurred during the attachment item's resolution.
 
 
- 
getIndividualAttachments
public List<IResolvedAttachment> getIndividualAttachments()
Description copied from interface:IResolvedAttachmentItemRetrieves all attachments that were found for the attachment item. This is done on a best-effort basis. When theerrorsare not empty, this list may contain only some of the attachments referenced by the attachment item.- Specified by:
 getIndividualAttachmentsin interfaceIResolvedAttachmentItem- Returns:
 - A list of all attachments that were found for the attachment item.
 
 
- 
builder
public static ResolvedAttachmentItem.Builder builder(AttachmentItem AttachmentItem)
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
public static IResolvedAttachmentItem ofSuccess(AttachmentItem item, ResolvedAttachment attachment)
- Parameters:
 item- Item that was resolved.attachment- Attachment that was obtained.- Returns:
 - A new resolved attachment item with a single attachment and no errors.
 
 
 - 
 
 -