diff --git a/model/map/src/main/java/org/keycloak/models/map/storage/chm/ConcurrentHashMapKeycloakTransaction.java b/model/map/src/main/java/org/keycloak/models/map/storage/chm/ConcurrentHashMapKeycloakTransaction.java index 37cad40e8c..becf89ecb8 100644 --- a/model/map/src/main/java/org/keycloak/models/map/storage/chm/ConcurrentHashMapKeycloakTransaction.java +++ b/model/map/src/main/java/org/keycloak/models/map/storage/chm/ConcurrentHashMapKeycloakTransaction.java @@ -28,7 +28,6 @@ import java.util.stream.Collectors; import java.util.stream.Stream; import org.jboss.logging.Logger; import org.keycloak.models.map.storage.MapKeycloakTransaction; -import org.keycloak.models.map.storage.MapModelCriteriaBuilder; import org.keycloak.models.map.storage.MapStorage; import org.keycloak.models.map.storage.ModelCriteriaBuilder; diff --git a/model/map/src/main/java/org/keycloak/models/map/storage/chm/ConcurrentHashMapStorage.java b/model/map/src/main/java/org/keycloak/models/map/storage/chm/ConcurrentHashMapStorage.java index 59331060d9..6162907d0a 100644 --- a/model/map/src/main/java/org/keycloak/models/map/storage/chm/ConcurrentHashMapStorage.java +++ b/model/map/src/main/java/org/keycloak/models/map/storage/chm/ConcurrentHashMapStorage.java @@ -18,9 +18,7 @@ package org.keycloak.models.map.storage.chm; import org.keycloak.models.KeycloakSession; import org.keycloak.models.map.storage.MapKeycloakTransaction; -import org.keycloak.models.map.storage.MapModelCriteriaBuilder; import org.keycloak.models.map.common.AbstractEntity; -import org.keycloak.models.map.storage.MapFieldPredicates; import org.keycloak.models.map.storage.MapStorage; import org.keycloak.models.map.storage.ModelCriteriaBuilder; import org.keycloak.storage.SearchableModelField; @@ -29,7 +27,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import java.util.stream.Stream; -import org.keycloak.models.map.storage.MapModelCriteriaBuilder.UpdatePredicatesFunc; +import org.keycloak.models.map.storage.chm.MapModelCriteriaBuilder.UpdatePredicatesFunc; import org.keycloak.models.map.storage.StringKeyConvertor; import java.util.Iterator; import java.util.Objects; diff --git a/model/map/src/main/java/org/keycloak/models/map/storage/CriteriaOperator.java b/model/map/src/main/java/org/keycloak/models/map/storage/chm/CriteriaOperator.java similarity index 99% rename from model/map/src/main/java/org/keycloak/models/map/storage/CriteriaOperator.java rename to model/map/src/main/java/org/keycloak/models/map/storage/chm/CriteriaOperator.java index 5977133658..9de970b572 100644 --- a/model/map/src/main/java/org/keycloak/models/map/storage/CriteriaOperator.java +++ b/model/map/src/main/java/org/keycloak/models/map/storage/chm/CriteriaOperator.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.keycloak.models.map.storage; +package org.keycloak.models.map.storage.chm; import org.keycloak.models.map.storage.ModelCriteriaBuilder.Operator; import java.util.Arrays; diff --git a/model/map/src/main/java/org/keycloak/models/map/storage/MapFieldPredicates.java b/model/map/src/main/java/org/keycloak/models/map/storage/chm/MapFieldPredicates.java similarity index 99% rename from model/map/src/main/java/org/keycloak/models/map/storage/MapFieldPredicates.java rename to model/map/src/main/java/org/keycloak/models/map/storage/chm/MapFieldPredicates.java index 5a99d51bd7..9f790144f4 100644 --- a/model/map/src/main/java/org/keycloak/models/map/storage/MapFieldPredicates.java +++ b/model/map/src/main/java/org/keycloak/models/map/storage/chm/MapFieldPredicates.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.keycloak.models.map.storage; +package org.keycloak.models.map.storage.chm; import org.keycloak.authorization.model.PermissionTicket; import org.keycloak.authorization.model.Policy; @@ -46,7 +46,7 @@ import org.keycloak.models.map.role.MapRoleEntity; import org.keycloak.storage.SearchableModelField; import java.util.HashMap; import java.util.Map; -import org.keycloak.models.map.storage.MapModelCriteriaBuilder.UpdatePredicatesFunc; +import org.keycloak.models.map.storage.chm.MapModelCriteriaBuilder.UpdatePredicatesFunc; import org.keycloak.models.map.storage.ModelCriteriaBuilder.Operator; import org.keycloak.models.map.user.MapUserEntity; import org.keycloak.models.map.user.UserConsentEntity; @@ -62,6 +62,7 @@ import java.util.Objects; import java.util.function.Function; import java.util.function.Predicate; +import org.keycloak.models.map.storage.CriterionNotSupportedException; import static org.keycloak.models.UserSessionModel.CORRESPONDING_SESSION_ID; /** diff --git a/model/map/src/main/java/org/keycloak/models/map/storage/MapModelCriteriaBuilder.java b/model/map/src/main/java/org/keycloak/models/map/storage/chm/MapModelCriteriaBuilder.java similarity index 98% rename from model/map/src/main/java/org/keycloak/models/map/storage/MapModelCriteriaBuilder.java rename to model/map/src/main/java/org/keycloak/models/map/storage/chm/MapModelCriteriaBuilder.java index bb3a8ff667..e09415fb29 100644 --- a/model/map/src/main/java/org/keycloak/models/map/storage/MapModelCriteriaBuilder.java +++ b/model/map/src/main/java/org/keycloak/models/map/storage/chm/MapModelCriteriaBuilder.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.keycloak.models.map.storage; +package org.keycloak.models.map.storage.chm; import org.keycloak.models.map.common.AbstractEntity; import org.keycloak.storage.SearchableModelField; @@ -22,6 +22,7 @@ import java.util.Map; import java.util.function.Function; import java.util.function.Predicate; import java.util.stream.Stream; +import org.keycloak.models.map.storage.ModelCriteriaBuilder; /** *