Class HotRodTypesUtils
java.lang.Object
org.keycloak.models.map.storage.hotRod.common.HotRodTypesUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic HotRodAttributeEntity
static <T,
V> HotRodPair<T, V> createHotRodPairFromMapEntry
(Map.Entry<T, V> entry) static HotRodStringPair
static String
getKey
(AbstractEntity entity) static String
getKey
(HotRodAuthenticationSessionEntity hotRodAuthenticationSessionEntity) static String
getKey
(HotRodAttributeEntity attributeEntity) static String
getKey
(HotRodAttributeEntityNonIndexed attributeEntity) static <K,
V> K getKey
(HotRodPair<K, V> hotRodPair) static String
getKey
(HotRodStringPair hotRodPair) static String
getKey
(HotRodLocalizationTexts hotRodLocalizationTexts) static String
getKey
(HotRodUserConsentEntity hotRodUserConsentEntity) static String
getKey
(HotRodUserFederatedIdentityEntity hotRodUserFederatedIdentityEntity) static <SetType,
MapKey, MapValue>
MapValuegetMapValueFromSet
(Set<SetType> set, MapKey key, Function<SetType, MapKey> keyGetter, Function<SetType, MapValue> valueGetter) getValue
(HotRodAttributeEntity attributeEntity) getValue
(HotRodAttributeEntityNonIndexed attributeEntity) static <K,
V> V getValue
(HotRodPair<K, V> hotRodPair) static String
getValue
(HotRodStringPair hotRodPair) getValue
(HotRodLocalizationTexts hotRodLocalizationTexts) migrateHotRodAuthenticatedClientSessionEntityReferenceToMapAuthenticatedClientSessionEntity
(HotRodAuthenticatedClientSessionEntityReference collectionItem) static <T,
V> List<V> migrateList
(List<T> p0, Function<T, V> migrator) migrateMapAuthenticatedClientSessionEntityToHotRodAuthenticatedClientSessionEntityReference
(MapAuthenticatedClientSessionEntity p0) static <MapKey,
MapValue, SetValue>
Set<SetValue>migrateMapToSet
(Map<MapKey, MapValue> map, Function<Map.Entry<MapKey, MapValue>, SetValue> creator) static <T,
V> Set<V> migrateSet
(Set<T> p0, Function<T, V> migrator) static <MapKey,
MapValue, SetValue>
Map<MapKey,MapValue> migrateSetToMap
(Set<SetValue> set, Function<SetValue, MapKey> keyProducer, Function<SetValue, MapValue> valueProducer) static HotRodLocalizationTexts
static <SetType,
KeyType>
booleanremoveFromSetByMapKey
(Set<SetType> set, KeyType key, Function<SetType, KeyType> keyGetter)
-
Constructor Details
-
HotRodTypesUtils
public HotRodTypesUtils()
-
-
Method Details
-
migrateMapToSet
-
migrateSetToMap
-
createHotRodPairFromMapEntry
-
createHotRodStringPairFromMapEntry
-
createHotRodAttributeEntityFromMapEntry
public static HotRodAttributeEntity createHotRodAttributeEntityFromMapEntry(Map.Entry<String, List<String>> entry) -
createHotRodAttributeEntityNonIndexedFromMapEntry
public static HotRodAttributeEntityNonIndexed createHotRodAttributeEntityNonIndexedFromMapEntry(Map.Entry<String, List<String>> entry) -
removeFromSetByMapKey
-
getMapValueFromSet
-
getKey
-
getValue
-
getKey
-
getValue
-
getKey
-
getKey
-
getValue
-
getValue
-
getKey
-
getKey
-
getKey
-
migrateList
-
migrateSet
-
getKey
-
getKey
-
getValue
-
migrateStringMapToHotRodLocalizationTexts
public static HotRodLocalizationTexts migrateStringMapToHotRodLocalizationTexts(String p0, Map<String, String> p1) -
migrateMapAuthenticatedClientSessionEntityToHotRodAuthenticatedClientSessionEntityReference
public static HotRodAuthenticatedClientSessionEntityReference migrateMapAuthenticatedClientSessionEntityToHotRodAuthenticatedClientSessionEntityReference(MapAuthenticatedClientSessionEntity p0) -
migrateHotRodAuthenticatedClientSessionEntityReferenceToMapAuthenticatedClientSessionEntity
public static MapAuthenticatedClientSessionEntity migrateHotRodAuthenticatedClientSessionEntityReferenceToMapAuthenticatedClientSessionEntity(HotRodAuthenticatedClientSessionEntityReference collectionItem)
-