Class WebhookManagementServiceImpl

    • Constructor Detail

      • WebhookManagementServiceImpl

        public WebhookManagementServiceImpl()
    • Method Detail

      • createRepositoryWebhook

        public WebhookResponse createRepositoryWebhook​(@NotNull
                                                       @NotNull String owner,
                                                       @NotNull
                                                       @NotNull String slug,
                                                       @NotNull
                                                       @NotNull String username,
                                                       @NotNull
                                                       @NotNull String password,
                                                       @NotNull
                                                       @NotNull String bambooEntryPoint)
        Description copied from interface: WebhookManagementService
        Create a webhooks for specified repository.
        Specified by:
        createRepositoryWebhook in interface WebhookManagementService
        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

        public void destroyRepositoryWebhook​(String owner,
                                             String slug,
                                             String username,
                                             String password,
                                             String webhookUuid)
        Description copied from interface: WebhookManagementService
        Destroys a webhook with requested uuid for specified repository.
        Specified by:
        destroyRepositoryWebhook in interface WebhookManagementService
        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

        public ListWebhooksResponse getRepositoryWebhooks​(String owner,
                                                          String slug,
                                                          String username,
                                                          String password)
        Description copied from interface: WebhookManagementService
        Retrieve a list of all available webhooks specified for the specified repository.
        Specified by:
        getRepositoryWebhooks in interface WebhookManagementService
        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