@Extension @Symbol(value="gerrit") public static final class GerritTrigger.DescriptorImpl extends TriggerDescriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
clazz
Constructor and Description |
---|
DescriptorImpl()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
AutoCompletionCandidates |
doAutoCompleteDependencyJobsNames(String value,
Item self,
ItemGroup container)
Provides auto-completion candidates for dependency jobs names.
|
FormValidation |
doCheckDependencyJobsNames(Item project,
String value)
Validates that the dependency jobs are legitimate and do not create cycles.
|
FormValidation |
doEmptyOrIntegerCheck(String value)
Checks that the provided parameter is an empty string or an integer.
|
ListBoxModel |
doFillGerritSlaveIdItems(String serverName)
Fill the Gerrit slave dropdown with the list of slaves configured with the selected server.
|
ListBoxModel |
doFillNotificationLevelItems(String serverName)
Fill the dropdown for notification levels.
|
ListBoxModel |
doFillServerNameItems()
Fill the server dropdown with the list of servers configured globally.
|
FormValidation |
doUrlCheck(String value)
Checks that the provided parameter is nonempty and a valid URL.
|
CompareType[] |
getCompareTypes()
A list of CompareTypes for the UI.
|
String |
getDisplayName() |
List<PluginGerritEvent.PluginGerritEventDescriptor> |
getGerritEventDescriptors()
Getter for the list of PluginGerritEventDescriptors.
|
String |
getHelpFile() |
boolean |
isApplicable(Item item) |
boolean |
isSlaveSelectionAllowedInJobs()
Whether slave selection in jobs should be allowed.
|
boolean |
isUnsuccessfulMessageFileSupported(Job job)
Checks if the provided job type can support
GerritTrigger.getBuildUnsuccessfulFilepath() . |
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
public boolean isUnsuccessfulMessageFileSupported(Job job)
GerritTrigger.getBuildUnsuccessfulFilepath()
.
I.e. if the job is an AbstractProject
.job
- the job to check.public FormValidation doEmptyOrIntegerCheck(@QueryParameter(value="value") String value)
value
- the value.FormValidation.validatePositiveInteger(String)
public AutoCompletionCandidates doAutoCompleteDependencyJobsNames(@QueryParameter String value, @AncestorInPath Item self, @AncestorInPath ItemGroup container)
value
- the value.self
- the current instance.container
- the container.AutoCompletionCandidates
public FormValidation doCheckDependencyJobsNames(@AncestorInPath Item project, @QueryParameter String value)
value
- the string value.project
- the current project.FormValidation
public ListBoxModel doFillServerNameItems()
public boolean isSlaveSelectionAllowedInJobs()
public ListBoxModel doFillGerritSlaveIdItems(@QueryParameter(value="serverName") String serverName)
serverName
- the name of the selected server.public FormValidation doUrlCheck(@QueryParameter(value="value") String value)
value
- the value.FormValidation.ok()
public ListBoxModel doFillNotificationLevelItems(@QueryParameter(value="serverName") String serverName)
serverName
- the server name.public boolean isApplicable(Item item)
isApplicable
in class TriggerDescriptor
public String getDisplayName()
getDisplayName
in class Descriptor<Trigger<?>>
public String getHelpFile()
getHelpFile
in class Descriptor<Trigger<?>>
public CompareType[] getCompareTypes()
public List<PluginGerritEvent.PluginGerritEventDescriptor> getGerritEventDescriptors()
Copyright © 2016–2019. All rights reserved.