Package de.xima.fc.mdl.resource
Class AttachmentItem
java.lang.Object
de.xima.fc.mdl.resource.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic AttachmentItemstatic AttachmentItemforUploadElement(String identifier) static AttachmentItemforWorkflowNode(WorkflowNode node) static AttachmentItemforWorkflowNode(NodeKey nodeKey) getType()inthashCode()voidsetIdentifier(String identifier) voidsetNodeKey(NodeKey nodeKey) voidsetType(EAttachmentItemType type) toString()
-
Constructor Details
-
AttachmentItem
public AttachmentItem()
-
-
Method Details
-
equals
-
getIdentifier
- Returns:
- identifier which uniquely identifies an element
-
setIdentifier
- Parameters:
identifier- which uniquely identifies an element
-
getNodeKey
- Returns:
- the identifier
-
setNodeKey
- Parameters:
nodeKey- the identifier
-
getType
- Returns:
EAttachmentItemType
-
setType
- Parameters:
type- aEAttachmentItemType
-
hashCode
public int hashCode() -
toString
-
forSearch
- Returns:
- A new attachment item for searching an attachment via its name or type.
-
forUploadElement
- Parameters:
identifier- The name of the file upload form element.- Returns:
- A new attachment item for the attachments created from an upload element.
-
forWorkflowNode
- Parameters:
nodeKey- Key of the node to reference.- Returns:
- A new attachment item representing the attachments produced by a previously executed workflow node.
-
forWorkflowNode
- Parameters:
node- Node to reference.- Returns:
- A new resource item representing the files produced by a workflow node.
-