com.atlassian.bamboo.task
Class TaskDefinitionImpl
java.lang.Object
com.atlassian.bamboo.task.TaskDefinitionImpl
- All Implemented Interfaces:
- TaskDefinition, TaskIdentifier, java.io.Serializable
- Direct Known Subclasses:
- DecoratedTaskDefinition
public class TaskDefinitionImpl
- extends java.lang.Object
- implements TaskDefinition
- See Also:
- Serialized Form
Constructor Summary |
TaskDefinitionImpl(long id,
java.lang.String pluginKey,
java.lang.String userDescription,
java.util.Map<java.lang.String,java.lang.String> taskConfigMap)
|
TaskDefinitionImpl(long id,
java.lang.String pluginKey,
java.lang.String userDescription,
java.util.Map<java.lang.String,java.lang.String> taskConfigMap,
boolean finalising)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
TaskDefinitionImpl
public TaskDefinitionImpl(long id,
@NotNull
java.lang.String pluginKey,
@Nullable
java.lang.String userDescription,
@NotNull
java.util.Map<java.lang.String,java.lang.String> taskConfigMap)
TaskDefinitionImpl
public TaskDefinitionImpl(long id,
@NotNull
java.lang.String pluginKey,
@Nullable
java.lang.String userDescription,
@NotNull
java.util.Map<java.lang.String,java.lang.String> taskConfigMap,
boolean finalising)
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
setUserDescription
public void setUserDescription(@Nullable
java.lang.String userDescription)
- Specified by:
setUserDescription
in interface 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
setConfiguration
public void setConfiguration(@NotNull
java.util.Map<java.lang.String,java.lang.String> configuration)
- Specified by:
setConfiguration
in interface TaskDefinition
isFinalising
public boolean isFinalising()
- Specified by:
isFinalising
in interface TaskIdentifier
- Returns:
- true if the task should be run in finalisation phase
setFinalising
public void setFinalising(boolean finalising)
- Specified by:
setFinalising
in interface TaskDefinition
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
compareTo
public int compareTo(java.lang.Object obj)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2011 Atlassian. All Rights Reserved.