Package com.atlassian.bamboo.webhook
Interface WebhookTemplateService
-
- All Known Implementing Classes:
DefaultWebhookTemplateService
public interface WebhookTemplateServiceService for WebhookTemplate
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteById(long webhookId)Deletes Webhook Template with given idbooleanexists(String webhookName)Check if Webhook Template with given name existsOptional<WebhookTemplate>findById(long webhookId)Finds WebhookTemplate By idOptional<WebhookTemplate>findByUuid(UUID uuid)Finds WebhookTemplate By uuidOptional<String>findNameByUuid(UUID uuid)Finds Webhook Template name for given uuidOptional<UUID>findUuidByName(String name)Return uuid for Webhook Template with given nameUUIDgenerateUuid()List<WebhookTemplate>getGlobalWebhooks()return all Global webhook specified in Global AdministrationList<org.springframework.http.HttpMethod>getSupportedMethods()WebhookTemplatesave(WebhookTemplate webhookTemplate)Saves new webhook templatevoidupdate(WebhookTemplate webhookTemplate)Updates Webhook Template which already exists
-
-
-
Method Detail
-
save
WebhookTemplate save(WebhookTemplate webhookTemplate)
Saves new webhook template- Parameters:
webhookTemplate-- Returns:
-
getGlobalWebhooks
List<WebhookTemplate> getGlobalWebhooks()
return all Global webhook specified in Global Administration- Returns:
-
findById
Optional<WebhookTemplate> findById(long webhookId)
Finds WebhookTemplate By id- Parameters:
webhookId-- Returns:
-
findByUuid
Optional<WebhookTemplate> findByUuid(UUID uuid)
Finds WebhookTemplate By uuid- Parameters:
uuid-- Returns:
-
update
void update(WebhookTemplate webhookTemplate)
Updates Webhook Template which already exists- Parameters:
webhookTemplate-
-
deleteById
void deleteById(long webhookId)
Deletes Webhook Template with given id- Parameters:
webhookId-
-
findNameByUuid
Optional<String> findNameByUuid(UUID uuid)
Finds Webhook Template name for given uuid- Parameters:
uuid-- Returns:
- name
- See Also:
NameProvider.getName()
-
exists
boolean exists(String webhookName)
Check if Webhook Template with given name exists- Parameters:
webhookName-- Returns:
- true if exists, otherwise false
-
findUuidByName
Optional<UUID> findUuidByName(String name)
Return uuid for Webhook Template with given name- Parameters:
name-- Returns:
- Webhook Template id
- See Also:
BambooIdProvider.getId()
-
generateUuid
UUID generateUuid()
- Returns:
- uuid for webhook
-
getSupportedMethods
List<org.springframework.http.HttpMethod> getSupportedMethods()
-
-