Interface WebhookManagementService
-
- All Known Implementing Classes:
WebhookManagementServiceImpl
public interface WebhookManagementService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WebhookResponsecreateRepositoryWebhook(String owner, String slug, String username, String password, String bambooEntryPoint)Create a webhooks for specified repository.voiddestroyRepositoryWebhook(String owner, String slug, String username, String password, String webhookUuid)Destroys a webhook with requested uuid for specified repository.ListWebhooksResponsegetRepositoryWebhooks(String owner, String slug, String username, String password)Retrieve a list of all available webhooks specified for the specified repository.
-
-
-
Method Detail
-
createRepositoryWebhook
WebhookResponse createRepositoryWebhook(String owner, String slug, String username, String password, String bambooEntryPoint)
Create a webhooks for specified repository.- Parameters:
owner- e.g. workspaceslug- repository slugusername- username of the user with access to perform rest callpassword- password of the user, in most cases the app passwordbambooEntryPoint- 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. workspaceslug- repository slugusername- username of the user with access to perform rest callpassword- password of the user, in most cases the app passwordwebhookUuid- 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. workspaceslug- repository slugusername- username of the user with access to perform rest callpassword- password of the user, in most cases the app password- Returns:
- List of webhooks
-
-