com.atlassian.bamboo.task
Interface TaskManager


public interface TaskManager

Since:
3.1

Method Summary
 void calculateRequirementsForTaskDefinition(Buildable buildable, TaskDefinition taskDefinition)
          Attempts to add Requirements to the specified Buildable if the TaskConfigurator is an implementor of TaskRequirementSupport If requirements are already present for the specified TaskDefinition they will be removed and recalculated
 java.util.List getAvailableTaskDescriptors()
           
 java.util.Map getExecutableLabelTypeMap()
          Returns a map of currently available "configured" executables - uniquely identified by a label.
 TaskModuleDescriptor getTaskDescriptor(java.lang.String pluginKey)
          Get the task type descriptor matching a particular plugin key.
 java.util.Collection getTasksRequirements(Buildable buildable)
          Return Requirements for all tasks of Buildable if the TaskConfigurator is an implementor of TaskRequirementSupport
 void removeRequirementsForTaskDefinition(Buildable buildable, TaskDefinition taskDefinition)
          Removes all the Requirements that belong to the TaskDefinition
 boolean taskProducesTestResults(TaskDefinition taskDefinition)
          Return true iff task defined in TaskDefinition is configured to produce test results.
 

Method Detail

getAvailableTaskDescriptors

@NotNull
java.util.List getAvailableTaskDescriptors()
Returns:
Provides a list of available tasks types.

getTaskDescriptor

@Nullable
TaskModuleDescriptor getTaskDescriptor(@Nullable
                                                java.lang.String pluginKey)
Get the task type descriptor matching a particular plugin key.

Parameters:
pluginKey - - key to match
Returns:
TaskModuleDescriptor matching the given key if it exists. Null if the plugin can not be found.

calculateRequirementsForTaskDefinition

void calculateRequirementsForTaskDefinition(@NotNull
                                            Buildable buildable,
                                            @NotNull
                                            TaskDefinition taskDefinition)
Attempts to add Requirements to the specified Buildable if the TaskConfigurator is an implementor of TaskRequirementSupport If requirements are already present for the specified TaskDefinition they will be removed and recalculated

Parameters:
buildable -
taskDefinition -

removeRequirementsForTaskDefinition

void removeRequirementsForTaskDefinition(@NotNull
                                         Buildable buildable,
                                         @NotNull
                                         TaskDefinition taskDefinition)
Removes all the Requirements that belong to the TaskDefinition

Parameters:
buildable -
taskDefinition -

getTasksRequirements

@NotNull
java.util.Collection getTasksRequirements(@NotNull
                                                  Buildable buildable)
Return Requirements for all tasks of Buildable if the TaskConfigurator is an implementor of TaskRequirementSupport

Parameters:
buildable -
Returns:
requirements
Throws:
java.lang.IllegalStateException

taskProducesTestResults

boolean taskProducesTestResults(@NotNull
                                TaskDefinition taskDefinition)
Return true iff task defined in TaskDefinition is configured to produce test results.

Parameters:
taskDefinition -
Returns:
producesTestResults

getExecutableLabelTypeMap

java.util.Map getExecutableLabelTypeMap()
Returns a map of currently available "configured" executables - uniquely identified by a label.

Maps label -> taskExecutableType.getExecutableKey().

The executables are backed by available capabilities system wide, filtered by executables which are actually activated in the plugin system.

Returns:
executableTypeLabelMaps


Copyright © 2011 Atlassian. All Rights Reserved.