Class PerFieldDelegateProvider<V extends AbstractEntity>
- java.lang.Object
-
- org.keycloak.models.map.common.delegate.PerFieldDelegateProvider<V>
-
- All Implemented Interfaces:
EntityFieldDelegate<V>
,UpdatableEntity
public class PerFieldDelegateProvider<V extends AbstractEntity> extends Object implements EntityFieldDelegate<V>
- Author:
- hmlnarik
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.models.map.common.delegate.EntityFieldDelegate
EntityFieldDelegate.WithEntity<E extends UpdatableEntity>
-
Nested classes/interfaces inherited from interface org.keycloak.models.map.common.UpdatableEntity
UpdatableEntity.Impl
-
-
Constructor Summary
Constructors Constructor Description PerFieldDelegateProvider(TreeStorageNodeInstance.WithEntity nodeWithEntity, Supplier<V> fallbackProvider)
PerFieldDelegateProvider(TreeStorageNodeInstance<V> node, V entity, Supplier<V> fallbackProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,EF extends Enum<? extends EntityField<V>> & EntityField<V>>
voidcollectionAdd(EF field, T value)
<T,EF extends Enum<? extends EntityField<V>> & EntityField<V>>
ObjectcollectionRemove(EF field, T value)
<EF extends Enum<? extends EntityField<V>> & EntityField<V>>
Objectget(EF field)
boolean
isUpdated()
Flag signalizing that any of the setters has been meaningfully used.<K,EF extends Enum<? extends EntityField<V>> & EntityField<V>>
ObjectmapGet(EF field, K key)
<K,T,EF extends Enum<? extends EntityField<V>> & EntityField<V>>
voidmapPut(EF field, K key, T value)
<K,EF extends Enum<? extends EntityField<V>> & EntityField<V>>
ObjectmapRemove(EF field, K key)
<T,EF extends Enum<? extends EntityField<V>> & EntityField<V>>
voidset(EF field, T value)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.models.map.common.UpdatableEntity
clearUpdatedFlag
-
-
-
-
Constructor Detail
-
PerFieldDelegateProvider
public PerFieldDelegateProvider(TreeStorageNodeInstance<V> node, V entity, Supplier<V> fallbackProvider)
-
PerFieldDelegateProvider
public PerFieldDelegateProvider(TreeStorageNodeInstance.WithEntity nodeWithEntity, Supplier<V> fallbackProvider)
-
-
Method Detail
-
mapRemove
public <K,EF extends Enum<? extends EntityField<V>> & EntityField<V>> Object mapRemove(EF field, K key)
- Specified by:
mapRemove
in interfaceEntityFieldDelegate<V extends AbstractEntity>
-
mapPut
public <K,T,EF extends Enum<? extends EntityField<V>> & EntityField<V>> void mapPut(EF field, K key, T value)
- Specified by:
mapPut
in interfaceEntityFieldDelegate<V extends AbstractEntity>
-
mapGet
public <K,EF extends Enum<? extends EntityField<V>> & EntityField<V>> Object mapGet(EF field, K key)
- Specified by:
mapGet
in interfaceEntityFieldDelegate<V extends AbstractEntity>
-
collectionRemove
public <T,EF extends Enum<? extends EntityField<V>> & EntityField<V>> Object collectionRemove(EF field, T value)
- Specified by:
collectionRemove
in interfaceEntityFieldDelegate<V extends AbstractEntity>
-
collectionAdd
public <T,EF extends Enum<? extends EntityField<V>> & EntityField<V>> void collectionAdd(EF field, T value)
- Specified by:
collectionAdd
in interfaceEntityFieldDelegate<V extends AbstractEntity>
-
get
public <EF extends Enum<? extends EntityField<V>> & EntityField<V>> Object get(EF field)
- Specified by:
get
in interfaceEntityFieldDelegate<V extends AbstractEntity>
-
set
public <T,EF extends Enum<? extends EntityField<V>> & EntityField<V>> void set(EF field, T value)
- Specified by:
set
in interfaceEntityFieldDelegate<V extends AbstractEntity>
-
isUpdated
public boolean isUpdated()
Description copied from interface:UpdatableEntity
Flag signalizing that any of the setters has been meaningfully used.- Specified by:
isUpdated
in interfaceUpdatableEntity
- Returns:
-
-