Class WebhooksResourceHelper

java.lang.Object
com.atlassian.confluence.plugins.restapi.resources.webhooks.WebhooksResourceHelper

public class WebhooksResourceHelper extends Object
Temporary substitute for WebhooksResourceHelper, for removal when jakarta migration is complete.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.slf4j.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    WebhooksResourceHelper(com.atlassian.sal.api.message.I18nResolver i18nResolver, com.atlassian.confluence.plugins.restapi.resources.webhooks.RestResponseBuilder restBuilder, Supplier<Object> invocationHistoryServiceProvider, Supplier<Object> webhookServiceProvider, Consumer<com.atlassian.webhooks.WebhookScope> webhookScopeAdminValidator)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.ws.rs.core.Response
    createWebhook(jakarta.ws.rs.core.UriInfo uriInfo, com.atlassian.webhooks.WebhookScope scope, com.atlassian.webhooks.internal.rest.RestWebhook webhook)
     
    jakarta.ws.rs.core.Response
    deleteWebhook(com.atlassian.webhooks.WebhookScope scope, int webhookId)
     
    jakarta.ws.rs.core.Response
    findWebhooks(jakarta.ws.rs.core.UriInfo uriInfo, com.atlassian.webhooks.WebhookScope scope, List<com.atlassian.webhooks.WebhookScope> scopes, List<String> eventIds, boolean statistics, int start, int limit)
     
    jakarta.ws.rs.core.Response
    findWebhooks(jakarta.ws.rs.core.UriInfo uriInfo, com.atlassian.webhooks.WebhookScope scope, List<String> eventIds, boolean statistics, int start, int limit)
     
    jakarta.ws.rs.core.Response
    getLatestInvocation(com.atlassian.webhooks.WebhookScope scope, int webhookId, String eventId, Set<String> outcomeNames)
     
    jakarta.ws.rs.core.Response
    getStatistics(com.atlassian.webhooks.WebhookScope scope, int webhookId, String eventId)
     
    jakarta.ws.rs.core.Response
    getStatisticsSummary(com.atlassian.webhooks.WebhookScope scope, int webhookId)
     
    jakarta.ws.rs.core.Response
    getWebhook(com.atlassian.webhooks.WebhookScope scope, int webhookId, boolean includeStatistics)
     
    jakarta.ws.rs.core.Response
    testWebhook(com.atlassian.webhooks.WebhookScope scope, String url)
     
    jakarta.ws.rs.core.Response
    testWebhook(com.atlassian.webhooks.WebhookScope scope, String url, boolean sslVerificationRequired, Integer webhookId, String username, String password)
     
    jakarta.ws.rs.core.Response
    update(com.atlassian.webhooks.WebhookScope scope, int webhookId, com.atlassian.webhooks.internal.rest.RestWebhook webhook)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • log

      protected final org.slf4j.Logger log
  • Constructor Details

    • WebhooksResourceHelper

      public WebhooksResourceHelper(com.atlassian.sal.api.message.I18nResolver i18nResolver, com.atlassian.confluence.plugins.restapi.resources.webhooks.RestResponseBuilder restBuilder, Supplier<Object> invocationHistoryServiceProvider, Supplier<Object> webhookServiceProvider, Consumer<com.atlassian.webhooks.WebhookScope> webhookScopeAdminValidator)
  • Method Details

    • createWebhook

      public jakarta.ws.rs.core.Response createWebhook(jakarta.ws.rs.core.UriInfo uriInfo, com.atlassian.webhooks.WebhookScope scope, com.atlassian.webhooks.internal.rest.RestWebhook webhook)
    • deleteWebhook

      public jakarta.ws.rs.core.Response deleteWebhook(com.atlassian.webhooks.WebhookScope scope, int webhookId)
    • findWebhooks

      public jakarta.ws.rs.core.Response findWebhooks(jakarta.ws.rs.core.UriInfo uriInfo, com.atlassian.webhooks.WebhookScope scope, List<com.atlassian.webhooks.WebhookScope> scopes, List<String> eventIds, boolean statistics, int start, int limit)
    • findWebhooks

      public jakarta.ws.rs.core.Response findWebhooks(jakarta.ws.rs.core.UriInfo uriInfo, com.atlassian.webhooks.WebhookScope scope, List<String> eventIds, boolean statistics, int start, int limit)
    • getLatestInvocation

      public jakarta.ws.rs.core.Response getLatestInvocation(com.atlassian.webhooks.WebhookScope scope, int webhookId, String eventId, Set<String> outcomeNames)
    • getStatistics

      public jakarta.ws.rs.core.Response getStatistics(com.atlassian.webhooks.WebhookScope scope, int webhookId, String eventId)
    • getStatisticsSummary

      public jakarta.ws.rs.core.Response getStatisticsSummary(com.atlassian.webhooks.WebhookScope scope, int webhookId)
    • getWebhook

      public jakarta.ws.rs.core.Response getWebhook(com.atlassian.webhooks.WebhookScope scope, int webhookId, boolean includeStatistics)
    • testWebhook

      public jakarta.ws.rs.core.Response testWebhook(com.atlassian.webhooks.WebhookScope scope, String url)
    • testWebhook

      public jakarta.ws.rs.core.Response testWebhook(com.atlassian.webhooks.WebhookScope scope, String url, boolean sslVerificationRequired, Integer webhookId, String username, String password)
    • update

      public jakarta.ws.rs.core.Response update(com.atlassian.webhooks.WebhookScope scope, int webhookId, com.atlassian.webhooks.internal.rest.RestWebhook webhook)