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