Class HotRodTypesUtils
java.lang.Object
org.keycloak.models.map.storage.hotRod.common.HotRodTypesUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HotRodAttributeEntitystatic <T,V> HotRodPair<T, V> createHotRodPairFromMapEntry(Map.Entry<T, V> entry) static HotRodStringPairstatic StringgetKey(AbstractEntity entity) static StringgetKey(HotRodAuthenticationSessionEntity hotRodAuthenticationSessionEntity) static StringgetKey(HotRodAttributeEntity attributeEntity) static StringgetKey(HotRodAttributeEntityNonIndexed attributeEntity) static <K,V> K getKey(HotRodPair<K, V> hotRodPair) static StringgetKey(HotRodStringPair hotRodPair) static StringgetKey(HotRodLocalizationTexts hotRodLocalizationTexts) static StringgetKey(HotRodUserConsentEntity hotRodUserConsentEntity) static StringgetKey(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 StringgetValue(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 HotRodLocalizationTextsstatic <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)
-