|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.build.creation.PlanCreationTemplate com.atlassian.bamboo.build.creation.ChainCreationService
public class ChainCreationService
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.bamboo.build.creation.PlanCreationService |
---|
PlanCreationService.EnablePlan |
Field Summary |
---|
Fields inherited from class com.atlassian.bamboo.build.creation.PlanCreationTemplate |
---|
aclUpdateHelper, artifactDefinitionManager, artifactSubscriptionManager, auditLogService, authenticationContext, bambooLicenseManager, buildDefinitionConverter, buildStrategyConfigHelper, eventManager, planManager, planValidationService, projectManager, repositoryConfigHelper, variableDefinitionManager, webRepositoryConfigHelper |
Constructor Summary | |
---|---|
ChainCreationService(PlanManager planManager,
ProjectManager projectManager,
BambooAclUpdateHelper aclUpdateHelper,
BambooAuthenticationContext authenticationContext,
BambooLicenseManager bambooLicenseManager,
HibernateMutableAclService aclService,
PlanScheduler planScheduler,
RepositoryConfigHelper repositoryConfigHelper,
BuildStrategyConfigHelper buildStrategyConfigHelper,
WebRepositoryConfigHelper webRepositoryConfigHelper,
com.atlassian.event.EventManager eventManager,
PlanValidationService planValidationService,
AuditLogService auditLogService,
BuildDefinitionConverter buildDefinitionConverter,
NotificationManager notificationManager,
JobCreationService jobCreationService,
ArtifactDefinitionManager artifactDefinitionManager,
ArtifactSubscriptionManager artifactSubscriptionManager,
VariableDefinitionManager variableDefinitionManager)
|
Method Summary | |
---|---|
void |
cleanBuildConfiguration(BuildConfiguration buildConfiguration,
Plan plan)
Clean build configuration for saving. |
BuildConfiguration |
getBuildConfigurationWithDefaults()
|
protected org.acegisecurity.acls.MutableAcl |
getDefaultPermissionsForPlan()
Generate the permissions to be stored against the plan on creation |
Chain |
getNewInstance()
|
protected boolean |
performCloneIfRequired(PlanCreationBean planCreationBean,
ActionParametersMap params)
Using the action parameters determine if cloning is required and if so, perform the clone. |
protected void |
prepareBuildConfiguration(BuildConfiguration buildConfiguration,
Plan plan)
Prepare build configuration for saving. |
protected void |
preparePlanDetails(Plan plan,
ActionParametersMap params)
Prepare the plan object for saving. |
protected void |
saveAndUpdateParents(Plan plan)
Perform any necessary database operations required before saving the plan. |
protected void |
setFullPlanKey(Plan plan)
Set the full key for this plan |
void |
triggerCreationCompleteEvents(PlanKey planKey)
Trigger the appropriate events after the plan has been saved successfully Calling this method is responsibility of class using this template. |
void |
validateChainDetails(com.opensymphony.xwork.ValidationAware validationAware,
ActionParametersMap params)
|
void |
validateCloneDetails(com.opensymphony.xwork.ValidationAware validationAware,
ActionParametersMap params)
|
void |
validatePlan(com.opensymphony.xwork.ValidationAware validationAware,
BuildConfiguration buildConfiguration,
ActionParametersMap params)
Validates plan details and build configuration details for initial plan creation. |
Methods inherited from class com.atlassian.bamboo.build.creation.PlanCreationTemplate |
---|
cleanBuildConfiguration, clonePlanPermissionsToSession, createPlan, logBuildConfiguration, savePlan |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChainCreationService(PlanManager planManager, ProjectManager projectManager, BambooAclUpdateHelper aclUpdateHelper, BambooAuthenticationContext authenticationContext, BambooLicenseManager bambooLicenseManager, HibernateMutableAclService aclService, PlanScheduler planScheduler, RepositoryConfigHelper repositoryConfigHelper, BuildStrategyConfigHelper buildStrategyConfigHelper, WebRepositoryConfigHelper webRepositoryConfigHelper, com.atlassian.event.EventManager eventManager, PlanValidationService planValidationService, AuditLogService auditLogService, BuildDefinitionConverter buildDefinitionConverter, NotificationManager notificationManager, JobCreationService jobCreationService, ArtifactDefinitionManager artifactDefinitionManager, ArtifactSubscriptionManager artifactSubscriptionManager, VariableDefinitionManager variableDefinitionManager)
Method Detail |
---|
public void validatePlan(com.opensymphony.xwork.ValidationAware validationAware, BuildConfiguration buildConfiguration, ActionParametersMap params)
PlanCreationService
validationAware
- - object to add errors to (usually an action class)buildConfiguration
- - build configuration to validateparams
- - parameter map containing any plan details not in the build configuration.public void validateChainDetails(com.opensymphony.xwork.ValidationAware validationAware, ActionParametersMap params)
public void validateCloneDetails(com.opensymphony.xwork.ValidationAware validationAware, ActionParametersMap params)
public Chain getNewInstance()
protected org.acegisecurity.acls.MutableAcl getDefaultPermissionsForPlan()
PlanCreationTemplate
getDefaultPermissionsForPlan
in class PlanCreationTemplate
public BuildConfiguration getBuildConfigurationWithDefaults()
protected void preparePlanDetails(@NotNull Plan plan, @NotNull ActionParametersMap params)
PlanCreationTemplate
preparePlanDetails
in class PlanCreationTemplate
plan
- to add properties toparams
- containing any properties provided from the UI.protected boolean performCloneIfRequired(@NotNull PlanCreationBean planCreationBean, @NotNull ActionParametersMap params) throws PlanCreationDeniedException
PlanCreationTemplate
performCloneIfRequired
in class PlanCreationTemplate
planCreationBean
- containing the plan and acls (currently does not contain buildConfiguration)params
- containing any properties provided from the UI
PlanCreationDeniedException
- if cloning required but can't be completed due to licensing restrictionsprotected void prepareBuildConfiguration(@NotNull BuildConfiguration buildConfiguration, @NotNull Plan plan)
PlanCreationTemplate
prepareBuildConfiguration
in class PlanCreationTemplate
buildConfiguration
- the current build configuration.plan
- the current plan (will already have details populated)public void cleanBuildConfiguration(@NotNull BuildConfiguration buildConfiguration, @NotNull Plan plan)
PlanCreationTemplate
cleanBuildConfiguration
in class PlanCreationTemplate
buildConfiguration
- the current build configuration.plan
- the current plan (will already have details populated)protected void setFullPlanKey(@NotNull Plan plan)
PlanCreationTemplate
setFullPlanKey
in class PlanCreationTemplate
plan
- - complete plan to be savedprotected void saveAndUpdateParents(@NotNull Plan plan)
PlanCreationTemplate
saveAndUpdateParents
in class PlanCreationTemplate
plan
- - complete plan (except for full key) to be savedpublic void triggerCreationCompleteEvents(PlanKey planKey)
PlanCreationTemplate
triggerCreationCompleteEvents
in interface PlanCreationService
triggerCreationCompleteEvents
in class PlanCreationTemplate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |