Class GitHubSCMNavigator.DescriptorImpl

    • Constructor Detail

      • DescriptorImpl

        public DescriptorImpl()
    • Method Detail

      • getPronoun

        public String getPronoun()
        Overrides:
        getPronoun in class jenkins.scm.api.SCMNavigatorDescriptor
      • getDescription

        public String getDescription()
        Overrides:
        getDescription in class jenkins.scm.api.SCMNavigatorDescriptor
      • getIconFilePathPattern

        public String getIconFilePathPattern()
        Overrides:
        getIconFilePathPattern in class jenkins.scm.api.SCMNavigatorDescriptor
      • getIconClassName

        public String getIconClassName()
        Specified by:
        getIconClassName in interface IconSpec
        Overrides:
        getIconClassName in class jenkins.scm.api.SCMNavigatorDescriptor
      • newInstance

        public jenkins.scm.api.SCMNavigator newInstance​(String name)
        Overrides:
        newInstance in class jenkins.scm.api.SCMNavigatorDescriptor
      • createCategories

        @NonNull
        protected jenkins.scm.api.SCMSourceCategory[] createCategories()
        Overrides:
        createCategories in class jenkins.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()
        Returns true 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 the SCMTraitDescriptor 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 class jenkins.scm.api.SCMNavigatorDescriptor