This class is responsible for creating the {link @Metadata} objects either from the Payload or from the value stored in a property.
| Type | Name and description |
|---|---|
java.lang.String |
metadataPathThis is a path to the property where the metadata specified by current context and configuration is stored |
java.util.ArrayList<java.lang.String> |
payloadKeysPayload keys that should be stored in a metadata |
| Constructor and description |
|---|
MetadataFactory
(java.util.Map initValues)Constructor |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.String |
buildMetadataName(java.lang.String pluginName, java.lang.String uniqueKey, java.util.ArrayList<java.lang.String> reportObjectTypes)Builds a context and configuration specific name of the metadata property. |
|
Metadata |
newFromLocation()Reads and validates value from the CloudBees CD property that will be converted to a Metadata instance. |
|
Metadata |
newMetadataFromPayload(Payload payload)This method creates new Metadata from given Payload object. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
This is a path to the property where the metadata specified by current context and configuration is stored
Payload keys that should be stored in a metadata
Constructor
initValues - Map with the following keys: Builds a context and configuration specific name of the metadata property.
pluginName - name of the plugin where Reporting is implementeduniqueKey - unique name of the metadata to distinguish it between other DOIS datasource's metadatareportObjectTypes - object types are a part of the metadata nameReads and validates value from the CloudBees CD property that will be converted to a Metadata instance.
Groovy Documentation