Class FailureCause.FailureCauseDescriptor
- java.lang.Object
-
- hudson.model.Descriptor<FailureCause>
-
- com.sonyericsson.jenkins.plugins.bfa.model.FailureCause.FailureCauseDescriptor
-
- Enclosing class:
- FailureCause
@Extension public static final class FailureCause.FailureCauseDescriptor extends Descriptor<FailureCause>
Descriptor is only used for auto completion of categories.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description FailureCauseDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AutoCompletionCandidates
doAutoCompleteCategories(String value)
Does the auto completion for categories, matching with any category already present in the knowledge base.FormValidation
doCheckDescription(String value)
Form validation forFailureCause.description
.FormValidation
doCheckName(String value, String id)
Form validation forFailureCause.name
.String
getDisplayName()
String
getLastFailedBuildUrl()
void
setLastFailedBuildUrl()
Set the URL of the last failed build of the project from whose page the Failure Cause Management page was entered.-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
getLastFailedBuildUrl
public String getLastFailedBuildUrl()
- Returns:
- the URL to the last failed build of the project from whose page the Failure Cause Management page was entered.
-
setLastFailedBuildUrl
public void setLastFailedBuildUrl()
Set the URL of the last failed build of the project from whose page the Failure Cause Management page was entered.
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<FailureCause>
-
doCheckDescription
public FormValidation doCheckDescription(@QueryParameter String value)
Form validation forFailureCause.description
. Checks for not empty and not "Description..."- Parameters:
value
- the form value.- Returns:
FormValidation.ok()
if everything is well.
-
doCheckName
public FormValidation doCheckName(@QueryParameter String value, @QueryParameter String id)
Form validation forFailureCause.name
. Checks for not empty, not "New...",Jenkins.checkGoodName(String)
and that it is unique based on the cache of existing causes.- Parameters:
value
- the form value.id
- The id (if changing an existing cause).- Returns:
FormValidation.ok()
if everything is well.
-
doAutoCompleteCategories
public AutoCompletionCandidates doAutoCompleteCategories(@QueryParameter String value)
Does the auto completion for categories, matching with any category already present in the knowledge base.- Parameters:
value
- the input value.- Returns:
- the AutoCompletionCandidates.
-
-