Interface WebhookTemplateDao

All Superinterfaces:
BambooObjectDao<WebhookTemplate>
All Known Implementing Classes:
WebhookTemplateHibernateDao

public interface WebhookTemplateDao extends BambooObjectDao<WebhookTemplate>
Dao for WebhookTemplate entity
  • Method Details

    • 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)