org.apache.maven.continuum.project.builder
Class ContinuumProjectBuildingResult

java.lang.Object
  extended by org.apache.maven.continuum.project.builder.ContinuumProjectBuildingResult

public class ContinuumProjectBuildingResult
extends Object

Holder for results of adding projects to Continuum. Contains added projects, project groups and errors that happened during the add.

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

Field Summary
static String ERROR_ARTIFACT_NOT_FOUND
           
static String ERROR_CONNECT
           
static String ERROR_DUPLICATE_PROJECTS
           
static String ERROR_EXTEND
           
static String ERROR_MALFORMED_URL
           
static String ERROR_METADATA_TRANSFER
           
static String ERROR_MISSING_ARTIFACTID
           
static String ERROR_MISSING_GROUPID
           
static String ERROR_MISSING_NAME
           
static String ERROR_MISSING_NOTIFIER_CONFIGURATION
           
static String ERROR_MISSING_NOTIFIER_TYPE
           
static String ERROR_MISSING_REPOSITORY
           
static String ERROR_MISSING_SCM
           
static String ERROR_MISSING_SCM_CONNECTION
           
static String ERROR_MISSING_VERSION
           
static String ERROR_POM_NOT_FOUND
           
static String ERROR_PROJECT_BUILDING
           
static String ERROR_PROTOCOL_NOT_ALLOWED
           
static String ERROR_UNAUTHORIZED
           
static String ERROR_UNKNOWN
           
static String ERROR_UNKNOWN_HOST
           
static String ERROR_VALIDATION
           
static String ERROR_XML_PARSE
           
 
Constructor Summary
ContinuumProjectBuildingResult()
           
 
Method Summary
 void addError(String errorKey)
          Add an error that happened during adding the project to Continuum.
 void addError(String errorKey, Object param)
          Add an error that happened during adding the project to Continuum.
 void addError(String errorKey, Object[] params)
          Add an error that happened during adding the project to Continuum.
 void addProject(Project project)
           
 void addProject(Project project, String executorId)
           
 void addProjectGroup(ProjectGroup projectGroup)
           
 void addWarning(String warningKey)
          Deprecated. Use addError(String) instead
 List<String> getErrors()
          Get the errors that happened during adding the project to Continuum.
 String getErrorsAsString()
          Returns a string representation of the errors.
 Map<String,String> getErrorsWithCause()
           
 List<ProjectGroup> getProjectGroups()
           
 List<Project> getProjects()
           
 Project getRootProject()
           
 List<String> getWarnings()
          Deprecated. Use getErrors() instead
 boolean hasErrors()
          Quick check to see if there are any errors.
 void setRootProject(Project rootProject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR_MALFORMED_URL

public static final String ERROR_MALFORMED_URL
See Also:
Constant Field Values

ERROR_UNKNOWN_HOST

public static final String ERROR_UNKNOWN_HOST
See Also:
Constant Field Values

ERROR_CONNECT

public static final String ERROR_CONNECT
See Also:
Constant Field Values

ERROR_XML_PARSE

public static final String ERROR_XML_PARSE
See Also:
Constant Field Values

ERROR_EXTEND

public static final String ERROR_EXTEND
See Also:
Constant Field Values

ERROR_MISSING_GROUPID

public static final String ERROR_MISSING_GROUPID
See Also:
Constant Field Values

ERROR_MISSING_ARTIFACTID

public static final String ERROR_MISSING_ARTIFACTID
See Also:
Constant Field Values

ERROR_POM_NOT_FOUND

public static final String ERROR_POM_NOT_FOUND
See Also:
Constant Field Values

ERROR_MISSING_VERSION

public static final String ERROR_MISSING_VERSION
See Also:
Constant Field Values

ERROR_MISSING_NAME

public static final String ERROR_MISSING_NAME
See Also:
Constant Field Values

ERROR_MISSING_REPOSITORY

public static final String ERROR_MISSING_REPOSITORY
See Also:
Constant Field Values

ERROR_MISSING_SCM

public static final String ERROR_MISSING_SCM
See Also:
Constant Field Values

ERROR_MISSING_SCM_CONNECTION

public static final String ERROR_MISSING_SCM_CONNECTION
See Also:
Constant Field Values

ERROR_MISSING_NOTIFIER_TYPE

public static final String ERROR_MISSING_NOTIFIER_TYPE
See Also:
Constant Field Values

ERROR_MISSING_NOTIFIER_CONFIGURATION

public static final String ERROR_MISSING_NOTIFIER_CONFIGURATION
See Also:
Constant Field Values

ERROR_METADATA_TRANSFER

public static final String ERROR_METADATA_TRANSFER
See Also:
Constant Field Values

ERROR_VALIDATION

public static final String ERROR_VALIDATION
See Also:
Constant Field Values

ERROR_UNAUTHORIZED

public static final String ERROR_UNAUTHORIZED
See Also:
Constant Field Values

ERROR_PROTOCOL_NOT_ALLOWED

public static final String ERROR_PROTOCOL_NOT_ALLOWED
See Also:
Constant Field Values

ERROR_ARTIFACT_NOT_FOUND

public static final String ERROR_ARTIFACT_NOT_FOUND
See Also:
Constant Field Values

ERROR_PROJECT_BUILDING

public static final String ERROR_PROJECT_BUILDING
See Also:
Constant Field Values

ERROR_UNKNOWN

public static final String ERROR_UNKNOWN
See Also:
Constant Field Values

ERROR_DUPLICATE_PROJECTS

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

ContinuumProjectBuildingResult

public ContinuumProjectBuildingResult()
Method Detail

addProject

public void addProject(Project project)

addProjectGroup

public void addProjectGroup(ProjectGroup projectGroup)

addProject

public void addProject(Project project,
                       String executorId)

getProjects

public List<Project> getProjects()

getProjectGroups

public List<ProjectGroup> getProjectGroups()

addWarning

public void addWarning(String warningKey)
Deprecated. Use addError(String) instead

Add a warning that happened during adding the project to Continuum.

Parameters:
warningKey - warning id (so it can be internationalized later)

addError

public void addError(String errorKey)
Add an error that happened during adding the project to Continuum.

Parameters:
errorKey - error id (so it can be internationalized later)

addError

public void addError(String errorKey,
                     Object param)
Add an error that happened during adding the project to Continuum.

Parameters:
errorKey - error id (so it can be internationalized later)

addError

public void addError(String errorKey,
                     Object[] params)
Add an error that happened during adding the project to Continuum.

Parameters:
errorKey - error id (so it can be internationalized later)

getWarnings

public List<String> getWarnings()
Deprecated. Use getErrors() instead

Get the warnings that happened during adding the project to Continuum. There is an entry with the warning key (so it can be internationalized later) for each warning.

Returns:
List < String >

getErrors

public List<String> getErrors()
Get the errors that happened during adding the project to Continuum. There is an entry with the error key (so it can be internationalized later) for each error.

Returns:
List < String >

getErrorsWithCause

public Map<String,String> getErrorsWithCause()

hasErrors

public boolean hasErrors()
Quick check to see if there are any errors.

Returns:
boolean indicating if there are any errors.

getErrorsAsString

public String getErrorsAsString()
Returns a string representation of the errors.

Returns:
a string representation of the errors.

getRootProject

public Project getRootProject()

setRootProject

public void setRootProject(Project rootProject)


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