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.AbstractMapResourceServerEntity
Nested 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 TypeMethodDescriptionboolean
getId()
int
Version of the JPA entity used for optimistic lockingint
hashCode()
boolean
void
setAllowRemoteResourceManagement
(Boolean allowRemoteResourceManagement) void
setClientId
(String clientId) void
setDecisionStrategy
(DecisionStrategy decisionStrategy) void
setEntityVersion
(Integer entityVersion) void
void
setPolicyEnforcementMode
(PolicyEnforcementMode policyEnforcementMode) void
setRealmId
(String realmId) Methods inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
clearUpdatedFlag, isUpdated, markUpdatedFlag
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.models.map.storage.jpa.JpaRootEntity
updateEntityVersion
Methods 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:
getEntityVersion
in interfaceJpaRootEntity
- Returns:
- current supported version of the JPA entity used for schema versioning.
-
setEntityVersion
- Specified by:
setEntityVersion
in interfaceJpaRootEntity
- Parameters:
entityVersion
- sets current supported version to JPA entity.
-
getCurrentSchemaVersion
- Specified by:
getCurrentSchemaVersion
in interfaceJpaRootEntity
-
getVersion
public int getVersion()Description copied from interface:JpaRootVersionedEntity
Version of the JPA entity used for optimistic locking- Specified by:
getVersion
in interfaceJpaRootVersionedEntity
-
getId
- Specified by:
getId
in interfaceAbstractEntity
- Overrides:
getId
in classMapResourceServerEntity.AbstractMapResourceServerEntity
-
setId
- Specified by:
setId
in interfaceAbstractEntity
- Overrides:
setId
in classMapResourceServerEntity.AbstractMapResourceServerEntity
-
getRealmId
- Specified by:
getRealmId
in interfaceMapResourceServerEntity
-
setRealmId
- Specified by:
setRealmId
in interfaceMapResourceServerEntity
-
getClientId
- Specified by:
getClientId
in interfaceMapResourceServerEntity
-
setClientId
- Specified by:
setClientId
in interfaceMapResourceServerEntity
-
isAllowRemoteResourceManagement
- Specified by:
isAllowRemoteResourceManagement
in interfaceMapResourceServerEntity
-
setAllowRemoteResourceManagement
- Specified by:
setAllowRemoteResourceManagement
in interfaceMapResourceServerEntity
-
getPolicyEnforcementMode
- Specified by:
getPolicyEnforcementMode
in interfaceMapResourceServerEntity
-
setPolicyEnforcementMode
- Specified by:
setPolicyEnforcementMode
in interfaceMapResourceServerEntity
-
getDecisionStrategy
- Specified by:
getDecisionStrategy
in interfaceMapResourceServerEntity
-
setDecisionStrategy
- Specified by:
setDecisionStrategy
in interfaceMapResourceServerEntity
-
hashCode
public int hashCode() -
equals
-