2015-07-17 11:45:43 +00:00
|
|
|
package org.keycloak.models;
|
|
|
|
|
|
|
|
import org.keycloak.migration.MigrationModel;
|
|
|
|
import org.keycloak.provider.Provider;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author <a href="mailto:bill@burkecentral.com">Bill Burke</a>
|
|
|
|
* @version $Revision: 1 $
|
|
|
|
*/
|
|
|
|
public interface RealmProvider extends Provider {
|
|
|
|
|
|
|
|
// Note: The reason there are so many query methods here is for layering a cache on top of an persistent KeycloakSession
|
|
|
|
MigrationModel getMigrationModel();
|
|
|
|
RealmModel createRealm(String name);
|
|
|
|
RealmModel createRealm(String id, String name);
|
|
|
|
RealmModel getRealm(String id);
|
|
|
|
RealmModel getRealmByName(String name);
|
|
|
|
|
|
|
|
RoleModel getRoleById(String id, RealmModel realm);
|
|
|
|
ClientModel getClientById(String id, RealmModel realm);
|
2015-12-11 15:31:42 +00:00
|
|
|
ClientTemplateModel getClientTemplateById(String id, RealmModel realm);
|
2015-10-29 20:33:02 +00:00
|
|
|
GroupModel getGroupById(String id, RealmModel realm);
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-07-17 11:45:43 +00:00
|
|
|
List<RealmModel> getRealms();
|
|
|
|
boolean removeRealm(String id);
|
|
|
|
void close();
|
|
|
|
}
|