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 Modifier and Type Field Description static StringDEFAULT_FILE_KEYThe key for the default list of files.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default booleanallowsAnyFiles()Whether this file value descriptor allows any files at all.IFileValueBuilderbuilder()Creates a builder for building a file value that conforms to this file value descriptor.default IFileListDescriptorgetAdditionalFiles()Gets the file descriptor for any additional files that may be provided by the workflow element, under keys not listed ingetFiles().StringgetDescriptionI18n()Deprecated.UsegetFiles()instead and access theattributesof the individual file lists instead.default Map<String,IFileListDescriptor>getFiles()Gets the descriptor for the list of files provided by the workflow element.IFileValueDescriptorintersect(IFileValueDescriptor other)Intersects this file value descriptor with another file value descriptor.-
Methods inherited from interface de.xima.fc.interfaces.workflow.value.IAttributeConfigurable
getAttribute, getAttribute, getAttributes, getBooleanAttribute, getBooleanAttribute, getFloatAttribute, getFloatAttribute, getIntegerAttribute, getIntegerAttribute, getStringAttribute, getStringAttribute, withAddedAttribute, withAddedAttributes, withAttributes
-
-
-
-
Field Detail
-
DEFAULT_FILE_KEY
static final String DEFAULT_FILE_KEY
The key for the default list of files.- Since:
- 8.2.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
default IFileListDescriptor 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 String 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
default Map<String,IFileListDescriptor> 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
IFileValueDescriptor intersect(IFileValueDescriptor other)
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.
-
-