|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PlanCreationService
Provides an way to create plans of any concrete type. Common code is handled by the PlanCreationTemplate and details specific to each concrete type are looked after in the individual implementations.
Nested Class Summary | |
---|---|
static class |
PlanCreationService.EnablePlan
Enums for whether a plan, once created, will be enabled or disabled |
Method Summary | |
---|---|
java.lang.String |
createPlan(BuildConfiguration buildConfiguration,
ActionParametersMap actionParametersMap,
PlanCreationService.EnablePlan enabled)
Creates a plan from its components and saves it to the database |
BuildConfiguration |
getBuildConfigurationWithDefaults()
|
Plan |
getNewInstance()
|
java.lang.String |
savePlan(PlanCreationBean planCreationBean)
Saves a already created plan to the database |
void |
triggerCreationCompleteEvents(PlanKey planKey)
Trigger the appropriate events after the plan has been saved successfully Calling this method is responsibility of class using this service. |
void |
validatePlan(com.opensymphony.xwork.ValidationAware validationAware,
BuildConfiguration buildConfiguration,
ActionParametersMap actionParametersMap)
Validates plan details and build configuration details for initial plan creation. |
Method Detail |
---|
Plan getNewInstance()
BuildConfiguration getBuildConfigurationWithDefaults()
void validatePlan(com.opensymphony.xwork.ValidationAware validationAware, BuildConfiguration buildConfiguration, ActionParametersMap actionParametersMap)
validationAware
- - object to add errors to (usually an action class)buildConfiguration
- - build configuration to validateactionParametersMap
- - parameter map containing any plan details not in the build configuration.void triggerCreationCompleteEvents(PlanKey planKey)
planKey.
- java.lang.String createPlan(BuildConfiguration buildConfiguration, ActionParametersMap actionParametersMap, PlanCreationService.EnablePlan enabled) throws PlanCreationDeniedException, PlanCreationException
buildConfiguration
- of the plan to createactionParametersMap
- containing any other required params NOT in the buildConfigurationenabled
- whether the plan should start enabled or disabled
PlanCreationDeniedException
- if plan creation fails because you already have too many plans.
PlanCreationException
- if plan creation fails for any other reasonjava.lang.String savePlan(PlanCreationBean planCreationBean) throws PlanCreationDeniedException, PlanCreationException
planCreationBean
- containing the required components for saving
PlanCreationDeniedException
- if plan creation fails because you already have too many plans.
PlanCreationException
- if plan creation fails for any other reason
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |