use of org.keycloak.events.EventBuilder in project keycloak by keycloak.
the class RealmsResource method getClientsService.
@Path("{realm}/clients-registrations")
public ClientRegistrationService getClientsService(@PathParam("realm") final String name) {
RealmModel realm = init(name);
EventBuilder event = new EventBuilder(realm, session, clientConnection);
ClientRegistrationService service = new ClientRegistrationService(event);
ResteasyProviderFactory.getInstance().injectProperties(service);
return service;
}
use of org.keycloak.events.EventBuilder in project keycloak by keycloak.
the class RealmsResource method getClientsManagementService.
@Path("{realm}/clients-managements")
public ClientsManagementService getClientsManagementService(@PathParam("realm") final String name) {
RealmModel realm = init(name);
EventBuilder event = new EventBuilder(realm, session, clientConnection);
ClientsManagementService service = new ClientsManagementService(realm, event);
ResteasyProviderFactory.getInstance().injectProperties(service);
return service;
}
use of org.keycloak.events.EventBuilder in project keycloak by keycloak.
the class RealmsResource method getProtocol.
@Path("{realm}/protocol/{protocol}")
public Object getProtocol(@PathParam("realm") final String name, @PathParam("protocol") final String protocol) {
RealmModel realm = init(name);
LoginProtocolFactory factory = (LoginProtocolFactory) session.getKeycloakSessionFactory().getProviderFactory(LoginProtocol.class, protocol);
if (factory == null) {
logger.debugf("protocol %s not found", protocol);
throw new NotFoundException("Protocol not found");
}
EventBuilder event = new EventBuilder(realm, session, clientConnection);
Object endpoint = factory.createProtocolEndpoint(realm, event);
ResteasyProviderFactory.getInstance().injectProperties(endpoint);
return endpoint;
}
use of org.keycloak.events.EventBuilder in project keycloak by keycloak.
the class RealmsResource method getLoginActionsService.
@Path("{realm}/login-actions")
public LoginActionsService getLoginActionsService(@PathParam("realm") final String name) {
RealmModel realm = init(name);
EventBuilder event = new EventBuilder(realm, session, clientConnection);
LoginActionsService service = new LoginActionsService(realm, event);
ResteasyProviderFactory.getInstance().injectProperties(service);
return service;
}
use of org.keycloak.events.EventBuilder in project keycloak by keycloak.
the class DeviceEndpointFactory method create.
@Override
public RealmResourceProvider create(KeycloakSession session) {
KeycloakContext context = session.getContext();
RealmModel realm = context.getRealm();
EventBuilder event = new EventBuilder(realm, session, context.getConnection());
DeviceEndpoint provider = new DeviceEndpoint(realm, event);
ResteasyProviderFactory.getInstance().injectProperties(provider);
return provider;
}
Aggregations