|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.build.creation.BuildPlanCreationServiceImpl
public class BuildPlanCreationServiceImpl
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.bamboo.build.creation.BuildPlanCreationService |
---|
BuildPlanCreationService.EnablePlan |
Field Summary | |
---|---|
static java.util.regex.Pattern |
BUILD_KEY_PATTERN
|
static java.lang.String |
ILLEGAL_NAME_CHARACTERS
|
static java.util.regex.Pattern |
PROJECT_KEY_PATTERN
|
Constructor Summary | |
---|---|
BuildPlanCreationServiceImpl(ProjectManager projectManager,
BuildManager buildManager,
RepositoryManager repositoryManager,
BuildStrategyManager buildStrategyManager,
NotificationManager notificationManager,
BuildDefinitionConverter buildDefinitionConverter,
HibernateMutableAclService aclService,
com.atlassian.event.EventManager eventManager,
com.opensymphony.xwork.TextProvider textProvider)
|
Method Summary | |
---|---|
void |
addNewRequirementForBuilder(BuildConfiguration buildConfiguration,
java.lang.String selectedLabel,
Builder selectedBuilder,
RequirementSet requirementSet)
Adds the default requirements from the selected builder & label |
void |
addNotificationRule(Build build,
NotificationRule newRule)
Add a notification to the build's noticatin set. |
void |
cloneBuildPlan(BuildCreationBean buildCreationBean,
java.lang.String buildKeyToClone,
java.lang.String planOwner)
Clones the passe plan into the BuildCreationBean |
BuildConfiguration |
newBuildConfigurationWithDefaults()
Instantiates a new BuildConfiguration , running through the Repository and Builder to
generate the defaults |
BuildConfiguration |
newBuildConfigurationWithNoDefaults()
Instantiates a new BuildConfiguration |
Build |
newBuildPlan()
Returns a new autowired build plan |
void |
persistPlanToDatabase(BuildCreationBean buildCreationBean)
Takes a BuildCreationBean and persists a plan. |
void |
persistPlanToDatabase(BuildCreationBean buildCreationBean,
BuildPlanCreationService.EnablePlan enablePlan)
Takes a BuildCreationBean and persists a plan, optionall disabling the plan on creation |
void |
removeRequirementsForBuilder(BuildConfiguration buildConfiguration,
java.lang.String builderLabel,
Builder builder,
RequirementSet requirementSet)
Removes the default requirements from the selected builder & label |
void |
setBuilder(BuildCreationBean buildCreationBean,
Builder builder,
java.lang.String label)
Sets the Builder in the BuildCreationBean.getBuildBeingCreated() |
void |
setBuildStrategy(BuildCreationBean buildCreationBean,
BuildStrategy buildStrategy)
Sets the BuildStrategy in BuildCreationBean.getBuildBeingCreated() |
void |
setRepository(BuildCreationBean buildCreationBean,
Repository repository)
Sets the Repository in BuildCreationBean.getBuildBeingCreated() |
void |
setWebRepositoryViewer(BuildCreationBean buildCreationBean,
WebRepositoryViewer webRepositoryViewer)
Sets the WebRepositoryViewer in BuildCreationBean.getBuildBeingCreated() |
void |
validateNewBuildForExistingProject(com.opensymphony.xwork.ValidationAware validationAware,
java.lang.String existingProjectKey,
java.lang.String buildKey,
java.lang.String buildName)
Validate that name new plan is unique within the project |
void |
validateNewPlanDetails(com.opensymphony.xwork.ValidationAware validationAware,
java.lang.String buildKey,
java.lang.String buildName)
Ensure that the build key & name are valid |
void |
validateNewProjectDetails(com.opensymphony.xwork.ValidationAware validationAware,
java.lang.String projectName,
java.lang.String projectKey)
Validate that the new project details are valid |
void |
validatePlanKey(com.opensymphony.xwork.ValidationAware validationAware,
java.lang.String planKeyField,
java.lang.String planKey)
Ensure that the plan key is valid |
void |
validatePlanName(com.opensymphony.xwork.ValidationAware validationAware,
java.lang.String planNameField,
java.lang.String planName)
Ensure that the plan name is valid |
void |
validatePlanToCloneExists(com.opensymphony.xwork.ValidationAware validationAware,
java.lang.String buildKeyToClone)
Validate that the plan t clone exists |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ILLEGAL_NAME_CHARACTERS
public static final java.util.regex.Pattern BUILD_KEY_PATTERN
public static final java.util.regex.Pattern PROJECT_KEY_PATTERN
Constructor Detail |
---|
public BuildPlanCreationServiceImpl(ProjectManager projectManager, BuildManager buildManager, RepositoryManager repositoryManager, BuildStrategyManager buildStrategyManager, NotificationManager notificationManager, BuildDefinitionConverter buildDefinitionConverter, HibernateMutableAclService aclService, com.atlassian.event.EventManager eventManager, com.opensymphony.xwork.TextProvider textProvider)
Method Detail |
---|
public void validatePlanKey(@NotNull com.opensymphony.xwork.ValidationAware validationAware, @NotNull java.lang.String planKeyField, @Nullable java.lang.String planKey)
BuildPlanCreationService
validatePlanKey
in interface BuildPlanCreationService
validationAware
- Action to be fed with possible validation errorsplanKeyField
- Name of the UI field for plan keyplanKey
- Plan keypublic void validatePlanName(@NotNull com.opensymphony.xwork.ValidationAware validationAware, @NotNull java.lang.String planNameField, @Nullable java.lang.String planName)
BuildPlanCreationService
validatePlanName
in interface BuildPlanCreationService
validationAware
- Action to be fed with possible validation errorsplanNameField
- Name of the UI field for plan nameplanName
- Plan namepublic void validatePlanToCloneExists(@NotNull com.opensymphony.xwork.ValidationAware validationAware, @Nullable java.lang.String buildKeyToClone)
BuildPlanCreationService
validatePlanToCloneExists
in interface BuildPlanCreationService
public void validateNewPlanDetails(@NotNull com.opensymphony.xwork.ValidationAware validationAware, java.lang.String buildKey, java.lang.String buildName)
BuildPlanCreationService
validateNewPlanDetails
in interface BuildPlanCreationService
public void validateNewBuildForExistingProject(@NotNull com.opensymphony.xwork.ValidationAware validationAware, java.lang.String existingProjectKey, java.lang.String buildKey, java.lang.String buildName)
BuildPlanCreationService
validateNewBuildForExistingProject
in interface BuildPlanCreationService
public void validateNewProjectDetails(@NotNull com.opensymphony.xwork.ValidationAware validationAware, java.lang.String projectName, java.lang.String projectKey)
BuildPlanCreationService
validateNewProjectDetails
in interface BuildPlanCreationService
@NotNull public Build newBuildPlan()
BuildPlanCreationService
newBuildPlan
in interface BuildPlanCreationService
public void persistPlanToDatabase(@NotNull BuildCreationBean buildCreationBean) throws PlanCreationDeniedException
BuildPlanCreationService
BuildCreationBean
and persists a plan.
persistPlanToDatabase
in interface BuildPlanCreationService
PlanCreationDeniedException
public void persistPlanToDatabase(@NotNull BuildCreationBean buildCreationBean, @NotNull BuildPlanCreationService.EnablePlan enablePlan) throws PlanCreationDeniedException
BuildPlanCreationService
BuildCreationBean
and persists a plan, optionall disabling the plan on creation
persistPlanToDatabase
in interface BuildPlanCreationService
PlanCreationDeniedException
public void setRepository(@NotNull BuildCreationBean buildCreationBean, @NotNull Repository repository) throws PlanCreationException
BuildPlanCreationService
Repository
in BuildCreationBean.getBuildBeingCreated()
setRepository
in interface BuildPlanCreationService
PlanCreationException
public void setWebRepositoryViewer(@NotNull BuildCreationBean buildCreationBean, @NotNull WebRepositoryViewer webRepositoryViewer) throws PlanCreationException
BuildPlanCreationService
WebRepositoryViewer
in BuildCreationBean.getBuildBeingCreated()
setWebRepositoryViewer
in interface BuildPlanCreationService
PlanCreationException
public void setBuilder(@NotNull BuildCreationBean buildCreationBean, @NotNull Builder builder, java.lang.String label) throws PlanCreationException
BuildPlanCreationService
Builder
in the BuildCreationBean.getBuildBeingCreated()
setBuilder
in interface BuildPlanCreationService
PlanCreationException
public void addNotificationRule(@NotNull Build build, @NotNull NotificationRule newRule)
BuildPlanCreationService
addNotificationRule
in interface BuildPlanCreationService
public void setBuildStrategy(@NotNull BuildCreationBean buildCreationBean, @NotNull BuildStrategy buildStrategy)
BuildPlanCreationService
BuildStrategy
in BuildCreationBean.getBuildBeingCreated()
setBuildStrategy
in interface BuildPlanCreationService
public void cloneBuildPlan(@NotNull BuildCreationBean buildCreationBean, @NotNull java.lang.String buildKeyToClone, @NotNull java.lang.String planOwner) throws PlanCreationException
BuildPlanCreationService
BuildCreationBean
cloneBuildPlan
in interface BuildPlanCreationService
PlanCreationException
@NotNull public BuildConfiguration newBuildConfigurationWithDefaults()
BuildPlanCreationService
BuildConfiguration
, running through the Repository
and Builder
to
generate the defaults
newBuildConfigurationWithDefaults
in interface BuildPlanCreationService
@NotNull public BuildConfiguration newBuildConfigurationWithNoDefaults()
BuildPlanCreationService
BuildConfiguration
newBuildConfigurationWithNoDefaults
in interface BuildPlanCreationService
public void addNewRequirementForBuilder(@NotNull BuildConfiguration buildConfiguration, @NotNull java.lang.String selectedLabel, @NotNull Builder selectedBuilder, @NotNull RequirementSet requirementSet)
BuildPlanCreationService
addNewRequirementForBuilder
in interface BuildPlanCreationService
public void removeRequirementsForBuilder(@NotNull BuildConfiguration buildConfiguration, @NotNull java.lang.String builderLabel, @NotNull Builder builder, @NotNull RequirementSet requirementSet)
BuildPlanCreationService
removeRequirementsForBuilder
in interface BuildPlanCreationService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |