class WebhookServiceImpl extends java.lang.Object implements WebhookService
Modifier and Type | Field and Description |
---|---|
private OAuth2AppInstallationService |
service |
private javax.inject.Provider<WebhookRepository> |
webhookRepository |
Constructor and Description |
---|
WebhookServiceImpl(javax.inject.Provider<WebhookRepository> webhookRepository,
OAuth2AppInstallationService service) |
Modifier and Type | Method and Description |
---|---|
WebhookEntity |
activate(GUID webhookId,
java.lang.String token,
boolean active) |
WebhookEntity |
create(Webhook payload,
java.lang.String token) |
void |
delete(GUID webhookId,
java.lang.String token) |
java.util.List<WebhookEntity> |
findActiveWebhooksMatchingEvent(EventEntity event) |
org.springframework.data.domain.Page<WebhookEntity> |
findAll(java.lang.String token,
org.springframework.data.domain.Pageable pageable) |
WebhookEntity |
get(GUID webhookId,
java.lang.String token) |
private final javax.inject.Provider<WebhookRepository> webhookRepository
private final OAuth2AppInstallationService service
@Inject public WebhookServiceImpl(javax.inject.Provider<WebhookRepository> webhookRepository, OAuth2AppInstallationService service)
public WebhookEntity create(Webhook payload, java.lang.String token)
create
in interface WebhookService
public void delete(GUID webhookId, java.lang.String token)
delete
in interface WebhookService
public java.util.List<WebhookEntity> findActiveWebhooksMatchingEvent(EventEntity event)
findActiveWebhooksMatchingEvent
in interface WebhookService
public org.springframework.data.domain.Page<WebhookEntity> findAll(java.lang.String token, org.springframework.data.domain.Pageable pageable)
findAll
in interface WebhookService
public WebhookEntity activate(GUID webhookId, java.lang.String token, boolean active)
activate
in interface WebhookService
public WebhookEntity get(GUID webhookId, java.lang.String token)
get
in interface WebhookService