Interface PlanCreationService

    • Method Detail

      • getNewInstance

        Plan getNewInstance()
        Returns:
        A new plan instance, concrete type determined by implementation classes
      • getBuildConfigurationWithDefaults

        BuildConfiguration getBuildConfigurationWithDefaults()
        Returns:
        A buildConfiguration instance with the required defaults populated
      • validatePlan

        void validatePlan​(com.atlassian.struts.ValidationAware validationAware,
                          BuildConfiguration buildConfiguration,
                          ActionParametersMap actionParametersMap)
        Validates plan details and build configuration details for initial plan creation. Adds errors to the validationAware object.
        Parameters:
        validationAware - - object to add errors to (usually an action class)
        buildConfiguration - - build configuration to validate
        actionParametersMap - - parameter map containing any plan details not in the build configuration.
      • triggerCreationCompleteEvents

        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.
        Parameters:
        planKey -