com.atlassian.bamboo.build.creation
Class BuildPlanConstructorImpl

java.lang.Object
  extended by com.atlassian.bamboo.build.creation.BuildPlanConstructorImpl
All Implemented Interfaces:
BuildPlanConstructor

public class BuildPlanConstructorImpl
extends java.lang.Object
implements BuildPlanConstructor


Constructor Summary
BuildPlanConstructorImpl(BuildPlanCreationService buildPlanCreationService, ProjectManager projectManager, BambooAclUpdateHelper aclUpdateHelper, BambooAuthenticationContext authenticationContext)
           
 
Method Summary
 BuildPlanConstructor addNotificationRule(NotificationRule newRule)
          Adds a notification rule to the plan.
 BuildPlanConstructor existingProject(java.lang.String projectKey)
          The existing Project that the plan will belong to
 BuildPlanConstructor key(java.lang.String planKey)
          The Build component for the plan (e.g.
 BuildPlanConstructor name(java.lang.String planName)
          The name of the plan (not the project
 BuildPlanConstructor newProject(java.lang.String projectKey, java.lang.String projectName)
          Sets a new Project details that the Build will belong to
 BuildPlanConstructor setBuilder(Builder builder, java.lang.String label)
          Sets the builder on the plan, with the matching label
 BuildPlanConstructor setBuildStrategy(BuildStrategy buildStrategy)
          Sets the build strategy
 BuildPlanConstructor setRepository(Repository repository)
          Sets the repository on the plan
 BuildPlanConstructor setWebRepositoryViewer(WebRepositoryViewer webRepositoryViewer)
          Sets the web repository viewer on the plan
 BuildPlanConstructor suspendedFromBuilding(boolean suspendedFromBuilding)
          Set plan's suspendedFromBuilding flag
 BuildCreationBean toBuildCreationBean()
          Outputs a BuildCreationBean that can then be persisted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildPlanConstructorImpl

public BuildPlanConstructorImpl(BuildPlanCreationService buildPlanCreationService,
                                ProjectManager projectManager,
                                BambooAclUpdateHelper aclUpdateHelper,
                                BambooAuthenticationContext authenticationContext)
Method Detail

toBuildCreationBean

public BuildCreationBean toBuildCreationBean()
Description copied from interface: BuildPlanConstructor
Outputs a BuildCreationBean that can then be persisted

Specified by:
toBuildCreationBean in interface BuildPlanConstructor
Returns:

newProject

public BuildPlanConstructor newProject(@NotNull
                                       java.lang.String projectKey,
                                       @NotNull
                                       java.lang.String projectName)
Description copied from interface: BuildPlanConstructor
Sets a new Project details that the Build will belong to

Specified by:
newProject in interface BuildPlanConstructor
Returns:

existingProject

public BuildPlanConstructor existingProject(@NotNull
                                            java.lang.String projectKey)
Description copied from interface: BuildPlanConstructor
The existing Project that the plan will belong to

Specified by:
existingProject in interface BuildPlanConstructor
Returns:

key

public BuildPlanConstructor key(@NotNull
                                java.lang.String planKey)
Description copied from interface: BuildPlanConstructor
The Build component for the plan (e.g. DEF, not BAM-DEF)

Specified by:
key in interface BuildPlanConstructor
Returns:

name

public BuildPlanConstructor name(@NotNull
                                 java.lang.String planName)
Description copied from interface: BuildPlanConstructor
The name of the plan (not the project

Specified by:
name in interface BuildPlanConstructor
Returns:

suspendedFromBuilding

public BuildPlanConstructor suspendedFromBuilding(boolean suspendedFromBuilding)
Description copied from interface: BuildPlanConstructor
Set plan's suspendedFromBuilding flag

Specified by:
suspendedFromBuilding in interface BuildPlanConstructor
Parameters:
suspendedFromBuilding - Value to set
Returns:
Plan's constructor

setRepository

public BuildPlanConstructor setRepository(@NotNull
                                          Repository repository)
Description copied from interface: BuildPlanConstructor
Sets the repository on the plan

Specified by:
setRepository in interface BuildPlanConstructor
Returns:

setWebRepositoryViewer

public BuildPlanConstructor setWebRepositoryViewer(@NotNull
                                                   WebRepositoryViewer webRepositoryViewer)
Description copied from interface: BuildPlanConstructor
Sets the web repository viewer on the plan

Specified by:
setWebRepositoryViewer in interface BuildPlanConstructor
Returns:

setBuilder

public BuildPlanConstructor setBuilder(@NotNull
                                       Builder builder,
                                       @NotNull
                                       java.lang.String label)
Description copied from interface: BuildPlanConstructor
Sets the builder on the plan, with the matching label

Specified by:
setBuilder in interface BuildPlanConstructor
Returns:

setBuildStrategy

public BuildPlanConstructor setBuildStrategy(@NotNull
                                             BuildStrategy buildStrategy)
Description copied from interface: BuildPlanConstructor
Sets the build strategy

Specified by:
setBuildStrategy in interface BuildPlanConstructor
Returns:

addNotificationRule

public BuildPlanConstructor addNotificationRule(@NotNull
                                                NotificationRule newRule)
Description copied from interface: BuildPlanConstructor
Adds a notification rule to the plan. Can add multiple

Specified by:
addNotificationRule in interface BuildPlanConstructor
Returns:


Copyright © 2010 Atlassian. All Rights Reserved.