Class GitHubSCMNavigator.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<jenkins.scm.api.SCMNavigator>
jenkins.scm.api.SCMNavigatorDescriptor
org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.DescriptorImpl
- Enclosing class:
- GitHubSCMNavigator
@Symbol("github")
@Extension
public static class GitHubSCMNavigator.DescriptorImpl
extends jenkins.scm.api.SCMNavigatorDescriptor
implements IconSpec
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
Deprecated.static final boolean
Deprecated.static final boolean
Deprecated.static final boolean
Deprecated.static final boolean
Deprecated.static final boolean
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Fields inherited from class jenkins.scm.api.SCMNavigatorDescriptor
categories
Fields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected jenkins.scm.api.SCMSourceCategory[]
doCheckCredentialsId
(Item context, String apiUri, String credentialsId, String repoOwner) Validates the selected credentials.Returns the available GitHub endpoint items.doFillCredentialsIdItems
(Item context, String apiUri, String credentialsId) Populates the drop-down list of credentials.List<jenkins.scm.api.trait.SCMTrait<? extends jenkins.scm.api.trait.SCMTrait<?>>>
List<jenkins.scm.impl.form.NamedArrayList<? extends jenkins.scm.api.trait.SCMTraitDescriptor<?>>>
Returns theSCMTraitDescriptor
instances grouped into categories.boolean
Returnstrue
if there is more than one GitHub endpoint configured, and consequently the UI should provide the ability to select the endpoint.jenkins.scm.api.SCMNavigator
newInstance
(String name) Methods inherited from class jenkins.scm.api.SCMNavigatorDescriptor
getCategories, getCategoryId
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
-
Field Details
-
defaultIncludes
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("2.2.0") public static final String defaultIncludesDeprecated.- See Also:
-
defaultExcludes
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("2.2.0") public static final String defaultExcludesDeprecated.- See Also:
-
SAME
- See Also:
-
defaultBuildOriginBranch
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("2.2.0") public static final boolean defaultBuildOriginBranchDeprecated.- See Also:
-
defaultBuildOriginBranchWithPR
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("2.2.0") public static final boolean defaultBuildOriginBranchWithPRDeprecated.- See Also:
-
defaultBuildOriginPRMerge
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("2.2.0") public static final boolean defaultBuildOriginPRMergeDeprecated.- See Also:
-
defaultBuildOriginPRHead
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("2.2.0") public static final boolean defaultBuildOriginPRHeadDeprecated.- See Also:
-
defaultBuildForkPRMerge
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("2.2.0") public static final boolean defaultBuildForkPRMergeDeprecated.- See Also:
-
defaultBuildForkPRHead
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("2.2.0") public static final boolean defaultBuildForkPRHeadDeprecated.- See Also:
-
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
getPronoun
- Overrides:
getPronoun
in classjenkins.scm.api.SCMNavigatorDescriptor
-
getDisplayName
- Overrides:
getDisplayName
in classDescriptor<jenkins.scm.api.SCMNavigator>
-
getDescription
- Overrides:
getDescription
in classjenkins.scm.api.SCMNavigatorDescriptor
-
getIconFilePathPattern
- Overrides:
getIconFilePathPattern
in classjenkins.scm.api.SCMNavigatorDescriptor
-
getIconClassName
- Specified by:
getIconClassName
in interfaceIconSpec
- Overrides:
getIconClassName
in classjenkins.scm.api.SCMNavigatorDescriptor
-
newInstance
- Overrides:
newInstance
in classjenkins.scm.api.SCMNavigatorDescriptor
-
createCategories
@NonNull protected jenkins.scm.api.SCMSourceCategory[] createCategories()- Overrides:
createCategories
in classjenkins.scm.api.SCMNavigatorDescriptor
-
doCheckCredentialsId
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public FormValidation doCheckCredentialsId(@CheckForNull @AncestorInPath Item context, @QueryParameter String apiUri, @QueryParameter String credentialsId, @QueryParameter String repoOwner) Validates the selected credentials.- Parameters:
context
- the context.apiUri
- the end-point.credentialsId
- the credentials.- Returns:
- validation results.
- Since:
- 2.2.0
-
doFillCredentialsIdItems
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public ListBoxModel doFillCredentialsIdItems(@CheckForNull @AncestorInPath Item context, @QueryParameter String apiUri, @QueryParameter String credentialsId) Populates the drop-down list of credentials.- Parameters:
context
- the context.apiUri
- the end-point.credentialsId
- the existing selection;- Returns:
- the drop-down list.
- Since:
- 2.2.0
-
doFillApiUriItems
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public ListBoxModel doFillApiUriItems()Returns the available GitHub endpoint items.- Returns:
- the available GitHub endpoint items.
-
isApiUriSelectable
public boolean isApiUriSelectable()Returnstrue
if there is more than one GitHub endpoint configured, and consequently the UI should provide the ability to select the endpoint.- Returns:
true
if there is more than one GitHub endpoint configured.
-
getTraitsDescriptorLists
public List<jenkins.scm.impl.form.NamedArrayList<? extends jenkins.scm.api.trait.SCMTraitDescriptor<?>>> getTraitsDescriptorLists()Returns theSCMTraitDescriptor
instances grouped into categories.- Returns:
- the categorized list of
SCMTraitDescriptor
instances. - Since:
- 2.2.0
-
getTraitsDefaults
@NonNull public List<jenkins.scm.api.trait.SCMTrait<? extends jenkins.scm.api.trait.SCMTrait<?>>> getTraitsDefaults()- Overrides:
getTraitsDefaults
in classjenkins.scm.api.SCMNavigatorDescriptor
-