com.atlassian.bamboo.task
Class ImmutableTaskDefinition

java.lang.Object
  extended by 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

Field Summary
 
Fields inherited from interface com.atlassian.bamboo.task.TaskDefinition
DISABLED, ENABLED
 
Constructor Summary
ImmutableTaskDefinition(TaskDefinition taskDefinition)
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getConfiguration()
          Represents the raw configuration data for this configuration.
 long getId()
           
 java.lang.String getPluginKey()
           
 TaskRootDirectorySelector getRootDirectorySelector()
           
 java.lang.String getUserDescription()
           
 boolean isEnabled()
           
 boolean isFinalising()
           
 void setConfiguration(java.util.Map<java.lang.String,java.lang.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 setRootDirectorySelector(TaskRootDirectorySelector taskRootDirectorySelector)
           
 void setUserDescription(java.lang.String userDescription)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmutableTaskDefinition

public ImmutableTaskDefinition(@NotNull
                               TaskDefinition taskDefinition)
Method Detail

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

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface TaskIdentifier
Returns:
whether the task is enabled or disabled

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

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 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 © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.