io.phasetwo.keycloak.model.WebhookProvider Maven / Gradle / Ivy
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