Class JpaResourceServerEntity
java.lang.Object
org.keycloak.models.map.common.UpdatableEntity.Impl
org.keycloak.models.map.authorization.entity.MapResourceServerEntity.AbstractMapResourceServerEntity
org.keycloak.models.map.storage.jpa.authorization.resourceServer.entity.JpaResourceServerEntity
- All Implemented Interfaces:
Serializable,MapResourceServerEntity,AbstractEntity,UpdatableEntity,JpaRootEntity,JpaRootVersionedEntity
@Entity
public class JpaResourceServerEntity
extends MapResourceServerEntity.AbstractMapResourceServerEntity
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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.models.map.authorization.entity.MapResourceServerEntity
MapResourceServerEntity.AbstractMapResourceServerEntityNested classes/interfaces inherited from interface org.keycloak.models.map.common.UpdatableEntity
UpdatableEntity.Impl -
Field Summary
Fields inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
updated -
Constructor Summary
ConstructorsConstructorDescriptionNo-argument constructor, used by hibernate to instantiate entities.JpaResourceServerEntity(UUID id, int version, Integer entityVersion, String realmId, String clientId) Used by hibernate when calling cb.construct from read(QueryParameters) method.JpaResourceServerEntity(DeepCloner cloner) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()intVersion of the JPA entity used for optimistic lockinginthashCode()booleanvoidsetAllowRemoteResourceManagement(Boolean allowRemoteResourceManagement) voidsetClientId(String clientId) voidsetDecisionStrategy(DecisionStrategy decisionStrategy) voidsetEntityVersion(Integer entityVersion) voidvoidsetPolicyEnforcementMode(PolicyEnforcementMode policyEnforcementMode) voidsetRealmId(String realmId) Methods inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
clearUpdatedFlag, isUpdated, markUpdatedFlagMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.models.map.storage.jpa.JpaRootEntity
updateEntityVersionMethods inherited from interface org.keycloak.models.map.common.UpdatableEntity
clearUpdatedFlag, isUpdated, markUpdatedFlag
-
Constructor Details
-
JpaResourceServerEntity
public JpaResourceServerEntity()No-argument constructor, used by hibernate to instantiate entities. -
JpaResourceServerEntity
-
JpaResourceServerEntity
public JpaResourceServerEntity(UUID id, int version, Integer entityVersion, String realmId, String clientId) Used by hibernate when calling cb.construct from read(QueryParameters) method. It is used to select object without metadata(json) field.
-
-
Method Details
-
isMetadataInitialized
public boolean isMetadataInitialized() -
getEntityVersion
- Specified by:
getEntityVersionin interfaceJpaRootEntity- Returns:
- current supported version of the JPA entity used for schema versioning.
-
setEntityVersion
- Specified by:
setEntityVersionin interfaceJpaRootEntity- Parameters:
entityVersion- sets current supported version to JPA entity.
-
getCurrentSchemaVersion
- Specified by:
getCurrentSchemaVersionin interfaceJpaRootEntity
-
getVersion
public int getVersion()Description copied from interface:JpaRootVersionedEntityVersion of the JPA entity used for optimistic locking- Specified by:
getVersionin interfaceJpaRootVersionedEntity
-
getId
- Specified by:
getIdin interfaceAbstractEntity- Overrides:
getIdin classMapResourceServerEntity.AbstractMapResourceServerEntity
-
setId
- Specified by:
setIdin interfaceAbstractEntity- Overrides:
setIdin classMapResourceServerEntity.AbstractMapResourceServerEntity
-
getRealmId
- Specified by:
getRealmIdin interfaceMapResourceServerEntity
-
setRealmId
- Specified by:
setRealmIdin interfaceMapResourceServerEntity
-
getClientId
- Specified by:
getClientIdin interfaceMapResourceServerEntity
-
setClientId
- Specified by:
setClientIdin interfaceMapResourceServerEntity
-
isAllowRemoteResourceManagement
- Specified by:
isAllowRemoteResourceManagementin interfaceMapResourceServerEntity
-
setAllowRemoteResourceManagement
- Specified by:
setAllowRemoteResourceManagementin interfaceMapResourceServerEntity
-
getPolicyEnforcementMode
- Specified by:
getPolicyEnforcementModein interfaceMapResourceServerEntity
-
setPolicyEnforcementMode
- Specified by:
setPolicyEnforcementModein interfaceMapResourceServerEntity
-
getDecisionStrategy
- Specified by:
getDecisionStrategyin interfaceMapResourceServerEntity
-
setDecisionStrategy
- Specified by:
setDecisionStrategyin interfaceMapResourceServerEntity
-
hashCode
public int hashCode() -
equals
-