Package de.xima.fc.workflow.model.nodes
Class MultiAttachment
- java.lang.Object
 - 
- de.xima.fc.workflow.model.nodes.MultiAttachment
 
 
- 
- All Implemented Interfaces:
 IMultiAttachmentProviding,IReferencedAttachmentList,Serializable
@NotEmptyIf(field="searchFilenamePattern", dependants="attachments", target=MultiAttachment.class, payload=searchFilenamePattern.class) public final class MultiAttachment extends Object implements Serializable, IMultiAttachmentProvidingModels a list of attachments that may come from multiple sources, such as uploads, creates by another action, or with a specific name.- Since:
 - 8.1.0
 - Author:
 - XIMA MEDIA GmbH
 - See Also:
 - Serialized Form
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMultiAttachment.attachmentsCustom label for thegetAttachments()property.static interfaceMultiAttachment.searchFilenamePatternCustom label for thegetSearchFilenamePattern()property. 
- 
Constructor Summary
Constructors Constructor Description MultiAttachment() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MultiAttachmentforAttachmentItems(AttachmentItem... items)Wraps the given attachment items into aMultiAttachmentinstance.List<AttachmentItem>getAttachments()Gets all attachment items pointing to the selected attachments.StringgetSearchFilenamePattern()Gets the pattern for searching for an attachment.List<EAttachmentSource>getSearchSourceTypes()Gets the attachment sources to which to restrict the search for attachments.booleanisAttachmentItemTypeSelected(EAttachmentItemType attachmentItemType)voidsetAttachments(List<AttachmentItem> attachments)Sets all attachment items pointing to the selected attachments.voidsetSearchFilenamePattern(String searchFilenamePattern)Sets the pattern for searching for an attachment, if anattachment itemof type *SEARCHexists.voidsetSearchSourceTypes(List<EAttachmentSource> searchSourceTypes)Sets the attachment source types to which to limit the search for attachments when anattachment itemof typeSEARCHis selected. 
 - 
 
- 
- 
Method Detail
- 
getAttachments
public List<AttachmentItem> getAttachments()
Description copied from interface:IReferencedAttachmentListGets all attachment items pointing to the selected attachments.- Specified by:
 getAttachmentsin interfaceIReferencedAttachmentList- Returns:
 - All attachment items.
 
 
- 
setAttachments
public void setAttachments(List<AttachmentItem> attachments)
Sets all attachment items pointing to the selected attachments.- Parameters:
 attachments- All attachment items.
 
- 
getSearchFilenamePattern
public String getSearchFilenamePattern()
Description copied from interface:IReferencedAttachmentListGets the pattern for searching for an attachment. Applies only if anattachment itemof typeSEARCHexists.nullor empty when no such attachment item exists.- Specified by:
 getSearchFilenamePatternin interfaceIReferencedAttachmentList- Returns:
 - Pattern for searching for an attachment.
 
 
- 
setSearchFilenamePattern
public void setSearchFilenamePattern(String searchFilenamePattern)
Sets the pattern for searching for an attachment, if anattachment itemof type *SEARCHexists.nullor empty when no such attachment item exists.- Parameters:
 searchFilenamePattern- Search pattern for the attachment search.
 
- 
getSearchSourceTypes
@Nonnull public List<EAttachmentSource> getSearchSourceTypes()
Description copied from interface:IReferencedAttachmentListGets the attachment sources to which to restrict the search for attachments. Applies only if anattachment itemof typeSEARCHexists.- Specified by:
 getSearchSourceTypesin interfaceIReferencedAttachmentList- Returns:
 - The attachment types to which to limit the search for attachments.
 
 
- 
setSearchSourceTypes
public void setSearchSourceTypes(List<EAttachmentSource> searchSourceTypes)
Sets the attachment source types to which to limit the search for attachments when anattachment itemof typeSEARCHis selected.- Parameters:
 searchSourceTypes- Attachment sources to which to limit the search.
 
- 
isAttachmentItemTypeSelected
public boolean isAttachmentItemTypeSelected(EAttachmentItemType attachmentItemType)
- Specified by:
 isAttachmentItemTypeSelectedin interfaceIMultiAttachmentProviding- Parameters:
 attachmentItemType- A string that can be converted into aEAttachmentItemType.- Returns:
 trueif there is at least one element with the specified attachment item type in the list of attachments. Otherwise, returnsfalse.
 
- 
forAttachmentItems
public static MultiAttachment forAttachmentItems(AttachmentItem... items)
Wraps the given attachment items into aMultiAttachmentinstance.- Parameters:
 items- Attachment items to wrap.- Returns:
 - A new 
MultiAttachmentinstance. 
 
 - 
 
 -