From b1602114fde01a1445ef7c9f0b06f4214da5989f Mon Sep 17 00:00:00 2001 From: Alexander Schwartz Date: Thu, 7 Jul 2022 14:57:23 +0200 Subject: [PATCH] Refactor UserStorageUtil usage. (#1607) --- upgrading/topics/keycloak/changes-19_0_0.adoc | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/upgrading/topics/keycloak/changes-19_0_0.adoc b/upgrading/topics/keycloak/changes-19_0_0.adoc index 68a8552d63..8c7ee90a7d 100644 --- a/upgrading/topics/keycloak/changes-19_0_0.adoc +++ b/upgrading/topics/keycloak/changes-19_0_0.adoc @@ -104,22 +104,7 @@ The availability of the new API is a priority for the next Keycloak version. == Changes to `RealmModel` -For the interface `RealmModel` the methods `getUserStorageProviders` and `getUserStorageProvidersStream` have been removed. -`UserStorageUtil.getUserStorageProvidersStream` needs to be used instead. - -.Before migration: code will not compile due to the changed API -[source,java,subs="+quotes"] ----- -realm**.getUserStorageProviders()**...; ----- - -.After migration: use the new API -[source,java,subs="+quotes"] ----- -UserStorageUtil**.getUserStorageProvidersStream(realm)**...; ----- - -The methods `getClientStorageProviders`, `getClientStorageProvidersStream`, `getRoleStorageProviders` and `getRoleStorageProvidersStream` have been removed as well. +The methods getUserStorageProviders`, `getUserStorageProvidersStream`, `getClientStorageProviders`, `getClientStorageProvidersStream`, `getRoleStorageProviders` and `getRoleStorageProvidersStream` have been removed. Code which depends on these methods and runs with the legacy storage enabled should cast the instance as follows: .Before migration: code will not compile due to the changed API