|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sonyericsson.jenkins.plugins.bfa.model.FailureCause
public class FailureCause
FailureCause of a build.
Nested Class Summary | |
---|---|
static class |
FailureCause.FailureCauseDescriptor
Descriptor is only used for auto completion of categories. |
Constructor Summary | |
---|---|
FailureCause()
Default constructor. |
|
FailureCause(String name,
String description)
Standard constructor. |
|
FailureCause(String id,
String name,
String description,
List<String> categories,
List<Indication> indications)
JSON constructor. |
|
FailureCause(String id,
String name,
String description,
String categories,
List<Indication> indications)
Standard data bound constructor. |
Method Summary | |
---|---|
void |
addIndication(Indication indication)
Adds an indication to the list. |
hudson.util.FormValidation |
doCheckDescription(String value)
Form validation for description . |
hudson.util.FormValidation |
doCheckName(String value)
Form validation for name . |
void |
doConfigSubmit(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
The form submission handler. |
CauseManagement |
getAncestorCauseManagement()
Finds the CauseManagement ancestor of the current request . |
List<String> |
getCategories()
Getter for the categories. |
String |
getCategoriesAsString()
Returns the categories as a String, used for the view. |
String |
getDescription()
Getter for the description. |
FailureCause.FailureCauseDescriptor |
getDescriptor()
|
String |
getDisplayName()
|
String |
getIconFileName()
|
String |
getId()
The id. |
List<Indication> |
getIndications()
Getter for the list of indications. |
String |
getName()
Getter for the name. |
String |
getUrlName()
|
void |
setCategories(List<String> categories)
Setter for the categories. |
void |
setId(String id)
The id. |
hudson.util.FormValidation |
validate(String newName,
String newDescription,
List<Indication> newIndications)
Validates this FailureCause. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@DataBoundConstructor public FailureCause(String id, String name, String description, String categories, List<Indication> indications)
id
- the id.name
- the name of this FailureCause.description
- the description of this FailureCause.categories
- the categories of this FailureCause.indications
- the list of indicationspublic FailureCause(String id, String name, String description, List<String> categories, List<Indication> indications)
id
- the id.name
- the name of this FailureCause.description
- the description of this FailureCause.categories
- the categories of this FailureCause.indications
- the list of indicationspublic FailureCause(String name, String description)
name
- the name of this FailureCause.description
- the description of this FailureCause.public FailureCause()
Method Detail |
---|
public hudson.util.FormValidation validate(String newName, String newDescription, List<Indication> newIndications)
doCheckName(String)
, doCheckDescription(String)
,
Indications.size > 0. and Indication.validate()
.
newName
- the name to validatenewDescription
- the descriptionnewIndications
- the list of indications
FormValidation.ok()
if everything is fine.public hudson.util.FormValidation doCheckDescription(@QueryParameter String value)
description
. Checks for not empty and not "Description..."
value
- the form value.
FormValidation.ok()
if everything is well.public hudson.util.FormValidation doCheckName(@QueryParameter String value)
name
. Checks for not empty, not "New...", Jenkins.checkGoodName(String)
and
that it is unique based on the cache of existing causes.
value
- the form value.
FormValidation.ok()
if everything is well.public void doConfigSubmit(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws Exception
request
- the request.response
- the response
Exception
- if it fails to save to the knowledge base or a validation error occurs.public void addIndication(Indication indication)
indication
- the indication to add.public String getId()
public void setId(String id)
id
- the id.public String getName()
public String getDescription()
public List<String> getCategories()
public String getCategoriesAsString()
public void setCategories(List<String> categories)
categories
- the categories.public List<Indication> getIndications()
public CauseManagement getAncestorCauseManagement()
CauseManagement
ancestor of the current request
.
IllegalStateException
- if no ancestor is found.public String getIconFileName()
getIconFileName
in interface hudson.model.Action
public String getDisplayName()
getDisplayName
in interface hudson.model.Action
getDisplayName
in interface hudson.model.ModelObject
public String getUrlName()
getUrlName
in interface hudson.model.Action
public FailureCause.FailureCauseDescriptor getDescriptor()
getDescriptor
in interface hudson.model.Describable<FailureCause>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |