use of org.keycloak.storage.StorageId in project keycloak by keycloak.
the class HardcodedClientStorageProvider method getClientById.
@Override
public ClientModel getClientById(RealmModel realm, String id) {
StorageId storageId = new StorageId(id);
final String clientId = storageId.getExternalId();
if (this.clientId.equals(clientId))
return new ClientAdapter(realm);
return null;
}
use of org.keycloak.storage.StorageId in project keycloak by keycloak.
the class HardcodedRoleStorageProvider method getRoleById.
@Override
public RoleModel getRoleById(RealmModel realm, String id) {
StorageId storageId = new StorageId(id);
final String roleName = storageId.getExternalId();
if (this.roleName.equals(roleName))
return new HardcodedRoleAdapter(realm);
return null;
}
use of org.keycloak.storage.StorageId in project keycloak by keycloak.
the class UserMapStorage method getUserById.
@Override
public UserModel getUserById(RealmModel realm, String id) {
StorageId storageId = new StorageId(id);
final String username = storageId.getExternalId();
if (!userPasswords.containsKey(translateUserName(username))) {
return null;
}
return createUser(realm, username);
}
use of org.keycloak.storage.StorageId in project keycloak by keycloak.
the class UserPropertyFileStorage method getUserById.
@Override
public UserModel getUserById(RealmModel realm, String id) {
StorageId storageId = new StorageId(id);
final String username = storageId.getExternalId();
if (!userPasswords.containsKey(username))
return null;
return createUser(realm, username);
}
Aggregations