Package com.atlassian.bamboo.webhook
Interface WebhookTemplateService
- All Known Implementing Classes:
DefaultWebhookTemplateService
public interface WebhookTemplateService
Service for WebhookTemplate
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteById
(long webhookId) Deletes Webhook Template with given idboolean
Check if Webhook Template with given name existsfindById
(long webhookId) Finds WebhookTemplate By idfindByUuid
(UUID uuid) Finds WebhookTemplate By uuidfindNameByUuid
(UUID uuid) Finds Webhook Template name for given uuidfindUuidByName
(String name) Return uuid for Webhook Template with given namereturn all Global webhook specified in Global Administrationsave
(WebhookTemplate webhookTemplate) Saves new webhook templatevoid
update
(WebhookTemplate webhookTemplate) Updates Webhook Template which already exists
-
Method Details
-
save
Saves new webhook template- Parameters:
webhookTemplate
-- Returns:
-
getGlobalWebhooks
List<WebhookTemplate> getGlobalWebhooks()return all Global webhook specified in Global Administration- Returns:
-
findById
Finds WebhookTemplate By id- Parameters:
webhookId
-- Returns:
-
findByUuid
Finds WebhookTemplate By uuid- Parameters:
uuid
-- Returns:
-
update
Updates Webhook Template which already exists- Parameters:
webhookTemplate
-
-
deleteById
void deleteById(long webhookId) Deletes Webhook Template with given id- Parameters:
webhookId
-
-
findNameByUuid
Finds Webhook Template name for given uuid- Parameters:
uuid
-- Returns:
- name
- See Also:
-
exists
Check if Webhook Template with given name exists- Parameters:
webhookName
-- Returns:
- true if exists, otherwise false
-
findUuidByName
Return uuid for Webhook Template with given name- Parameters:
name
-- Returns:
- Webhook Template id
- See Also:
-
generateUuid
UUID generateUuid()- Returns:
- uuid for webhook
-
getSupportedMethods
List<HttpMethod> getSupportedMethods()
-