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
-
Method Summary
Modifier and TypeMethodDescriptiondoAutoCompleteCategories
(String value) Does the auto completion for categories, matching with any category already present in the knowledge base.doCheckDescription
(String value) Form validation forFailureCause.description
.doCheckName
(String value, String id) Form validation forFailureCause.name
.void
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, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, 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, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
FailureCauseDescriptor
public FailureCauseDescriptor()
-
-
Method Details
-
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
- Overrides:
getDisplayName
in classDescriptor<FailureCause>
-
doCheckDescription
Form validation forFailureCause.description
. Checks for not empty and not "Description..."- Parameters:
value
- the form value.- Returns:
FormValidation.ok()
if everything is well.
-
doCheckName
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
Does the auto completion for categories, matching with any category already present in the knowledge base.- Parameters:
value
- the input value.- Returns:
- the AutoCompletionCandidates.
-