Class JpaRoleEntity
- java.lang.Object
- 
- org.keycloak.models.map.common.UpdatableEntity.Impl
- 
- org.keycloak.models.map.role.MapRoleEntity.AbstractRoleEntity
- 
- org.keycloak.models.map.storage.jpa.role.entity.JpaRoleEntity
 
 
 
- 
- All Implemented Interfaces:
- Serializable,- AbstractEntity,- EntityWithAttributes,- UpdatableEntity,- MapRoleEntity,- JpaRootEntity,- JpaRootVersionedEntity
 
 @Entity public class JpaRoleEntity extends MapRoleEntity.AbstractRoleEntity implements JpaRootVersionedEntity There are some fields marked by@Column(insertable = false, updatable = false). Those fields are automatically generated by database from json field, therefore marked as non-insertable and non-updatable to instruct hibernate.- See Also:
- Serialized Form
 
- 
- 
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
 
- 
 - 
Field Summary- 
Fields inherited from class org.keycloak.models.map.common.UpdatableEntity.Implupdated
 
- 
 - 
Constructor SummaryConstructors Constructor Description JpaRoleEntity()No-argument constructor, used by hibernate to instantiate entities.JpaRoleEntity(UUID id, int version, Integer entityVersion, String realmId, String clientId, String name, String description)Used by hibernate when calling cb.construct from read(QueryParameters) method.JpaRoleEntity(DeepCloner cloner)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCompositeRole(String roleId)booleanequals(Object obj)List<String>getAttribute(String name)Map<String,List<String>>getAttributes()StringgetClientId()Set<String>getCompositeRoles()IntegergetCurrentSchemaVersion()StringgetDescription()IntegergetEntityVersion()StringgetId()StringgetName()StringgetRealmId()intgetVersion()Version of the JPA entity used for optimistic lockinginthashCode()booleanisMetadataInitialized()voidremoveAttribute(String name)voidremoveCompositeRole(String roleId)voidsetAttribute(String name, List<String> values)voidsetAttributes(Map<String,List<String>> attributes)voidsetClientId(String clientId)voidsetCompositeRoles(Set<String> compositeRoles)voidsetDescription(String description)voidsetEntityVersion(Integer entityVersion)voidsetId(String id)voidsetName(String name)voidsetRealmId(String realmId)- 
Methods inherited from class org.keycloak.models.map.common.UpdatableEntity.ImplclearUpdatedFlag, isUpdated
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.models.map.storage.jpa.JpaRootEntityupdateEntityVersion
 - 
Methods inherited from interface org.keycloak.models.map.common.UpdatableEntityclearUpdatedFlag, isUpdated
 
- 
 
- 
- 
- 
Constructor Detail- 
JpaRoleEntitypublic JpaRoleEntity() No-argument constructor, used by hibernate to instantiate entities.
 - 
JpaRoleEntitypublic JpaRoleEntity(DeepCloner cloner) 
 
- 
 - 
Method Detail- 
isMetadataInitializedpublic boolean isMetadataInitialized() 
 - 
getCurrentSchemaVersionpublic Integer getCurrentSchemaVersion() - Specified by:
- getCurrentSchemaVersionin interface- JpaRootEntity
 
 - 
getEntityVersionpublic Integer getEntityVersion() - Specified by:
- getEntityVersionin interface- JpaRootEntity
- Returns:
- current supported version of the JPA entity used for schema versioning.
 
 - 
setEntityVersionpublic void setEntityVersion(Integer entityVersion) - Specified by:
- setEntityVersionin interface- JpaRootEntity
- Parameters:
- entityVersion- sets current supported version to JPA entity.
 
 - 
getVersionpublic int getVersion() Description copied from interface:JpaRootVersionedEntityVersion of the JPA entity used for optimistic locking- Specified by:
- getVersionin interface- JpaRootVersionedEntity
 
 - 
getIdpublic String getId() - Specified by:
- getIdin interface- AbstractEntity
- Overrides:
- getIdin class- MapRoleEntity.AbstractRoleEntity
 
 - 
setIdpublic void setId(String id) - Specified by:
- setIdin interface- AbstractEntity
- Overrides:
- setIdin class- MapRoleEntity.AbstractRoleEntity
 
 - 
getRealmIdpublic String getRealmId() - Specified by:
- getRealmIdin interface- MapRoleEntity
 
 - 
getClientIdpublic String getClientId() - Specified by:
- getClientIdin interface- MapRoleEntity
 
 - 
getNamepublic String getName() - Specified by:
- getNamein interface- MapRoleEntity
 
 - 
getDescriptionpublic String getDescription() - Specified by:
- getDescriptionin interface- MapRoleEntity
 
 - 
setRealmIdpublic void setRealmId(String realmId) - Specified by:
- setRealmIdin interface- MapRoleEntity
 
 - 
setClientIdpublic void setClientId(String clientId) - Specified by:
- setClientIdin interface- MapRoleEntity
 
 - 
setNamepublic void setName(String name) - Specified by:
- setNamein interface- MapRoleEntity
 
 - 
setDescriptionpublic void setDescription(String description) - Specified by:
- setDescriptionin interface- MapRoleEntity
 
 - 
getCompositeRolespublic Set<String> getCompositeRoles() - Specified by:
- getCompositeRolesin interface- MapRoleEntity
 
 - 
setCompositeRolespublic void setCompositeRoles(Set<String> compositeRoles) - Specified by:
- setCompositeRolesin interface- MapRoleEntity
 
 - 
addCompositeRolepublic void addCompositeRole(String roleId) - Specified by:
- addCompositeRolein interface- MapRoleEntity
 
 - 
removeCompositeRolepublic void removeCompositeRole(String roleId) - Specified by:
- removeCompositeRolein interface- MapRoleEntity
 
 - 
getAttributespublic Map<String,List<String>> getAttributes() - Specified by:
- getAttributesin interface- EntityWithAttributes
 
 - 
getAttributepublic List<String> getAttribute(String name) - Specified by:
- getAttributein interface- EntityWithAttributes
 
 - 
setAttributespublic void setAttributes(Map<String,List<String>> attributes) - Specified by:
- setAttributesin interface- EntityWithAttributes
 
 - 
setAttributepublic void setAttribute(String name, List<String> values) - Specified by:
- setAttributein interface- EntityWithAttributes
 
 - 
removeAttributepublic void removeAttribute(String name) - Specified by:
- removeAttributein interface- EntityWithAttributes
 
 
- 
 
-