Interface WebhookTemplateService

All Known Implementing Classes:
DefaultWebhookTemplateService

public interface WebhookTemplateService
Service for WebhookTemplate
  • Method Details

    • 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:
    • 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:
    • generateUuid

      UUID generateUuid()
      Returns:
      uuid for webhook
    • getSupportedMethods

      List<HttpMethod> getSupportedMethods()