Class SimpleDelegateProvider<T extends UpdatableEntity>
- java.lang.Object
-
- org.keycloak.models.map.common.delegate.SimpleDelegateProvider<T>
-
- All Implemented Interfaces:
DelegateProvider<T>
public class SimpleDelegateProvider<T extends UpdatableEntity> extends Object implements DelegateProvider<T>
- Author:
- hmlnarik
-
-
Constructor Summary
Constructors Constructor Description SimpleDelegateProvider(T delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getDelegate(boolean isRead, Enum<? extends EntityField<T>> field, Object... parameters)
Returns a delegate for and entity for an operation on a field.boolean
isUpdated()
-
-
-
Constructor Detail
-
SimpleDelegateProvider
public SimpleDelegateProvider(T delegate)
-
-
Method Detail
-
getDelegate
public T getDelegate(boolean isRead, Enum<? extends EntityField<T>> field, Object... parameters)
Description copied from interface:DelegateProvider
Returns a delegate for and entity for an operation on a field.- Specified by:
getDelegate
in interfaceDelegateProvider<T extends UpdatableEntity>
- Parameters:
isRead
-true
when the delegate requested for a read operation, false otherwisefield
- Identification of the field this delegates operates on. While this parameter can be any object includingnull
, if it is a known field, then it is guaranteed to be one of theEntityField
s enumerated in one of theMap*EntityFields
enum.- Returns:
-
isUpdated
public boolean isUpdated()
- Specified by:
isUpdated
in interfaceDelegateProvider<T extends UpdatableEntity>
-
-