Class AttachmentItem


  • @NotNullIf(field="nodeKey",dependants="type",target=AttachmentItem.class,payload=de.xima.fc.mdl.resource.AttachmentItem.nodeKey.class) @NotNullIf(field="identifier",dependants="type",target=AttachmentItem.class,payload=de.xima.fc.mdl.resource.AttachmentItem.identifier.class)
    public final class AttachmentItem
    extends Object
    Models the descriptor for an attachment reference that can be selected in the configuration UI of some workflow actions.
    Since:
    8.1.0
    Author:
    XIMA MEDIA GmbH
    • Constructor Detail

      • AttachmentItem

        public AttachmentItem()
    • Method Detail

      • getIdentifier

        public String getIdentifier()
        Returns:
        identifier which uniquely identifies an element
      • setIdentifier

        public void setIdentifier​(String identifier)
        Parameters:
        identifier - which uniquely identifies an element
      • getNodeKey

        public NodeKey getNodeKey()
        Returns:
        the identifier
      • setNodeKey

        public void setNodeKey​(NodeKey nodeKey)
        Parameters:
        nodeKey - the identifier
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • forSearch

        public static AttachmentItem forSearch()
        Returns:
        A new attachment item for searching an attachment via its name or type.
      • forUploadElement

        public static AttachmentItem forUploadElement​(String identifier)
        Parameters:
        identifier - The name of the file upload form element.
        Returns:
        A new attachment item for the attachments created from an upload element.
      • forWorkflowNode

        public static AttachmentItem forWorkflowNode​(NodeKey nodeKey)
        Parameters:
        nodeKey - Key of the node to reference.
        Returns:
        A new attachment item representing the attachments produced by a previously executed workflow node.
      • forWorkflowNode

        public static AttachmentItem forWorkflowNode​(WorkflowNode node)
        Parameters:
        node - Node to reference.
        Returns:
        A new resource item representing the files produced by a workflow node.