public class AnyTask extends Task<AnyTask,AnyTaskProperties>
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.
conditions, description, requirements, taskEnabled
Constructor and Description |
---|
AnyTask(AnyTask copy) |
AnyTask(AtlassianModule atlassianPlugin)
Specifies a task of given type.
|
Modifier and Type | Method and Description |
---|---|
protected AnyTaskProperties |
build() |
AnyTask |
configuration(Map<String,String> configuration)
Appends the generic configuration to the task.
|
boolean |
equals(Object o) |
int |
hashCode() |
conditions, description, enabled, requirements, toString
public AnyTask(@NotNull AnyTask copy)
public AnyTask(@NotNull AtlassianModule atlassianPlugin) throws PropertiesValidationException
atlassianPlugin
- type of the task identified by its plugin module keyPropertiesValidationException
AtlassianModule
public AnyTask configuration(Map<String,String> configuration)
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.
@NotNull protected AnyTaskProperties build() throws PropertiesValidationException
build
in class Task<AnyTask,AnyTaskProperties>
PropertiesValidationException
public boolean equals(Object o)
equals
in class Task<AnyTask,AnyTaskProperties>
public int hashCode()
hashCode
in class Task<AnyTask,AnyTaskProperties>
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.