All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.phasetwo.keycloak.model.WebhookProvider Maven / Gradle / Ivy

There is a newer version: 0.32
Show newest version
package io.phasetwo.keycloak.model;

import java.util.stream.Stream;
import org.keycloak.models.RealmModel;
import org.keycloak.models.UserModel;
import org.keycloak.provider.Provider;

public interface WebhookProvider extends Provider {

  WebhookModel createWebhook(RealmModel realm, String url, UserModel createdBy);

  WebhookModel getWebhookById(RealmModel realm, String id);

  Stream getWebhooksStream(RealmModel realm, Integer firstResult, Integer maxResults);

  default Stream getWebhooksStream(RealmModel realm) {
    return getWebhooksStream(realm, null, null);
  }

  boolean removeWebhook(RealmModel realm, String id);

  void removeWebhooks(RealmModel realm);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy