Class AttachmentDescriptor
java.lang.Object
de.xima.fc.workflow.processor.value.wrapper.RecordValueDescriptorWrapper
de.xima.fc.workflow.processor.value.common.AttachmentDescriptor
- All Implemented Interfaces:
IAttributeConfigurable<IValueDescriptor<Map<String,?>, IRecordValueBuilder>>, IRecordValueDescriptor, IValueDescriptor<Map<String, ?>, IRecordValueBuilder>, Serializable
A
IValueDescriptor for the metadata of an attachment, consisting of its UUID, source, and
optionally a file. The default does not contain referenced entities.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for creating a value that conforms to theAttachmentDescriptorvalue descriptor. -
Field Summary
Fields inherited from class RecordValueDescriptorWrapper
delegate -
Method Summary
Modifier and TypeMethodDescriptionstatic AttachmentDescriptor.BuildervalueAttachment(Attachment attachment) Creates a value that conforms to theAttachmentDescriptorvalue descriptor.static AttachmentDescriptor.BuildervalueAttachment(String uuid, String source) Creates a value that conforms to theAttachmentDescriptorvalue descriptor.static AttachmentDescriptor.BuildervalueAttachment(UUID uuid, EAttachmentSource source) Creates a value that conforms to theAttachmentDescriptorvalue descriptor.withFileItem(FileItemDescriptor fileItemDescriptor) Derives a newAttachmentDescriptorfrom this descriptor with the file property added, corresponding toAttachment.getFileEntity().Methods inherited from class RecordValueDescriptorWrapper
acceptsValue, acceptsValue, asAny, asBoolean, asConst, asFloat, asInteger, asLargeString, asList, asList, asMap, asMap, asNull, asRecord, asString, asTuple, asUnion, asUnion, asVoid, builder, builder, configure, getAttribute, getAttribute, getAttributes, getBaseType, getBooleanAttribute, getBooleanAttribute, getDefaultValue, getDescription, getFloatAttribute, getFloatAttribute, getFullType, getFullTypeWithRestrictions, getIntegerAttribute, getIntegerAttribute, getJavaClass, getKnownProperties, getKnownProperties, getRecordValueDescriptors, getStringAttribute, getStringAttribute, intersect, is, match, toString, unwrap, withAddedAttribute, withAddedAttributes, withAttributes, withDefaultValue, withDescription
-
Method Details
-
withFileItem
Derives a newAttachmentDescriptorfrom this descriptor with the file property added, corresponding toAttachment.getFileEntity().- Parameters:
fileItemDescriptor- The file item descriptor.- Returns:
- A new descriptor with the attachments property added.
-
valueAttachment
Creates a value that conforms to theAttachmentDescriptorvalue descriptor.- Parameters:
attachment- An attachment.- Returns:
- A file item value conforming to
AttachmentDescriptor.
-
valueAttachment
Creates a value that conforms to theAttachmentDescriptorvalue descriptor.- Parameters:
uuid- UUID of the attachment.source- Source of the attachment.- Returns:
- A file item value conforming to
valueAttachment(Attachment).
-
valueAttachment
Creates a value that conforms to theAttachmentDescriptorvalue descriptor.- Parameters:
uuid- UUID of the attachment.source- Source of the attachment.- Returns:
- A file item value conforming to
valueAttachment(Attachment).
-