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)
WebhookTemplateService
save
in interface WebhookTemplateService
public List<WebhookTemplate> getGlobalWebhooks()
WebhookTemplateService
getGlobalWebhooks
in interface WebhookTemplateService
public Optional<WebhookTemplate> findById(long webhookId)
WebhookTemplateService
findById
in interface WebhookTemplateService
public void update(WebhookTemplate webhookTemplate)
WebhookTemplateService
update
in interface WebhookTemplateService
public void deleteById(long webhookId)
WebhookTemplateService
deleteById
in interface WebhookTemplateService
public Optional<String> findNameByUuid(UUID uuid)
WebhookTemplateService
findNameByUuid
in interface WebhookTemplateService
NameProvider.getName()
public boolean exists(String webhookName)
WebhookTemplateService
exists
in interface WebhookTemplateService
public Optional<UUID> findUuidByName(String name)
WebhookTemplateService
findUuidByName
in interface WebhookTemplateService
BambooIdProvider.getId()
public Optional<WebhookTemplate> findByUuid(UUID uuid)
WebhookTemplateService
findByUuid
in interface WebhookTemplateService
public UUID generateUuid()
generateUuid
in interface WebhookTemplateService
public List<org.springframework.http.HttpMethod> getSupportedMethods()
getSupportedMethods
in interface WebhookTemplateService
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.