Class JpaMapRoleEntityDelegate
java.lang.Object
org.keycloak.models.map.role.MapRoleEntityDelegate
org.keycloak.models.map.storage.jpa.role.delegate.JpaMapRoleEntityDelegate
- All Implemented Interfaces:
AbstractEntity,HasDelegateProvider<MapRoleEntity>,EntityWithAttributes,UpdatableEntity,MapRoleEntity
Delegate for the JPA implementation for MapRoleEntityDelegate.
It will delegate all access to the composite roles to a separate table.
For performance reasons, it caches the composite roles within the session if they have already been retrieved.
This relies on the behavior of
JpaMapStorage that
each entity is created only once within each session.- Author:
- Alexander Schwartz
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.models.map.role.MapRoleEntity
MapRoleEntity.AbstractRoleEntityNested classes/interfaces inherited from interface org.keycloak.models.map.common.UpdatableEntity
UpdatableEntity.Impl -
Constructor Summary
ConstructorsConstructorDescriptionJpaMapRoleEntityDelegate(JpaRoleEntity original, jakarta.persistence.EntityManager em) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCompositeRole(String roleId) voidremoveCompositeRole(String roleId) voidsetCompositeRoles(Set<String> compositeRoles) voidMethods inherited from class org.keycloak.models.map.role.MapRoleEntityDelegate
getAttribute, getAttributes, getClientId, getDelegateProvider, getDescription, getId, getName, getRealmId, isUpdated, removeAttribute, setAttribute, setAttributes, setClientId, setDescription, setName, setRealmId, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.keycloak.models.map.common.UpdatableEntity
clearUpdatedFlag, markUpdatedFlag
-
Constructor Details
-
JpaMapRoleEntityDelegate
-
-
Method Details
-
setId
- Specified by:
setIdin interfaceAbstractEntity- Overrides:
setIdin classMapRoleEntityDelegate
-
getCompositeRoles
- Specified by:
getCompositeRolesin interfaceMapRoleEntity- Overrides:
getCompositeRolesin classMapRoleEntityDelegate
-
setCompositeRoles
- Specified by:
setCompositeRolesin interfaceMapRoleEntity- Overrides:
setCompositeRolesin classMapRoleEntityDelegate
-
addCompositeRole
- Specified by:
addCompositeRolein interfaceMapRoleEntity- Overrides:
addCompositeRolein classMapRoleEntityDelegate
-
removeCompositeRole
- Specified by:
removeCompositeRolein interfaceMapRoleEntity- Overrides:
removeCompositeRolein classMapRoleEntityDelegate
-