|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BuildPlanCreationService
A stateless, non-transactional service that provides common services for plan creation and validation
Nested Class Summary | |
---|---|
static class |
BuildPlanCreationService.EnablePlan
Enums for whether a build, once created, will be enabled or disabled |
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 planKeyToClone,
java.lang.String planOwnerUsername)
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 |
Method Detail |
---|
void validatePlanKey(@NotNull com.opensymphony.xwork.ValidationAware validationAware, @NotNull java.lang.String planKeyField, @Nullable java.lang.String planKey)
validationAware
- Action to be fed with possible validation errorsplanKeyField
- Name of the UI field for plan keyplanKey
- Plan keyvoid validatePlanName(@NotNull com.opensymphony.xwork.ValidationAware validationAware, @NotNull java.lang.String planNameField, @Nullable java.lang.String planName)
validationAware
- Action to be fed with possible validation errorsplanNameField
- Name of the UI field for plan nameplanName
- Plan namevoid validatePlanToCloneExists(@NotNull com.opensymphony.xwork.ValidationAware validationAware, @Nullable java.lang.String buildKeyToClone)
validationAware
- buildKeyToClone
- void validateNewPlanDetails(@NotNull com.opensymphony.xwork.ValidationAware validationAware, @Nullable java.lang.String buildKey, @Nullable java.lang.String buildName)
validationAware
- buildKey
- buildName
- void validateNewBuildForExistingProject(@NotNull com.opensymphony.xwork.ValidationAware validationAware, @Nullable java.lang.String existingProjectKey, @Nullable java.lang.String buildKey, @Nullable java.lang.String buildName)
validationAware
- existingProjectKey
- buildKey
- buildName
- void validateNewProjectDetails(@NotNull com.opensymphony.xwork.ValidationAware validationAware, @Nullable java.lang.String projectName, @Nullable java.lang.String projectKey)
validationAware
- projectName
- projectKey
- @NotNull Build newBuildPlan()
@NotNull BuildConfiguration newBuildConfigurationWithDefaults()
BuildConfiguration
, running through the Repository
and Builder
to
generate the defaults
@NotNull BuildConfiguration newBuildConfigurationWithNoDefaults()
BuildConfiguration
void cloneBuildPlan(@NotNull BuildCreationBean buildCreationBean, @NotNull java.lang.String planKeyToClone, @NotNull java.lang.String planOwnerUsername) throws PlanCreationException
BuildCreationBean
buildCreationBean
- planKeyToClone
- planOwnerUsername
-
PlanCreationException
void persistPlanToDatabase(@NotNull BuildCreationBean buildCreationBean, @NotNull BuildPlanCreationService.EnablePlan enablePlan) throws PlanCreationDeniedException
BuildCreationBean
and persists a plan, optionall disabling the plan on creation
buildCreationBean
- enablePlan
-
PlanCreationDeniedException
void persistPlanToDatabase(@NotNull BuildCreationBean buildCreationBean) throws PlanCreationDeniedException
BuildCreationBean
and persists a plan.
buildCreationBean
-
PlanCreationDeniedException
void addNewRequirementForBuilder(@NotNull BuildConfiguration buildConfiguration, @NotNull java.lang.String selectedLabel, @NotNull Builder selectedBuilder, @NotNull RequirementSet requirementSet)
buildConfiguration
- selectedLabel
- selectedBuilder
- requirementSet
- void removeRequirementsForBuilder(@NotNull BuildConfiguration buildConfiguration, @NotNull java.lang.String builderLabel, @NotNull Builder builder, @NotNull RequirementSet requirementSet)
buildConfiguration
- builderLabel
- builder
- requirementSet
- void setBuilder(@NotNull BuildCreationBean buildCreationBean, @NotNull Builder builder, java.lang.String label) throws PlanCreationException
Builder
in the BuildCreationBean.getBuildBeingCreated()
buildCreationBean
- builder
- label
-
PlanCreationException
void setRepository(@NotNull BuildCreationBean buildCreationBean, @NotNull Repository repository) throws PlanCreationException
Repository
in BuildCreationBean.getBuildBeingCreated()
buildCreationBean
- repository
-
PlanCreationException
void setWebRepositoryViewer(@NotNull BuildCreationBean buildCreationBean, @NotNull WebRepositoryViewer webRepositoryViewer) throws PlanCreationException
WebRepositoryViewer
in BuildCreationBean.getBuildBeingCreated()
buildCreationBean
- webRepositoryViewer
-
PlanCreationException
void addNotificationRule(@NotNull Build build, @NotNull NotificationRule newRule)
build
- newRule
- void setBuildStrategy(@NotNull BuildCreationBean buildCreationBean, @NotNull BuildStrategy buildStrategy)
BuildStrategy
in BuildCreationBean.getBuildBeingCreated()
buildCreationBean
- buildStrategy
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |