Interface WebhookManagementService

All Known Implementing Classes:
WebhookManagementServiceImpl

public interface WebhookManagementService
  • Method Details

    • createRepositoryWebhook

      WebhookResponse createRepositoryWebhook(String owner, String slug, String username, String password, String bambooEntryPoint)
      Create a webhooks for specified repository.
      Parameters:
      owner - e.g. workspace
      slug - repository slug
      username - username of the user with access to perform rest call
      password - password of the user, in most cases the app password
      bambooEntryPoint - bamboo entrypoint used by bbc to send webhooks
      Returns:
      Newly created webhook
    • destroyRepositoryWebhook

      void destroyRepositoryWebhook(String owner, String slug, String username, String password, String webhookUuid)
      Destroys a webhook with requested uuid for specified repository.
      Parameters:
      owner - e.g. workspace
      slug - repository slug
      username - username of the user with access to perform rest call
      password - password of the user, in most cases the app password
      webhookUuid - unique webhook uuid
    • getRepositoryWebhooks

      ListWebhooksResponse getRepositoryWebhooks(String owner, String slug, String username, String password)
      Retrieve a list of all available webhooks specified for the specified repository.
      Parameters:
      owner - e.g. workspace
      slug - repository slug
      username - username of the user with access to perform rest call
      password - password of the user, in most cases the app password
      Returns:
      List of webhooks