org.apache.maven.continuum.core.action
Class AbstractBuildDefinitionContinuumAction

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.codehaus.plexus.action.AbstractAction
          extended by org.apache.maven.continuum.core.action.AbstractContinuumAction
              extended by org.apache.maven.continuum.core.action.AbstractBuildDefinitionContinuumAction
All Implemented Interfaces:
org.codehaus.plexus.action.Action, org.codehaus.plexus.logging.LogEnabled, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Direct Known Subclasses:
AddBuildDefinitionToProjectAction, AddBuildDefinitionToProjectGroupAction, RemoveBuildDefinitionFromProjectAction, RemoveBuildDefinitionFromProjectGroupAction, UpdateBuildDefinitionFromProjectAction, UpdateBuildDefinitionFromProjectGroupAction

public abstract class AbstractBuildDefinitionContinuumAction
extends AbstractContinuumAction

AbstractBuildDefinitionContinuumAction:

Version:
$Id: AbstractBuildDefinitionContinuumAction.java 1372260 2012-08-13 04:29:09Z brett $
Author:
Jesse McConnell

Field Summary
 
Fields inherited from interface org.codehaus.plexus.action.Action
RESULT_MESSAGES, ROLE
 
Constructor Summary
AbstractBuildDefinitionContinuumAction()
           
 
Method Summary
protected  void resolveDefaultBuildDefinitionsForProject(BuildDefinition buildDefinition, Project project)
           
protected  void resolveDefaultBuildDefinitionsForProjectGroup(BuildDefinition buildDefinition, ProjectGroup projectGroup)
          resolves build definition defaults between project groups and projects

1) project groups have default build definitions 2) if project has default build definition, that overrides project group definition 3) changing parent default build definition does not effect project if it has a default declared 4) project groups must have a default build definition

protected  void updateBuildDefinitionInList(List<BuildDefinition> buildDefinitions, BuildDefinition buildDefinition)
          attempts to walk through the list of build definitions and upon finding a match update it with the information in the BuildDefinition object passed in.
 
Methods inherited from class org.apache.maven.continuum.core.action.AbstractContinuumAction
getBoolean, getBoolean, getBuildDefinition, getBuildDefinitionId, getBuildDefinitionTemplate, getBuildId, getBuildId, getBuildTrigger, getInteger, getListOfProjects, getListOfProjectsInGroupWithCommonScmRoot, getObject, getObject, getOldBuildId, getOldScmResult, getOldScmResult, getProject, getProject, getProjectGroupId, getProjectId, getProjectsBuildDefinitionsMap, getProjectScmRoot, getProjectScmRootUrl, getScmResult, getScmResult, getScmResultMap, getString, getString, getUnvalidatedProject, getUnvalidatedProjectGroup, getUpdatedDependencies, getUpdatedDependencies, getWorkingDirectory, isRootDirectory, setBuildDefinition, setBuildDefinitionId, setBuildDefinitionTemplate, setBuildId, setBuildTrigger, setListOfProjects, setListOfProjectsInGroupWithCommonScmRoot, setOldBuildId, setOldScmResult, setProject, setProjectGroupId, setProjectId, setProjectsBuildDefinitionsMap, setProjectScmRoot, setProjectScmRootUrl, setRootDirectory, setScmResult, setScmResultMap, setUnvalidatedProject, setUnvalidatedProjectGroup, setUpdatedDependencies, setWorkingDirectory
 
Methods inherited from class org.codehaus.plexus.action.AbstractAction
addResultMessage, contextualize, getResultMessages, hasResultMessages, lookup, lookup, setResultMessages
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.plexus.action.Action
execute
 

Constructor Detail

AbstractBuildDefinitionContinuumAction

public AbstractBuildDefinitionContinuumAction()
Method Detail

resolveDefaultBuildDefinitionsForProject

protected void resolveDefaultBuildDefinitionsForProject(BuildDefinition buildDefinition,
                                                        Project project)
                                                 throws ContinuumException
Throws:
ContinuumException

resolveDefaultBuildDefinitionsForProjectGroup

protected void resolveDefaultBuildDefinitionsForProjectGroup(BuildDefinition buildDefinition,
                                                             ProjectGroup projectGroup)
                                                      throws ContinuumException
resolves build definition defaults between project groups and projects

1) project groups have default build definitions 2) if project has default build definition, that overrides project group definition 3) changing parent default build definition does not effect project if it has a default declared 4) project groups must have a default build definition

Parameters:
buildDefinition -
projectGroup -
Throws:
ContinuumException

updateBuildDefinitionInList

protected void updateBuildDefinitionInList(List<BuildDefinition> buildDefinitions,
                                           BuildDefinition buildDefinition)
                                    throws ContinuumException
attempts to walk through the list of build definitions and upon finding a match update it with the information in the BuildDefinition object passed in.

Parameters:
buildDefinitions -
buildDefinition -
Throws:
ContinuumException


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.