|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.continuum.project.builder.ContinuumProjectBuildingResult
public class ContinuumProjectBuildingResult
Holder for results of adding projects to Continuum. Contains added projects, project groups and errors that happened during the add.
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 |
---|
public static final String ERROR_MALFORMED_URL
public static final String ERROR_UNKNOWN_HOST
public static final String ERROR_CONNECT
public static final String ERROR_XML_PARSE
public static final String ERROR_EXTEND
public static final String ERROR_MISSING_GROUPID
public static final String ERROR_MISSING_ARTIFACTID
public static final String ERROR_POM_NOT_FOUND
public static final String ERROR_MISSING_VERSION
public static final String ERROR_MISSING_NAME
public static final String ERROR_MISSING_REPOSITORY
public static final String ERROR_MISSING_SCM
public static final String ERROR_MISSING_SCM_CONNECTION
public static final String ERROR_MISSING_NOTIFIER_TYPE
public static final String ERROR_MISSING_NOTIFIER_CONFIGURATION
public static final String ERROR_METADATA_TRANSFER
public static final String ERROR_VALIDATION
public static final String ERROR_UNAUTHORIZED
public static final String ERROR_PROTOCOL_NOT_ALLOWED
public static final String ERROR_ARTIFACT_NOT_FOUND
public static final String ERROR_PROJECT_BUILDING
public static final String ERROR_UNKNOWN
public static final String ERROR_DUPLICATE_PROJECTS
Constructor Detail |
---|
public ContinuumProjectBuildingResult()
Method Detail |
---|
public void addProject(Project project)
public void addProjectGroup(ProjectGroup projectGroup)
public void addProject(Project project, String executorId)
public List<Project> getProjects()
public List<ProjectGroup> getProjectGroups()
public void addWarning(String warningKey)
addError(String)
instead
warningKey
- warning id (so it can be internationalized later)public void addError(String errorKey)
errorKey
- error id (so it can be internationalized later)public void addError(String errorKey, Object param)
errorKey
- error id (so it can be internationalized later)public void addError(String errorKey, Object[] params)
errorKey
- error id (so it can be internationalized later)public List<String> getWarnings()
getErrors()
instead
List
< String
>public List<String> getErrors()
List
< String
>public Map<String,String> getErrorsWithCause()
public boolean hasErrors()
public String getErrorsAsString()
public Project getRootProject()
public void setRootProject(Project rootProject)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |