public class DefaultWebhookTemplateService extends Object implements WebhookTemplateService
| Constructor and Description |
|---|
DefaultWebhookTemplateService(WebhookTemplateDao webhookTemplateDao,
BambooPermissionManager bambooPermissionManager,
com.atlassian.event.api.EventPublisher eventPublisher) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteById(long webhookId)
Deletes Webhook Template with given id
|
boolean |
exists(String webhookName)
Check if Webhook Template with given name exists
|
Optional<WebhookTemplate> |
findById(long webhookId)
Finds WebhookTemplate By id
|
Optional<WebhookTemplate> |
findByUuid(UUID uuid)
Finds WebhookTemplate By uuid
|
Optional<String> |
findNameByUuid(UUID uuid)
Finds Webhook Template name for given uuid
|
Optional<UUID> |
findUuidByName(String name)
Return uuid for Webhook Template with given name
|
UUID |
generateUuid() |
List<WebhookTemplate> |
getGlobalWebhooks()
return all Global webhook specified in Global Administration
|
List<org.springframework.http.HttpMethod> |
getSupportedMethods() |
WebhookTemplate |
save(WebhookTemplate webhookTemplate)
Saves new webhook template
|
void |
update(WebhookTemplate webhookTemplate)
Updates Webhook Template which already exists
|
@Autowired public DefaultWebhookTemplateService(WebhookTemplateDao webhookTemplateDao, BambooPermissionManager bambooPermissionManager, com.atlassian.event.api.EventPublisher eventPublisher)
public WebhookTemplate save(WebhookTemplate webhookTemplate)
WebhookTemplateServicesave in interface WebhookTemplateServicepublic List<WebhookTemplate> getGlobalWebhooks()
WebhookTemplateServicegetGlobalWebhooks in interface WebhookTemplateServicepublic Optional<WebhookTemplate> findById(long webhookId)
WebhookTemplateServicefindById in interface WebhookTemplateServicepublic void update(WebhookTemplate webhookTemplate)
WebhookTemplateServiceupdate in interface WebhookTemplateServicepublic void deleteById(long webhookId)
WebhookTemplateServicedeleteById in interface WebhookTemplateServicepublic Optional<String> findNameByUuid(UUID uuid)
WebhookTemplateServicefindNameByUuid in interface WebhookTemplateServiceNameProvider.getName()public boolean exists(String webhookName)
WebhookTemplateServiceexists in interface WebhookTemplateServicepublic Optional<UUID> findUuidByName(String name)
WebhookTemplateServicefindUuidByName in interface WebhookTemplateServiceBambooIdProvider.getId()public Optional<WebhookTemplate> findByUuid(UUID uuid)
WebhookTemplateServicefindByUuid in interface WebhookTemplateServicepublic UUID generateUuid()
generateUuid in interface WebhookTemplateServicepublic List<org.springframework.http.HttpMethod> getSupportedMethods()
getSupportedMethods in interface WebhookTemplateServiceCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.