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, IMultiAttachmentProviding
Models 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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceCustom label for thegetAttachments()property.static interfaceCustom label for thegetSearchFilenamePattern()property. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets all attachment items pointing to the selected attachments.Gets the pattern for searching for an attachment.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.
-
Constructor Details
-
MultiAttachment
public MultiAttachment()
-
-
Method Details
-
getAttachments
Description copied from interface:IReferencedAttachmentListGets all attachment items pointing to the selected attachments.- Specified by:
getAttachmentsin interfaceIReferencedAttachmentList- Returns:
- All attachment items.
-
setAttachments
Sets all attachment items pointing to the selected attachments.- Parameters:
attachments- All attachment items.
-
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
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
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
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
- 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.
-