org.apache.maven.continuum.web.action
Class AddMavenTwoProjectAction

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by org.apache.maven.continuum.web.action.PlexusActionSupport
          extended by org.apache.maven.continuum.web.action.ContinuumActionSupport
              extended by org.apache.maven.continuum.web.action.AddMavenProjectAction
                  extended by org.apache.maven.continuum.web.action.AddMavenTwoProjectAction
All Implemented Interfaces:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.Preparable, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, Serializable, org.apache.struts2.interceptor.ServletRequestAware, org.apache.struts2.interceptor.SessionAware

public class AddMavenTwoProjectAction
extends AddMavenProjectAction

Add a Maven 2 project to Continuum.

Version:
$Id: AddMavenTwoProjectAction.java 1372260 2012-08-13 04:29:09Z brett $
Author:
Nick Gonzalez, Carlos Sanchez
See Also:
Serialized Form

Field Summary
static String ERROR_READING_POM_EXCEPTION_MESSAGE
           
static String ERROR_UPLOADING_M2_PROJECT_WITH_MODULES
           
static String FILE_SCHEME
           
 
Fields inherited from class org.apache.maven.continuum.web.action.ContinuumActionSupport
dateFormatter, ERROR_MSG_AUTHORIZATION_REQUIRED, ERROR_MSG_PROCESSING_AUTHORIZATION, RELEASE_ERROR, REQUIRES_AUTHENTICATION, REQUIRES_AUTHORIZATION
 
Fields inherited from class org.apache.maven.continuum.web.action.PlexusActionSupport
session
 
Fields inherited from class com.opensymphony.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
AddMavenTwoProjectAction()
           
 
Method Summary
protected  ContinuumProjectBuildingResult doExecute(String pomUrl, int selectedProjectGroup, boolean checkProtocol, boolean scmUseCache)
          Subclasses must implement this method calling the appropiate operation on the continuum service.
 String getCheckoutOption()
           
 File getM2PomFile()
          Deprecated. Use AddMavenProjectAction.getPomFile() instead
 String getM2PomUrl()
          Deprecated. Use AddMavenProjectAction.getPomUrl() instead
 void setCheckoutOption(String checkoutOption)
           
 void setM2PomFile(File pomFile)
          Deprecated. Use AddMavenProjectAction.setPomFile(File) instead
 void setM2PomUrl(String pomUrl)
          Deprecated. Use AddMavenProjectAction.setPomUrl(String) instead
 
Methods inherited from class org.apache.maven.continuum.web.action.AddMavenProjectAction
doDefault, execute, getBuildDefinitionTemplateId, getBuildDefinitionTemplates, getErrorMessages, getPom, getPomFile, getPomUrl, getProjectGroupId, getProjectGroupName, getProjectGroups, getScmUsername, getSelectedProjectGroup, hidePasswordInUrl, input, isDisableGroupSelection, isScmUseCache, setBuildDefinitionTemplateId, setBuildDefinitionTemplates, setDisableGroupSelection, setErrorMessages, setPom, setPomFile, setPomUrl, setProjectGroupId, setProjectGroupName, setScmPassword, setScmUseCache, setScmUsername, setSelectedProjectGroup, setServletRequest
 
Methods inherited from class org.apache.maven.continuum.web.action.ContinuumActionSupport
checkAddGroupBuildDefinitionAuthorization, checkAddProjectBuildDefinitionAuthorization, checkAddProjectGroupAuthorization, checkAddProjectGroupNotifierAuthorization, checkAddProjectNotifierAuthorization, checkAddProjectToGroupAuthorization, checkAuthorization, checkAuthorization, checkAuthorization, checkBuildProjectGroupAuthorization, checkBuildProjectInGroupAuthorization, checkManageConfigurationAuthorization, checkManageLocalRepositoriesAuthorization, checkManageQueuesAuthorization, checkManageSchedulesAuthorization, checkModifyGroupBuildDefinitionAuthorization, checkModifyProjectBuildDefinitionAuthorization, checkModifyProjectGroupAuthorization, checkModifyProjectGroupNotifierAuthorization, checkModifyProjectInGroupAuthorization, checkModifyProjectNotifierAuthorization, checkRemoveGroupBuildDefinitionAuthorization, checkRemoveProjectBuildDefinitionAuthorization, checkRemoveProjectFromGroupAuthorization, checkRemoveProjectGroupAuthorization, checkRemoveProjectGroupNotifierAuthorization, checkRemoveProjectNotifierAuthorization, checkViewProjectGroupAuthorization, checkViewReportsAuthorization, getContinuum, getPrincipal, getResourceBundle, getSecuritySystem, getUser, isAuthenticated, prepare, requiresAuthentication, setContinuum
 
Methods inherited from class org.apache.maven.continuum.web.action.PlexusActionSupport
setSession
 
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, pause, setActionErrors, setActionMessages, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR_UPLOADING_M2_PROJECT_WITH_MODULES

public static final String ERROR_UPLOADING_M2_PROJECT_WITH_MODULES
See Also:
Constant Field Values

ERROR_READING_POM_EXCEPTION_MESSAGE

public static final String ERROR_READING_POM_EXCEPTION_MESSAGE
See Also:
Constant Field Values

FILE_SCHEME

public static final String FILE_SCHEME
See Also:
Constant Field Values
Constructor Detail

AddMavenTwoProjectAction

public AddMavenTwoProjectAction()
Method Detail

doExecute

protected ContinuumProjectBuildingResult doExecute(String pomUrl,
                                                   int selectedProjectGroup,
                                                   boolean checkProtocol,
                                                   boolean scmUseCache)
                                            throws ContinuumException
Description copied from class: AddMavenProjectAction
Subclasses must implement this method calling the appropiate operation on the continuum service.

Specified by:
doExecute in class AddMavenProjectAction
Parameters:
pomUrl - url of the pom specified by the user
selectedProjectGroup - project group id selected by the user
checkProtocol - check if the protocol is allowed, use false if the pom is uploaded
Returns:
result of adding the pom to continuum
Throws:
ContinuumException

getM2PomFile

public File getM2PomFile()
Deprecated. Use AddMavenProjectAction.getPomFile() instead


setM2PomFile

public void setM2PomFile(File pomFile)
Deprecated. Use AddMavenProjectAction.setPomFile(File) instead


getM2PomUrl

public String getM2PomUrl()
Deprecated. Use AddMavenProjectAction.getPomUrl() instead


setM2PomUrl

public void setM2PomUrl(String pomUrl)
Deprecated. Use AddMavenProjectAction.setPomUrl(String) instead


getCheckoutOption

public String getCheckoutOption()

setCheckoutOption

public void setCheckoutOption(String checkoutOption)


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