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
 
 public class JpaMapRoleEntityDelegate extends MapRoleEntityDelegate 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 ofJpaMapKeycloakTransactionthat 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.MapRoleEntityMapRoleEntity.AbstractRoleEntity
 - 
Nested classes/interfaces inherited from interface org.keycloak.models.map.common.UpdatableEntityUpdatableEntity.Impl
 
- 
 - 
Constructor SummaryConstructors Constructor Description JpaMapRoleEntityDelegate(JpaRoleEntity original, javax.persistence.EntityManager em)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCompositeRole(String roleId)Set<String>getCompositeRoles()voidremoveCompositeRole(String roleId)voidsetCompositeRoles(Set<String> compositeRoles)voidsetId(String id)- 
Methods inherited from class org.keycloak.models.map.role.MapRoleEntityDelegategetAttribute, getAttributes, getClientId, getDelegateProvider, getDescription, getId, getName, getRealmId, isUpdated, removeAttribute, setAttribute, setAttributes, setClientId, setDescription, setName, setRealmId
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.models.map.common.UpdatableEntityclearUpdatedFlag
 
- 
 
- 
- 
- 
Constructor Detail- 
JpaMapRoleEntityDelegatepublic JpaMapRoleEntityDelegate(JpaRoleEntity original, javax.persistence.EntityManager em) 
 
- 
 - 
Method Detail- 
setIdpublic void setId(String id) - Specified by:
- setIdin interface- AbstractEntity
- Overrides:
- setIdin class- MapRoleEntityDelegate
 
 - 
getCompositeRolespublic Set<String> getCompositeRoles() - Specified by:
- getCompositeRolesin interface- MapRoleEntity
- Overrides:
- getCompositeRolesin class- MapRoleEntityDelegate
 
 - 
setCompositeRolespublic void setCompositeRoles(Set<String> compositeRoles) - Specified by:
- setCompositeRolesin interface- MapRoleEntity
- Overrides:
- setCompositeRolesin class- MapRoleEntityDelegate
 
 - 
addCompositeRolepublic void addCompositeRole(String roleId) - Specified by:
- addCompositeRolein interface- MapRoleEntity
- Overrides:
- addCompositeRolein class- MapRoleEntityDelegate
 
 - 
removeCompositeRolepublic void removeCompositeRole(String roleId) - Specified by:
- removeCompositeRolein interface- MapRoleEntity
- Overrides:
- removeCompositeRolein class- MapRoleEntityDelegate
 
 
- 
 
-