Class AttachmentDescriptor
- java.lang.Object
-
- de.xima.fc.workflow.processor.value.wrapper.RecordValueDescriptorWrapper
-
- de.xima.fc.workflow.processor.value.common.AttachmentDescriptor
-
- All Implemented Interfaces:
IRecordValueDescriptor
,IValueDescriptor<Map<String,?>,IRecordValueBuilder>
,Serializable
public final class AttachmentDescriptor extends RecordValueDescriptorWrapper
AIValueDescriptor
for the metadata of anattachment
, consisting of its UUID, source, and optionally a file. The default does not contain referenced entities.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AttachmentDescriptor.Builder
Builder for creating a value that conforms to theAttachmentDescriptor
value descriptor.
-
Field Summary
-
Fields inherited from class de.xima.fc.workflow.processor.value.wrapper.RecordValueDescriptorWrapper
delegate
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AttachmentDescriptor.Builder
valueAttachment(Attachment attachment)
Creates a value that conforms to theAttachmentDescriptor
value descriptor.static AttachmentDescriptor.Builder
valueAttachment(String uuid, String source)
Creates a value that conforms to theAttachmentDescriptor
value descriptor.static AttachmentDescriptor.Builder
valueAttachment(UUID uuid, EAttachmentSource source)
Creates a value that conforms to theAttachmentDescriptor
value descriptor.AttachmentDescriptor
withFileItem(FileItemDescriptor fileItemDescriptor)
Derives a newAttachmentDescriptor
from this descriptor with the file property added, corresponding toAttachment.getFileEntity()
.-
Methods inherited from class de.xima.fc.workflow.processor.value.wrapper.RecordValueDescriptorWrapper
acceptsValue, asAny, asBoolean, asConst, asFloat, asInteger, asLargeString, asList, asList, asMap, asMap, asNull, asRecord, asString, asTuple, asUnion, asUnion, asVoid, builder, configure, getBaseType, getDefaultValue, getDescription, getFullType, getJavaClass, getKnownProperties, getKnownProperties, getRecordValueDescriptors, intersect, is, toString, unwrap, withDefaultValue, withDescription
-
-
-
-
Method Detail
-
withFileItem
public AttachmentDescriptor withFileItem(FileItemDescriptor fileItemDescriptor)
Derives a newAttachmentDescriptor
from 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
public static AttachmentDescriptor.Builder valueAttachment(Attachment attachment)
Creates a value that conforms to theAttachmentDescriptor
value descriptor.- Parameters:
attachment
- An attachment.- Returns:
- A file item value conforming to
AttachmentDescriptor
.
-
valueAttachment
public static AttachmentDescriptor.Builder valueAttachment(UUID uuid, EAttachmentSource source)
Creates a value that conforms to theAttachmentDescriptor
value descriptor.- Parameters:
uuid
- UUID of the attachment.source
- Source of the attachment.- Returns:
- A file item value conforming to
valueAttachment(de.xima.fc.entities.Attachment)
.
-
valueAttachment
public static AttachmentDescriptor.Builder valueAttachment(String uuid, String source)
Creates a value that conforms to theAttachmentDescriptor
value descriptor.- Parameters:
uuid
- UUID of the attachment.source
- Source of the attachment.- Returns:
- A file item value conforming to
valueAttachment(de.xima.fc.entities.Attachment)
.
-
-