class WebhookServiceImpl extends java.lang.Object implements WebhookService
Modifier and Type | Field and Description |
---|---|
private AppInstallationService |
appInstallationService |
private static org.slf4j.Logger |
log |
private OAuth2Service |
oAuth2Service |
private javax.inject.Provider<WebhookRepository> |
webhookRepository |
Constructor and Description |
---|
WebhookServiceImpl(javax.inject.Provider<WebhookRepository> webhookRepository,
OAuth2Service oAuth2Service,
AppInstallationServiceFinder serviceFinder) |
Modifier and Type | Method and Description |
---|---|
WebhookEntity |
activate(GUID webhookId,
GUID shopGuid,
java.lang.String clientId,
boolean active) |
WebhookEntity |
create(Webhook payload,
GUID shopGuid,
java.lang.String clientId) |
void |
delete(GUID webhookId,
GUID shopGuid,
java.lang.String clientId) |
java.util.stream.Stream<WebhookEntity> |
findByShopGuidAndEventTypeAndActive(EventEntity event) |
WebhookEntity |
get(GUID webhookId,
GUID shopGuid,
java.lang.String clientId) |
private static final org.slf4j.Logger log
private final javax.inject.Provider<WebhookRepository> webhookRepository
private final OAuth2Service oAuth2Service
private final AppInstallationService appInstallationService
@Inject public WebhookServiceImpl(javax.inject.Provider<WebhookRepository> webhookRepository, OAuth2Service oAuth2Service, AppInstallationServiceFinder serviceFinder)
public WebhookEntity create(Webhook payload, GUID shopGuid, java.lang.String clientId)
create
in interface WebhookService
public void delete(GUID webhookId, GUID shopGuid, java.lang.String clientId)
delete
in interface WebhookService
public java.util.stream.Stream<WebhookEntity> findByShopGuidAndEventTypeAndActive(EventEntity event)
findByShopGuidAndEventTypeAndActive
in interface WebhookService
public WebhookEntity activate(GUID webhookId, GUID shopGuid, java.lang.String clientId, boolean active)
activate
in interface WebhookService
public WebhookEntity get(GUID webhookId, GUID shopGuid, java.lang.String clientId)
get
in interface WebhookService