Class PostWebhooks2Manager

java.lang.Object
io.jenkins.plugins.bitbucket.webhook.moveworkforward.v2.PostWebhooks2Manager
All Implemented Interfaces:
com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookManager, ExtensionPoint

@Extension public class PostWebhooks2Manager extends Object implements com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookManager
  • Nested Class Summary

    Nested classes/interfaces inherited from interface hudson.ExtensionPoint

    ExtensionPoint.LegacyInstancesAreScopedToHudson
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookConfiguration configuration)
     
    void
    apply(jenkins.scm.api.trait.SCMSourceTrait trait)
     
    Collection<com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketWebHook>
    read(com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketAuthenticatedClient client)
     
    void
    register(com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketAuthenticatedClient client)
     
    void
    remove(String webhookId, com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketAuthenticatedClient client)
     
    void
    setCallbackURL(String callbackURL, com.cloudbees.jenkins.plugins.bitbucket.api.endpoint.BitbucketEndpoint endpoint)
     
    Collection<Class<? extends jenkins.scm.api.trait.SCMSourceTrait>>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookManager

    withTraits
  • Constructor Details

    • PostWebhooks2Manager

      public PostWebhooks2Manager()
  • Method Details

    • supportedTraits

      public Collection<Class<? extends jenkins.scm.api.trait.SCMSourceTrait>> supportedTraits()
      Specified by:
      supportedTraits in interface com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookManager
    • apply

      public void apply(jenkins.scm.api.trait.SCMSourceTrait trait)
      Specified by:
      apply in interface com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookManager
    • apply

      public void apply(com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookConfiguration configuration)
      Specified by:
      apply in interface com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookManager
    • setCallbackURL

      public void setCallbackURL(@NonNull String callbackURL, @NonNull com.cloudbees.jenkins.plugins.bitbucket.api.endpoint.BitbucketEndpoint endpoint)
      Specified by:
      setCallbackURL in interface com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookManager
    • read

      @NonNull public Collection<com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketWebHook> read(@NonNull com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketAuthenticatedClient client) throws IOException
      Specified by:
      read in interface com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookManager
      Throws:
      IOException
    • remove

      public void remove(@NonNull String webhookId, @NonNull com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketAuthenticatedClient client) throws IOException
      Specified by:
      remove in interface com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookManager
      Throws:
      IOException
    • register

      public void register(@NonNull com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketAuthenticatedClient client) throws IOException
      Specified by:
      register in interface com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookManager
      Throws:
      IOException