Package com.atlassian.bamboo.webhook
Class DefaultWebhookTemplateService
java.lang.Object
com.atlassian.bamboo.webhook.DefaultWebhookTemplateService
- All Implemented Interfaces:
WebhookTemplateService
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultWebhookTemplateService(WebhookTemplateDao webhookTemplateDao, BambooPermissionManager bambooPermissionManager, com.atlassian.event.api.EventPublisher eventPublisher) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteById(long webhookId) Deletes Webhook Template with given idbooleanCheck 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 templatevoidupdate(WebhookTemplate webhookTemplate) Updates Webhook Template which already exists
-
Constructor Details
-
DefaultWebhookTemplateService
@Autowired public DefaultWebhookTemplateService(WebhookTemplateDao webhookTemplateDao, BambooPermissionManager bambooPermissionManager, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Details
-
save
Description copied from interface:WebhookTemplateServiceSaves new webhook template- Specified by:
savein interfaceWebhookTemplateService- Returns:
-
getGlobalWebhooks
Description copied from interface:WebhookTemplateServicereturn all Global webhook specified in Global Administration- Specified by:
getGlobalWebhooksin interfaceWebhookTemplateService- Returns:
-
findById
Description copied from interface:WebhookTemplateServiceFinds WebhookTemplate By id- Specified by:
findByIdin interfaceWebhookTemplateService- Returns:
-
update
Description copied from interface:WebhookTemplateServiceUpdates Webhook Template which already exists- Specified by:
updatein interfaceWebhookTemplateService
-
deleteById
public void deleteById(long webhookId) Description copied from interface:WebhookTemplateServiceDeletes Webhook Template with given id- Specified by:
deleteByIdin interfaceWebhookTemplateService
-
findNameByUuid
Description copied from interface:WebhookTemplateServiceFinds Webhook Template name for given uuid- Specified by:
findNameByUuidin interfaceWebhookTemplateService- Returns:
- name
- See Also:
-
exists
Description copied from interface:WebhookTemplateServiceCheck if Webhook Template with given name exists- Specified by:
existsin interfaceWebhookTemplateService- Returns:
- true if exists, otherwise false
-
findUuidByName
Description copied from interface:WebhookTemplateServiceReturn uuid for Webhook Template with given name- Specified by:
findUuidByNamein interfaceWebhookTemplateService- Returns:
- Webhook Template id
- See Also:
-
findByUuid
Description copied from interface:WebhookTemplateServiceFinds WebhookTemplate By uuid- Specified by:
findByUuidin interfaceWebhookTemplateService- Returns:
-
generateUuid
- Specified by:
generateUuidin interfaceWebhookTemplateService- Returns:
- uuid for webhook
-
getSupportedMethods
- Specified by:
getSupportedMethodsin interfaceWebhookTemplateService
-