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
-
public class AnyTask extends Task<AnyTask,AnyTaskProperties>
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
Constructors Constructor Description AnyTask(@NotNull AtlassianModule atlassianPlugin)Specifies a task of given type.AnyTask(@NotNull AnyTask copy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @NotNull AnyTaskPropertiesbuild()AnyTaskconfiguration(java.util.Map<java.lang.String,java.lang.String> configuration)Appends the generic configuration to the task.booleanequals(java.lang.Object o)inthashCode()-
Methods inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, enabled, requirements, toString
-
-
-
-
Constructor Detail
-
AnyTask
public AnyTask(@NotNull @NotNull AnyTask copy)
-
AnyTask
public AnyTask(@NotNull @NotNull AtlassianModule atlassianPlugin) throws PropertiesValidationExceptionSpecifies a task of given type.- Parameters:
atlassianPlugin- type of the task identified by its plugin module key- Throws:
PropertiesValidationException- See Also:
AtlassianModule
-
-
Method Detail
-
configuration
public AnyTask configuration(java.util.Map<java.lang.String,java.lang.String> 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
@NotNull protected @NotNull AnyTaskProperties build() throws PropertiesValidationException
- Specified by:
buildin classTask<AnyTask,AnyTaskProperties>- Throws:
PropertiesValidationException
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classTask<AnyTask,AnyTaskProperties>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classTask<AnyTask,AnyTaskProperties>
-
-