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:
  • Constructor Details

    • MultiAttachment

      public MultiAttachment()
  • Method Details

    • getAttachments

      public List<AttachmentItem> getAttachments()
      Description copied from interface: IReferencedAttachmentList
      Gets all attachment items pointing to the selected attachments.
      Specified by:
      getAttachments in interface IReferencedAttachmentList
      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: IReferencedAttachmentList
      Gets the pattern for searching for an attachment. Applies only if an attachment item of type SEARCH exists. null or empty when no such attachment item exists.
      Specified by:
      getSearchFilenamePattern in interface IReferencedAttachmentList
      Returns:
      Pattern for searching for an attachment.
    • setSearchFilenamePattern

      public void setSearchFilenamePattern(String searchFilenamePattern)
      Sets the pattern for searching for an attachment, if an attachment item of type * SEARCH exists. null or 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: IReferencedAttachmentList
      Gets the attachment sources to which to restrict the search for attachments. Applies only if an attachment item of type SEARCH exists.
      Specified by:
      getSearchSourceTypes in interface IReferencedAttachmentList
      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 an attachment item of type SEARCH is selected.
      Parameters:
      searchSourceTypes - Attachment sources to which to limit the search.
    • isAttachmentItemTypeSelected

      public boolean isAttachmentItemTypeSelected(EAttachmentItemType attachmentItemType)
      Specified by:
      isAttachmentItemTypeSelected in interface IMultiAttachmentProviding
      Parameters:
      attachmentItemType - A string that can be converted into a EAttachmentItemType.
      Returns:
      true if there is at least one element with the specified attachment item type in the list of attachments. Otherwise, returns false.