@Internal public class TaskDefinitionImpl extends Object implements TaskDefinition
DISABLED, ENABLED
Constructor and Description |
---|
TaskDefinitionImpl(long id,
String pluginKey,
String userDescription,
boolean isEnabled,
List<TaskConditionConfig> conditions,
Map<String,String> configuration,
boolean finalising) |
TaskDefinitionImpl(long id,
String pluginKey,
String userDescription,
boolean isEnabled,
List<TaskConditionConfig> conditions,
Map<String,String> configuration,
boolean finalising,
TaskRootDirectorySelector taskRootDirectorySelector) |
TaskDefinitionImpl(long id,
String pluginKey,
String userDescription,
boolean isEnabled,
Map<String,String> configuration) |
TaskDefinitionImpl(long id,
String pluginKey,
String userDescription,
boolean isEnabled,
Map<String,String> configuration,
boolean finalising) |
TaskDefinitionImpl(long id,
String pluginKey,
String userDescription,
boolean isEnabled,
Map<String,String> configuration,
boolean finalising,
TaskRootDirectorySelector taskRootDirectorySelector) |
TaskDefinitionImpl(long id,
String pluginKey,
String userDescription,
Map<String,String> taskConfigMap) |
TaskDefinitionImpl(long id,
String pluginKey,
String userDescription,
Map<String,String> configuration,
boolean finalising) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object obj) |
boolean |
equals(Object o) |
List<TaskConditionConfig> |
getConditions() |
Map<String,String> |
getConfiguration()
Represents the raw configuration data for this configuration.
|
long |
getId() |
BambooEntityOid |
getOid()
OID assigned to this object.
|
String |
getPluginKey() |
TaskRootDirectorySelector |
getRootDirectorySelector() |
String |
getUserDescription() |
int |
hashCode() |
boolean |
isEnabled() |
boolean |
isFinalising() |
void |
setConditions(List<TaskConditionConfig> conditions) |
void |
setConfiguration(Map<String,String> configuration) |
void |
setEnabled(boolean isEnabled)
Tells bamboo whether this task should run as a part of this build or not.
|
void |
setFinalising(boolean finalising) |
void |
setOid(BambooEntityOid oid)
Assign a new
BambooEntityOid to this object. |
void |
setRootDirectorySelector(TaskRootDirectorySelector rootDirectorySelector) |
void |
setUserDescription(String userDescription) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getEntityType
public TaskDefinitionImpl(long id, @NotNull String pluginKey, @Nullable String userDescription, @NotNull Map<String,String> taskConfigMap)
public TaskDefinitionImpl(long id, @NotNull String pluginKey, @Nullable String userDescription, boolean isEnabled, @NotNull Map<String,String> configuration)
public TaskDefinitionImpl(long id, @NotNull String pluginKey, @Nullable String userDescription, boolean isEnabled, @NotNull Map<String,String> configuration, boolean finalising)
public TaskDefinitionImpl(long id, @NotNull String pluginKey, @Nullable String userDescription, boolean isEnabled, @NotNull List<TaskConditionConfig> conditions, @NotNull Map<String,String> configuration, boolean finalising)
public TaskDefinitionImpl(long id, @NotNull String pluginKey, @Nullable String userDescription, @NotNull Map<String,String> configuration, boolean finalising)
public TaskDefinitionImpl(long id, @NotNull String pluginKey, @Nullable String userDescription, boolean isEnabled, @NotNull Map<String,String> configuration, boolean finalising, @NotNull TaskRootDirectorySelector taskRootDirectorySelector)
public TaskDefinitionImpl(long id, @NotNull String pluginKey, @Nullable String userDescription, boolean isEnabled, @NotNull List<TaskConditionConfig> conditions, @NotNull Map<String,String> configuration, boolean finalising, @NotNull TaskRootDirectorySelector taskRootDirectorySelector)
public long getId()
getId
in interface TaskIdentifier
Job
@NotNull public String getPluginKey()
getPluginKey
in interface PluginKeyProvider
getPluginKey
in interface TaskIdentifier
@Nullable public String getUserDescription()
getUserDescription
in interface TaskIdentifier
public void setUserDescription(@Nullable String userDescription)
setUserDescription
in interface TaskDefinition
public boolean isEnabled()
isEnabled
in interface TaskIdentifier
public void setEnabled(boolean isEnabled)
TaskDefinition
setEnabled
in interface TaskDefinition
@NotNull public List<TaskConditionConfig> getConditions()
getConditions
in interface TaskDefinition
public void setConditions(@NotNull List<TaskConditionConfig> conditions)
setConditions
in interface TaskDefinition
@NotNull public Map<String,String> getConfiguration()
TaskDefinition
getConfiguration
in interface TaskDefinition
public void setConfiguration(@NotNull Map<String,String> configuration)
setConfiguration
in interface TaskDefinition
public boolean isFinalising()
isFinalising
in interface TaskIdentifier
public void setFinalising(boolean finalising)
setFinalising
in interface TaskDefinition
@NotNull public TaskRootDirectorySelector getRootDirectorySelector()
getRootDirectorySelector
in interface TaskDefinition
public void setRootDirectorySelector(@NotNull TaskRootDirectorySelector rootDirectorySelector)
setRootDirectorySelector
in interface TaskDefinition
public int compareTo(Object obj)
public void setOid(BambooEntityOid oid)
EntityWithOid
BambooEntityOid
to this object. The BambooEntityOid.getEntityType()
should be the
same as this object's ImmutableEntityWithOid.getEntityType()
.setOid
in interface EntityWithOid
public BambooEntityOid getOid()
ImmutableEntityWithOid
BambooEntityOid.getEntityType()
should be the same as this object's
ImmutableEntityWithOid.getEntityType()
.getOid
in interface ImmutableEntityWithOid
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.