Package com.atlassian.bamboo.webhook
Interface WebhookTemplateDao
- All Superinterfaces:
BambooObjectDao<WebhookTemplate>
- All Known Implementing Classes:
WebhookTemplateHibernateDao
Dao for WebhookTemplate entity
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteById
(long id) Deletes webhooktemplate with given idboolean
Check if webhook with given name exists@NotNull Optional<WebhookTemplate>
findByUuid
(UUID uuid) @NotNull List<WebhookTemplate>
Return all Global webhook templates which are specified in Global administrationfindUuidByName
(String webhookName) Returns uuid of webhook with given namelong
scrollTokensForExport
(Consumer<WebhookTemplate> exportXmlConsumer) Scroll through all AccessToken records and pass them to consumerMethods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
-
Method Details
-
findGlobalTemplates
Return all Global webhook templates which are specified in Global administration- Returns:
-
deleteById
void deleteById(long id) Deletes webhooktemplate with given id- Parameters:
id
-
-
exists
Check if webhook with given name exists- Parameters:
webhookName
-- Returns:
- true if exists, otherwise false
-
findUuidByName
Returns uuid of webhook with given name- Parameters:
webhookName
-- Returns:
-
scrollTokensForExport
Scroll through all AccessToken records and pass them to consumer -
findByUuid
-