Package com.atlassian.bamboo.task
Class ImmutableTaskDefinition
java.lang.Object
com.atlassian.bamboo.task.ImmutableTaskDefinition
- All Implemented Interfaces:
EntityWithOid,ImmutableEntityWithOid,PluginKeyProvider,TaskDefinition,TaskIdentifier,Serializable
Immutable
TaskDefinition implementation- See Also:
-
Field Summary
Fields inherited from interface com.atlassian.bamboo.task.TaskDefinition
DISABLED, ENABLED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull List<TaskConditionConfig>Represents the raw configuration data for this configuration.longgetId()getOid()OID assigned to this object.@NotNull String@NotNull TaskRootDirectorySelector@Nullable StringbooleanbooleanvoidsetConditions(@NotNull List<TaskConditionConfig> conditions) voidsetConfiguration(@NotNull Map<String, String> configuration) voidsetEnabled(boolean isEnabled) Tells bamboo whether this task should run as a part of this build or not.voidsetFinalising(boolean finalising) voidsetOid(BambooEntityOid oid) Assign a newBambooEntityOidto this object.voidsetRootDirectorySelector(@NotNull TaskRootDirectorySelector taskRootDirectorySelector) voidsetUserDescription(@Nullable String userDescription) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.task.TaskDefinition
getEntityType
-
Constructor Details
-
ImmutableTaskDefinition
-
-
Method Details
-
getConfiguration
Description copied from interface:TaskDefinitionRepresents the raw configuration data for this configuration. No variables are substituted.- Specified by:
getConfigurationin interfaceTaskDefinition- Returns:
- the plugin defined configuration for this task
-
getId
public long getId()- Specified by:
getIdin interfaceTaskIdentifier- Returns:
- the id of this configuration. Unique within the given context (e.g.
Job
-
getPluginKey
- Specified by:
getPluginKeyin interfacePluginKeyProvider- Specified by:
getPluginKeyin interfaceTaskIdentifier- Returns:
- Complete key of the task type plugin module
-
getUserDescription
- Specified by:
getUserDescriptionin interfaceTaskIdentifier- Returns:
- the description of the task as defined by the user
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceTaskIdentifier- Returns:
- whether the task is enabled or disabled
-
isFinalising
public boolean isFinalising()- Specified by:
isFinalisingin interfaceTaskIdentifier- Returns:
- true if the task should be run in finalisation phase
-
getRootDirectorySelector
- Specified by:
getRootDirectorySelectorin interfaceTaskDefinition- Returns:
- data defining tasks' root directory
-
getOid
Description copied from interface:ImmutableEntityWithOidOID assigned to this object. TheBambooEntityOid.getEntityType()should be the same as this object'sImmutableEntityWithOid.getEntityType().- Specified by:
getOidin interfaceImmutableEntityWithOid
-
setOid
Description copied from interface:EntityWithOidAssign a newBambooEntityOidto this object. TheBambooEntityOid.getEntityType()should be the same as this object'sImmutableEntityWithOid.getEntityType().- Specified by:
setOidin interfaceEntityWithOid
-
setUserDescription
- Specified by:
setUserDescriptionin interfaceTaskDefinition
-
setEnabled
public void setEnabled(boolean isEnabled) Description copied from interface:TaskDefinitionTells bamboo whether this task should run as a part of this build or not.- Specified by:
setEnabledin interfaceTaskDefinition
-
setFinalising
public void setFinalising(boolean finalising) - Specified by:
setFinalisingin interfaceTaskDefinition
-
setConfiguration
- Specified by:
setConfigurationin interfaceTaskDefinition
-
setConditions
- Specified by:
setConditionsin interfaceTaskDefinition
-
getConditions
- Specified by:
getConditionsin interfaceTaskDefinition- Returns:
- task conditions. UI supports only one condition per task.
-
setRootDirectorySelector
public void setRootDirectorySelector(@NotNull @NotNull TaskRootDirectorySelector taskRootDirectorySelector) - Specified by:
setRootDirectorySelectorin interfaceTaskDefinition
-