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
-
Method Summary
Modifier and TypeMethodDescription@NotNull List<TaskConditionConfig>
Represents the raw configuration data for this configuration.long
getId()
getOid()
OID assigned to this object.@NotNull String
@NotNull TaskRootDirectorySelector
@Nullable String
boolean
boolean
void
setConditions
(@NotNull List<TaskConditionConfig> conditions) void
setConfiguration
(@NotNull 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 newBambooEntityOid
to this object.void
setRootDirectorySelector
(@NotNull TaskRootDirectorySelector taskRootDirectorySelector) void
setUserDescription
(@Nullable String userDescription) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.bamboo.task.TaskDefinition
getEntityType
-
Constructor Details
-
ImmutableTaskDefinition
-
-
Method Details
-
getConfiguration
Description copied from interface:TaskDefinition
Represents the raw configuration data for this configuration. No variables are substituted.- Specified by:
getConfiguration
in interfaceTaskDefinition
- Returns:
- the plugin defined configuration for this task
-
getId
public long getId()- Specified by:
getId
in interfaceTaskIdentifier
- Returns:
- the id of this configuration. Unique within the given context (e.g.
Job
-
getPluginKey
- Specified by:
getPluginKey
in interfacePluginKeyProvider
- Specified by:
getPluginKey
in interfaceTaskIdentifier
- Returns:
- Complete key of the task type plugin module
-
getUserDescription
- Specified by:
getUserDescription
in interfaceTaskIdentifier
- Returns:
- the description of the task as defined by the user
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceTaskIdentifier
- Returns:
- whether the task is enabled or disabled
-
isFinalising
public boolean isFinalising()- Specified by:
isFinalising
in interfaceTaskIdentifier
- Returns:
- true if the task should be run in finalisation phase
-
getRootDirectorySelector
- Specified by:
getRootDirectorySelector
in interfaceTaskDefinition
- Returns:
- data defining tasks' root directory
-
getOid
Description copied from interface:ImmutableEntityWithOid
OID assigned to this object. TheBambooEntityOid.getEntityType()
should be the same as this object'sImmutableEntityWithOid.getEntityType()
.- Specified by:
getOid
in interfaceImmutableEntityWithOid
-
setOid
Description copied from interface:EntityWithOid
Assign a newBambooEntityOid
to this object. TheBambooEntityOid.getEntityType()
should be the same as this object'sImmutableEntityWithOid.getEntityType()
.- Specified by:
setOid
in interfaceEntityWithOid
-
setUserDescription
- Specified by:
setUserDescription
in interfaceTaskDefinition
-
setEnabled
public void setEnabled(boolean isEnabled) Description copied from interface:TaskDefinition
Tells bamboo whether this task should run as a part of this build or not.- Specified by:
setEnabled
in interfaceTaskDefinition
-
setFinalising
public void setFinalising(boolean finalising) - Specified by:
setFinalising
in interfaceTaskDefinition
-
setConfiguration
- Specified by:
setConfiguration
in interfaceTaskDefinition
-
setConditions
- Specified by:
setConditions
in interfaceTaskDefinition
-
getConditions
- Specified by:
getConditions
in interfaceTaskDefinition
- Returns:
- task conditions. UI supports only one condition per task.
-
setRootDirectorySelector
public void setRootDirectorySelector(@NotNull @NotNull TaskRootDirectorySelector taskRootDirectorySelector) - Specified by:
setRootDirectorySelector
in interfaceTaskDefinition
-