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

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
All Implemented Interfaces:
org.codehaus.plexus.action.Action, org.codehaus.plexus.logging.LogEnabled, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Direct Known Subclasses:
AbstractBuildDefinitionContinuumAction, AbstractValidationContinuumAction, AddAssignableRolesAction, AddProjectToCheckOutQueueAction, CheckoutProjectContinuumAction, CheckWorkingDirectoryAction, CleanWorkingDirectoryAction, CreateBuildProjectTaskAction, CreateProjectsFromMetadataAction, DeployArtifactContinuumAction, ExecuteBuilderContinuumAction, RemoveAssignableRolesAction, StoreCheckOutScmResultAction, StoreProjectAction, StoreProjectGroupAction, UpdateProjectFromWorkingDirectoryContinuumAction, UpdateWorkingDirectoryFromScmContinuumAction

public abstract class AbstractContinuumAction
extends org.codehaus.plexus.action.AbstractAction

Version:
$Id: AbstractContinuumAction.java 1372260 2012-08-13 04:29:09Z brett $
Author:
Trygve Laugstøl

Field Summary
 
Fields inherited from interface org.codehaus.plexus.action.Action
RESULT_MESSAGES, ROLE
 
Constructor Summary
AbstractContinuumAction()
           
 
Method Summary
static boolean getBoolean(Map<String,Object> context, String key)
           
static boolean getBoolean(Map<String,Object> context, String key, boolean defaultValue)
           
static BuildDefinition getBuildDefinition(Map<String,Object> context)
           
static int getBuildDefinitionId(Map<String,Object> context)
           
static BuildDefinitionTemplate getBuildDefinitionTemplate(Map<String,Object> context)
           
static String getBuildId(Map<String,Object> context)
           
static String getBuildId(Map<String,Object> context, String defaultValue)
           
static BuildTrigger getBuildTrigger(Map<String,Object> context)
           
protected static int getInteger(Map<String,Object> context, String key)
           
static List<Project> getListOfProjects(Map<String,Object> context)
           
static List<Project> getListOfProjectsInGroupWithCommonScmRoot(Map<String,Object> context)
           
protected static Object getObject(Map<String,Object> context, String key)
           
protected static Object getObject(Map<String,Object> context, String key, Object defaultValue)
           
static int getOldBuildId(Map<String,Object> context)
           
static ScmResult getOldScmResult(Map<String,Object> context)
           
static ScmResult getOldScmResult(Map<String,Object> context, ScmResult defaultValue)
           
static Project getProject(Map<String,Object> context)
           
static Project getProject(Map<String,Object> context, Project defaultValue)
           
static int getProjectGroupId(Map<String,Object> context)
           
static int getProjectId(Map<String,Object> context)
           
static Map<Integer,BuildDefinition> getProjectsBuildDefinitionsMap(Map<String,Object> context)
           
static ProjectScmRoot getProjectScmRoot(Map<String,Object> context)
           
static String getProjectScmRootUrl(Map<String,Object> context, String projectScmRootUrl)
           
static ScmResult getScmResult(Map<String,Object> context)
           
static ScmResult getScmResult(Map<String,Object> context, ScmResult defaultValue)
           
static Map<Integer,ScmResult> getScmResultMap(Map<String,Object> context)
           
static String getString(Map<String,Object> context, String key)
           
static String getString(Map<String,Object> context, String key, String defaultValue)
           
static Project getUnvalidatedProject(Map<String,Object> context)
           
static ProjectGroup getUnvalidatedProjectGroup(Map<String,Object> context)
           
static List<ProjectDependency> getUpdatedDependencies(Map<String,Object> context)
           
static List<ProjectDependency> getUpdatedDependencies(Map<String,Object> context, List<ProjectDependency> defaultValue)
           
static File getWorkingDirectory(Map<String,Object> context)
           
static boolean isRootDirectory(Map<String,Object> context)
           
static void setBuildDefinition(Map<String,Object> context, BuildDefinition bd)
           
static void setBuildDefinitionId(Map<String,Object> context, int buildDefintionId)
           
static void setBuildDefinitionTemplate(Map<String,Object> context, BuildDefinitionTemplate bdt)
           
static void setBuildId(Map<String,Object> context, String buildId)
           
static void setBuildTrigger(Map<String,Object> context, BuildTrigger buildTrigger)
           
static void setListOfProjects(Map<String,Object> context, List<Project> projects)
           
static void setListOfProjectsInGroupWithCommonScmRoot(Map<String,Object> context, List<Project> projects)
           
static void setOldBuildId(Map<String,Object> context, int oldBuildId)
           
static void setOldScmResult(Map<String,Object> context, ScmResult oldScmResult)
           
static void setProject(Map<String,Object> context, Project p)
           
static void setProjectGroupId(Map<String,Object> context, int projectGroupId)
           
static void setProjectId(Map<String,Object> context, int projectId)
           
static void setProjectsBuildDefinitionsMap(Map<String,Object> context, Map<Integer,BuildDefinition> projectsBuildDefinitionsMap)
           
static void setProjectScmRoot(Map<String,Object> context, ProjectScmRoot projectScmRoot)
           
static void setProjectScmRootUrl(Map<String,Object> context, String projectScmRootUrl)
           
static void setRootDirectory(Map<String,Object> context, boolean isRootDirectory)
           
static void setScmResult(Map<String,Object> context, ScmResult scmResult)
           
static void setScmResultMap(Map<String,Object> context, Map<Integer,ScmResult> scmResultMap)
           
static void setUnvalidatedProject(Map<String,Object> context, Project p)
           
static void setUnvalidatedProjectGroup(Map<String,Object> context, ProjectGroup pg)
           
static void setUpdatedDependencies(Map<String,Object> context, List<ProjectDependency> dependencies)
           
static void setWorkingDirectory(Map<String,Object> context, String workingDirectory)
           
 
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

AbstractContinuumAction

public AbstractContinuumAction()
Method Detail

getProjectId

public static int getProjectId(Map<String,Object> context)

setProjectId

public static void setProjectId(Map<String,Object> context,
                                int projectId)

getProject

public static Project getProject(Map<String,Object> context)

getProject

public static Project getProject(Map<String,Object> context,
                                 Project defaultValue)

setProject

public static void setProject(Map<String,Object> context,
                              Project p)

getProjectGroupId

public static int getProjectGroupId(Map<String,Object> context)

setProjectGroupId

public static void setProjectGroupId(Map<String,Object> context,
                                     int projectGroupId)

getBuildDefinitionTemplate

public static BuildDefinitionTemplate getBuildDefinitionTemplate(Map<String,Object> context)

setBuildDefinitionTemplate

public static void setBuildDefinitionTemplate(Map<String,Object> context,
                                              BuildDefinitionTemplate bdt)

getBuildDefinition

public static BuildDefinition getBuildDefinition(Map<String,Object> context)

setBuildDefinition

public static void setBuildDefinition(Map<String,Object> context,
                                      BuildDefinition bd)

getBuildDefinitionId

public static int getBuildDefinitionId(Map<String,Object> context)

setBuildDefinitionId

public static void setBuildDefinitionId(Map<String,Object> context,
                                        int buildDefintionId)

getBuildId

public static String getBuildId(Map<String,Object> context)

getBuildId

public static String getBuildId(Map<String,Object> context,
                                String defaultValue)

setBuildId

public static void setBuildId(Map<String,Object> context,
                              String buildId)

getBuildTrigger

public static BuildTrigger getBuildTrigger(Map<String,Object> context)

setBuildTrigger

public static void setBuildTrigger(Map<String,Object> context,
                                   BuildTrigger buildTrigger)

getUnvalidatedProject

public static Project getUnvalidatedProject(Map<String,Object> context)

setUnvalidatedProject

public static void setUnvalidatedProject(Map<String,Object> context,
                                         Project p)

getUnvalidatedProjectGroup

public static ProjectGroup getUnvalidatedProjectGroup(Map<String,Object> context)

setUnvalidatedProjectGroup

public static void setUnvalidatedProjectGroup(Map<String,Object> context,
                                              ProjectGroup pg)

getWorkingDirectory

public static File getWorkingDirectory(Map<String,Object> context)

setWorkingDirectory

public static void setWorkingDirectory(Map<String,Object> context,
                                       String workingDirectory)

getUpdatedDependencies

public static List<ProjectDependency> getUpdatedDependencies(Map<String,Object> context)

getUpdatedDependencies

public static List<ProjectDependency> getUpdatedDependencies(Map<String,Object> context,
                                                             List<ProjectDependency> defaultValue)

setUpdatedDependencies

public static void setUpdatedDependencies(Map<String,Object> context,
                                          List<ProjectDependency> dependencies)

getScmResult

public static ScmResult getScmResult(Map<String,Object> context)

getScmResult

public static ScmResult getScmResult(Map<String,Object> context,
                                     ScmResult defaultValue)

setScmResult

public static void setScmResult(Map<String,Object> context,
                                ScmResult scmResult)

getOldScmResult

public static ScmResult getOldScmResult(Map<String,Object> context)

getOldScmResult

public static ScmResult getOldScmResult(Map<String,Object> context,
                                        ScmResult defaultValue)

setOldScmResult

public static void setOldScmResult(Map<String,Object> context,
                                   ScmResult oldScmResult)

getProjectScmRoot

public static ProjectScmRoot getProjectScmRoot(Map<String,Object> context)

setProjectScmRoot

public static void setProjectScmRoot(Map<String,Object> context,
                                     ProjectScmRoot projectScmRoot)

getOldBuildId

public static int getOldBuildId(Map<String,Object> context)

setOldBuildId

public static void setOldBuildId(Map<String,Object> context,
                                 int oldBuildId)

getListOfProjects

public static List<Project> getListOfProjects(Map<String,Object> context)

setListOfProjects

public static void setListOfProjects(Map<String,Object> context,
                                     List<Project> projects)

getListOfProjectsInGroupWithCommonScmRoot

public static List<Project> getListOfProjectsInGroupWithCommonScmRoot(Map<String,Object> context)

setListOfProjectsInGroupWithCommonScmRoot

public static void setListOfProjectsInGroupWithCommonScmRoot(Map<String,Object> context,
                                                             List<Project> projects)

getProjectsBuildDefinitionsMap

public static Map<Integer,BuildDefinition> getProjectsBuildDefinitionsMap(Map<String,Object> context)

setProjectsBuildDefinitionsMap

public static void setProjectsBuildDefinitionsMap(Map<String,Object> context,
                                                  Map<Integer,BuildDefinition> projectsBuildDefinitionsMap)

getScmResultMap

public static Map<Integer,ScmResult> getScmResultMap(Map<String,Object> context)

setScmResultMap

public static void setScmResultMap(Map<String,Object> context,
                                   Map<Integer,ScmResult> scmResultMap)

isRootDirectory

public static boolean isRootDirectory(Map<String,Object> context)

setRootDirectory

public static void setRootDirectory(Map<String,Object> context,
                                    boolean isRootDirectory)

getProjectScmRootUrl

public static String getProjectScmRootUrl(Map<String,Object> context,
                                          String projectScmRootUrl)

setProjectScmRootUrl

public static void setProjectScmRootUrl(Map<String,Object> context,
                                        String projectScmRootUrl)

getString

public static String getString(Map<String,Object> context,
                               String key)

getString

public static String getString(Map<String,Object> context,
                               String key,
                               String defaultValue)

getBoolean

public static boolean getBoolean(Map<String,Object> context,
                                 String key)

getBoolean

public static boolean getBoolean(Map<String,Object> context,
                                 String key,
                                 boolean defaultValue)

getInteger

protected static int getInteger(Map<String,Object> context,
                                String key)

getObject

protected static Object getObject(Map<String,Object> context,
                                  String key)

getObject

protected static Object getObject(Map<String,Object> context,
                                  String key,
                                  Object defaultValue)


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