Interface IFileValueDescriptor
- All Superinterfaces:
IAttributeConfigurable<IFileValueDescriptor>, Serializable
- All Known Implementing Classes:
FileValueDescriptor
public interface IFileValueDescriptor
extends IAttributeConfigurable<IFileValueDescriptor>, Serializable
Descriptor for the files provided by a workflow element, such as the files made available when a trigger fires or
when a workflow node gets executed.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanWhether this file value descriptor allows any files at all.builder()Creates a builder for building a file value that conforms to this file value descriptor.default IFileListDescriptorGets the file descriptor for any additional files that may be provided by the workflow element, under keys not listed ingetFiles().Deprecated.default Map<String, IFileListDescriptor> getFiles()Gets the descriptor for the list of files provided by the workflow element.intersect(IFileValueDescriptor other) Intersects this file value descriptor with another file value descriptor.Methods inherited from interface IAttributeConfigurable
getAttribute, getAttribute, getAttributes, getBooleanAttribute, getBooleanAttribute, getFloatAttribute, getFloatAttribute, getIntegerAttribute, getIntegerAttribute, getStringAttribute, getStringAttribute, withAddedAttribute, withAddedAttributes, withAttributes
-
Field Details
-
DEFAULT_FILE_KEY
-
-
Method Details
-
allowsAnyFiles
default boolean allowsAnyFiles()Whether this file value descriptor allows any files at all. This usually returns true, but may return false, for example, when the map of files is empty.- Returns:
- Whether this file value descriptor allows any files.
- Since:
- 8.2.0
-
builder
IFileValueBuilder builder()Creates a builder for building a file value that conforms to this file value descriptor.- Returns:
- A builder for building a file value that conforms to this file value descriptor.
- Since:
- 8.2.0
-
getAdditionalFiles
Gets the file descriptor for any additional files that may be provided by the workflow element, under keys not listed ingetFiles(). This may be used when the keys of the files are not known in advance or any keys are allowed. If this method returns null, no additional files are allowed.- Returns:
- The file descriptor for any additional files that may be provided by the workflow element, or null if no additional files are allowed.
- Since:
- 8.5.0
-
getDescriptionI18n
Deprecated.UsegetFiles()instead and access theattributesof the individual file lists instead. The description attribute is stored under the keyVALUE_DESCRIPTOR_ATTR_DESCRIPTION.Gets the I18n key pointing to a description for the file.- Returns:
- I18n key pointing to a description for the file.
-
getFiles
Gets the descriptor for the list of files provided by the workflow element. Different types of files may be provided. The map key is an internal technical identifier for the file type. UseDEFAULT_FILE_KEYas the key for the default list of files. For example, a workflow action that creates a certificate might provide different a file for the certificate signing request, a file for the private key, and a file for the public key.- Returns:
- The descriptor for the list of files provided by the workflow element.
- Since:
- 8.2.0
-
intersect
Intersects this file value descriptor with another file value descriptor. The intersection of two file value descriptors is a new value list descriptor that only allows files that are allowed by both file list descriptors. When the two file value descriptors are incompatible, returns anemptydescriptor.- Parameters:
other- The other file value descriptor to intersect with.- Returns:
- The intersection of this file value descriptor with the other file value descriptor.
-
getFiles()instead and access theattributesof the individual file lists instead.