Class JpaGroupEntity
- java.lang.Object
- 
- org.keycloak.models.map.common.UpdatableEntity.Impl
- 
- org.keycloak.models.map.group.MapGroupEntity.AbstractGroupEntity
- 
- org.keycloak.models.map.storage.jpa.group.entity.JpaGroupEntity
 
 
 
- 
- All Implemented Interfaces:
- Serializable,- AbstractEntity,- EntityWithAttributes,- UpdatableEntity,- MapGroupEntity,- JpaRootEntity,- JpaRootVersionedEntity
 
 @Entity public class JpaGroupEntity extends MapGroupEntity.AbstractGroupEntity 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.group.MapGroupEntityMapGroupEntity.AbstractGroupEntity
 - 
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 JpaGroupEntity()No-argument constructor, used by hibernate to instantiate entities.JpaGroupEntity(UUID id, int version, Integer entityVersion, String realmId, String name, String parentId)Used by hibernate when calling cb.construct from read(QueryParameters) method.JpaGroupEntity(DeepCloner cloner)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGrantedRole(String role)booleanequals(Object obj)List<String>getAttribute(String name)Map<String,List<String>>getAttributes()IntegergetCurrentSchemaVersion()IntegergetEntityVersion()Set<String>getGrantedRoles()StringgetId()StringgetName()StringgetParentId()StringgetRealmId()intgetVersion()Version of the JPA entity used for optimistic lockinginthashCode()booleanisMetadataInitialized()voidremoveAttribute(String name)voidremoveGrantedRole(String role)voidsetAttribute(String name, List<String> values)voidsetAttributes(Map<String,List<String>> attributes)voidsetEntityVersion(Integer entityVersion)voidsetGrantedRoles(Set<String> grantedRoles)voidsetId(String id)voidsetName(String name)voidsetParentId(String parentId)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- 
JpaGroupEntitypublic JpaGroupEntity() No-argument constructor, used by hibernate to instantiate entities.
 - 
JpaGroupEntitypublic JpaGroupEntity(DeepCloner cloner) 
 
- 
 - 
Method Detail- 
isMetadataInitializedpublic boolean isMetadataInitialized() 
 - 
getEntityVersionpublic Integer getEntityVersion() - Specified by:
- getEntityVersionin interface- JpaRootEntity
- Returns:
- current supported version of the JPA entity used for schema versioning.
 
 - 
getCurrentSchemaVersionpublic Integer getCurrentSchemaVersion() - Specified by:
- getCurrentSchemaVersionin interface- JpaRootEntity
 
 - 
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- MapGroupEntity.AbstractGroupEntity
 
 - 
setIdpublic void setId(String id) - Specified by:
- setIdin interface- AbstractEntity
- Overrides:
- setIdin class- MapGroupEntity.AbstractGroupEntity
 
 - 
getRealmIdpublic String getRealmId() - Specified by:
- getRealmIdin interface- MapGroupEntity
 
 - 
setRealmIdpublic void setRealmId(String realmId) - Specified by:
- setRealmIdin interface- MapGroupEntity
 
 - 
getNamepublic String getName() - Specified by:
- getNamein interface- MapGroupEntity
 
 - 
setNamepublic void setName(String name) - Specified by:
- setNamein interface- MapGroupEntity
 
 - 
setParentIdpublic void setParentId(String parentId) - Specified by:
- setParentIdin interface- MapGroupEntity
 
 - 
getParentIdpublic String getParentId() - Specified by:
- getParentIdin interface- MapGroupEntity
 
 - 
getGrantedRolespublic Set<String> getGrantedRoles() - Specified by:
- getGrantedRolesin interface- MapGroupEntity
 
 - 
setGrantedRolespublic void setGrantedRoles(Set<String> grantedRoles) - Specified by:
- setGrantedRolesin interface- MapGroupEntity
 
 - 
addGrantedRolepublic void addGrantedRole(String role) - Specified by:
- addGrantedRolein interface- MapGroupEntity
 
 - 
removeGrantedRolepublic void removeGrantedRole(String role) - Specified by:
- removeGrantedRolein interface- MapGroupEntity
 
 - 
getAttributespublic Map<String,List<String>> getAttributes() - Specified by:
- getAttributesin interface- EntityWithAttributes
 
 - 
setAttributespublic void setAttributes(Map<String,List<String>> attributes) - Specified by:
- setAttributesin interface- EntityWithAttributes
 
 - 
getAttributepublic List<String> getAttribute(String name) - Specified by:
- getAttributein 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
 
 
- 
 
-