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
ConstructorDescriptionPerFieldDelegateProvider
(TreeStorageNodeInstance<V>.WithEntity nodeWithEntity, Supplier<V> fallbackProvider) PerFieldDelegateProvider
(TreeStorageNodeInstance<V> node, V entity, Supplier<V> fallbackProvider) -
Method Summary
Modifier and TypeMethodDescription<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
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, markUpdatedFlag
-
Constructor Details
-
PerFieldDelegateProvider
public PerFieldDelegateProvider(TreeStorageNodeInstance<V> node, V entity, Supplier<V> fallbackProvider) -
PerFieldDelegateProvider
public PerFieldDelegateProvider(TreeStorageNodeInstance<V>.WithEntity nodeWithEntity, Supplier<V> fallbackProvider)
-
-
Method Details
-
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, void mapPutEF extends Enum<? extends EntityField<V>> & EntityField<V>> (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
- Specified by:
get
in interfaceEntityFieldDelegate<V extends AbstractEntity>
-
set
- 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:
-