Package com.atlassian.bamboo.webhook
Class DefaultWebhookTemplateService
java.lang.Object
com.atlassian.bamboo.webhook.DefaultWebhookTemplateService
- All Implemented Interfaces:
WebhookTemplateService
-
Constructor Summary
ConstructorDescriptionDefaultWebhookTemplateService
(WebhookTemplateDao webhookTemplateDao, BambooPermissionManager bambooPermissionManager, com.atlassian.event.api.EventPublisher eventPublisher) -
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
-
Constructor Details
-
DefaultWebhookTemplateService
@Autowired public DefaultWebhookTemplateService(WebhookTemplateDao webhookTemplateDao, BambooPermissionManager bambooPermissionManager, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Details
-
save
Description copied from interface:WebhookTemplateService
Saves new webhook template- Specified by:
save
in interfaceWebhookTemplateService
- Returns:
-
getGlobalWebhooks
Description copied from interface:WebhookTemplateService
return all Global webhook specified in Global Administration- Specified by:
getGlobalWebhooks
in interfaceWebhookTemplateService
- Returns:
-
findById
Description copied from interface:WebhookTemplateService
Finds WebhookTemplate By id- Specified by:
findById
in interfaceWebhookTemplateService
- Returns:
-
update
Description copied from interface:WebhookTemplateService
Updates Webhook Template which already exists- Specified by:
update
in interfaceWebhookTemplateService
-
deleteById
public void deleteById(long webhookId) Description copied from interface:WebhookTemplateService
Deletes Webhook Template with given id- Specified by:
deleteById
in interfaceWebhookTemplateService
-
findNameByUuid
Description copied from interface:WebhookTemplateService
Finds Webhook Template name for given uuid- Specified by:
findNameByUuid
in interfaceWebhookTemplateService
- Returns:
- name
- See Also:
-
exists
Description copied from interface:WebhookTemplateService
Check if Webhook Template with given name exists- Specified by:
exists
in interfaceWebhookTemplateService
- Returns:
- true if exists, otherwise false
-
findUuidByName
Description copied from interface:WebhookTemplateService
Return uuid for Webhook Template with given name- Specified by:
findUuidByName
in interfaceWebhookTemplateService
- Returns:
- Webhook Template id
- See Also:
-
findByUuid
Description copied from interface:WebhookTemplateService
Finds WebhookTemplate By uuid- Specified by:
findByUuid
in interfaceWebhookTemplateService
- Returns:
-
generateUuid
- Specified by:
generateUuid
in interfaceWebhookTemplateService
- Returns:
- uuid for webhook
-
getSupportedMethods
- Specified by:
getSupportedMethods
in interfaceWebhookTemplateService
-