com.atlassian.bamboo.task
Class ImmutableTaskDefinition
java.lang.Object
com.atlassian.bamboo.task.ImmutableTaskDefinition
- All Implemented Interfaces:
- TaskDefinition, TaskIdentifier, java.io.Serializable
public class ImmutableTaskDefinition
- extends java.lang.Object
- implements TaskDefinition
Immutable TaskDefinition
implementation
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImmutableTaskDefinition
public ImmutableTaskDefinition(@NotNull
TaskDefinition taskDefinition)
getConfiguration
@NotNull
public java.util.Map<java.lang.String,java.lang.String> getConfiguration()
- Description copied from interface:
TaskDefinition
- Represents the raw configuration data for this configuration. No variables are substituted.
- Specified by:
getConfiguration
in interface TaskDefinition
- Returns:
- the plugin defined configuration for this task
getId
public long getId()
- Specified by:
getId
in interface TaskIdentifier
- Returns:
- the id of this configuration. Unique within the given context (e.g.
Job
getPluginKey
@NotNull
public java.lang.String getPluginKey()
- Specified by:
getPluginKey
in interface TaskIdentifier
- Returns:
- Complete key of the task type plugin module
getUserDescription
@Nullable
public java.lang.String getUserDescription()
- Specified by:
getUserDescription
in interface TaskIdentifier
- Returns:
- the description of the task as defined by the user
isFinalising
public boolean isFinalising()
- Specified by:
isFinalising
in interface TaskIdentifier
- Returns:
- true if the task should be run in finalisation phase
getRootDirectorySelector
@NotNull
public TaskRootDirectorySelector getRootDirectorySelector()
- Specified by:
getRootDirectorySelector
in interface TaskDefinition
- Returns:
- data defining tasks' root directory
setUserDescription
public void setUserDescription(@Nullable
java.lang.String userDescription)
- Specified by:
setUserDescription
in interface TaskDefinition
setFinalising
public void setFinalising(boolean finalising)
- Specified by:
setFinalising
in interface TaskDefinition
setConfiguration
public void setConfiguration(@NotNull
java.util.Map<java.lang.String,java.lang.String> configuration)
- Specified by:
setConfiguration
in interface TaskDefinition
setRootDirectorySelector
public void setRootDirectorySelector(@NotNull
TaskRootDirectorySelector taskRootDirectorySelector)
- Specified by:
setRootDirectorySelector
in interface TaskDefinition
Copyright © 2012 Atlassian. All Rights Reserved.