Class AnyTask
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<P>
com.atlassian.bamboo.specs.api.builders.task.Task<AnyTask,AnyTaskProperties>
com.atlassian.bamboo.specs.api.builders.task.AnyTask
Represents a task of any type.
Since knowledge of internal representation of plugin data is required to properly construct this object, this class should only be used if the specialised implementation of a given task type is not available.
-
Field Summary
Fields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, requirements, taskEnabled
-
Constructor Summary
ConstructorDescriptionAnyTask
(@NotNull AtlassianModule atlassianPlugin) Specifies a task of given type. -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull AnyTaskProperties
build()
configuration
(Map<String, String> configuration) Appends the generic configuration to the task.boolean
int
hashCode()
Methods inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, enabled, requirements, toString
-
Constructor Details
-
AnyTask
-
AnyTask
public AnyTask(@NotNull @NotNull AtlassianModule atlassianPlugin) throws PropertiesValidationException Specifies a task of given type.- Parameters:
atlassianPlugin
- type of the task identified by its plugin module key- Throws:
PropertiesValidationException
- See Also:
-
-
Method Details
-
configuration
Appends the generic configuration to the task.The configuration should be in the format used by respective plugin. No syntactical nor semantic validation is performed on the source data. The configuration is stored 'as is' in the Bamboo DB.
-
build
- Specified by:
build
in classTask<AnyTask,
AnyTaskProperties> - Throws:
PropertiesValidationException
-
equals
- Overrides:
equals
in classTask<AnyTask,
AnyTaskProperties>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classTask<AnyTask,
AnyTaskProperties>
-