Class JpaAdminEventEntity
java.lang.Object
org.keycloak.models.map.common.UpdatableEntity.Impl
org.keycloak.models.map.events.MapAdminEventEntity.AbstractAdminEventEntity
org.keycloak.models.map.storage.jpa.event.admin.entity.JpaAdminEventEntity
- All Implemented Interfaces:
Serializable,AbstractEntity,ExpirableEntity,UpdatableEntity,MapAdminEventEntity,JpaRootEntity,JpaRootVersionedEntity
@Entity
public class JpaAdminEventEntity
extends MapAdminEventEntity.AbstractAdminEventEntity
implements JpaRootVersionedEntity
JPA
MapAdminEventEntity implementation. Some fields are annotated with @Column(insertable = false, updatable = false)
to indicate that they are automatically generated from json fields. As such, these fields are non-insertable and non-updatable.- Author:
- Stefan Guilhen
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.models.map.events.MapAdminEventEntity
MapAdminEventEntity.AbstractAdminEventEntityNested 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.JpaAdminEventEntity(DeepCloner cloner) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetError()getId()org.keycloak.events.admin.OperationTypeintVersion of the JPA entity used for optimistic lockinginthashCode()booleanvoidsetAuthClientId(String clientId) voidsetAuthIpAddress(String ipAddress) voidsetAuthRealmId(String realmId) voidsetAuthUserId(String userId) voidsetEntityVersion(Integer entityVersion) voidvoidsetExpiration(Long expiration) voidvoidsetOperationType(org.keycloak.events.admin.OperationType operationType) voidsetRealmId(String realmId) voidsetRepresentation(String representation) voidsetResourcePath(String resourcePath) voidsetResourceType(String resourceType) voidsetTimestamp(Long time) 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
-
JpaAdminEventEntity
public JpaAdminEventEntity()No-argument constructor, used by hibernate to instantiate entities. -
JpaAdminEventEntity
-
-
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.
-
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 classMapAdminEventEntity.AbstractAdminEventEntity
-
setId
- Specified by:
setIdin interfaceAbstractEntity- Overrides:
setIdin classMapAdminEventEntity.AbstractAdminEventEntity
-
getCurrentSchemaVersion
- Specified by:
getCurrentSchemaVersionin interfaceJpaRootEntity
-
getExpiration
- Specified by:
getExpirationin interfaceExpirableEntity
-
setExpiration
- Specified by:
setExpirationin interfaceExpirableEntity
-
getTimestamp
- Specified by:
getTimestampin interfaceMapAdminEventEntity
-
setTimestamp
- Specified by:
setTimestampin interfaceMapAdminEventEntity
-
getRealmId
- Specified by:
getRealmIdin interfaceMapAdminEventEntity
-
setRealmId
- Specified by:
setRealmIdin interfaceMapAdminEventEntity
-
getOperationType
public org.keycloak.events.admin.OperationType getOperationType()- Specified by:
getOperationTypein interfaceMapAdminEventEntity
-
setOperationType
public void setOperationType(org.keycloak.events.admin.OperationType operationType) - Specified by:
setOperationTypein interfaceMapAdminEventEntity
-
getResourcePath
- Specified by:
getResourcePathin interfaceMapAdminEventEntity
-
setResourcePath
- Specified by:
setResourcePathin interfaceMapAdminEventEntity
-
getResourceType
- Specified by:
getResourceTypein interfaceMapAdminEventEntity
-
setResourceType
- Specified by:
setResourceTypein interfaceMapAdminEventEntity
-
getRepresentation
- Specified by:
getRepresentationin interfaceMapAdminEventEntity
-
setRepresentation
- Specified by:
setRepresentationin interfaceMapAdminEventEntity
-
getError
- Specified by:
getErrorin interfaceMapAdminEventEntity
-
setError
- Specified by:
setErrorin interfaceMapAdminEventEntity
-
getAuthClientId
- Specified by:
getAuthClientIdin interfaceMapAdminEventEntity
-
setAuthClientId
- Specified by:
setAuthClientIdin interfaceMapAdminEventEntity
-
getAuthRealmId
- Specified by:
getAuthRealmIdin interfaceMapAdminEventEntity
-
setAuthRealmId
- Specified by:
setAuthRealmIdin interfaceMapAdminEventEntity
-
getAuthUserId
- Specified by:
getAuthUserIdin interfaceMapAdminEventEntity
-
setAuthUserId
- Specified by:
setAuthUserIdin interfaceMapAdminEventEntity
-
getAuthIpAddress
- Specified by:
getAuthIpAddressin interfaceMapAdminEventEntity
-
setAuthIpAddress
- Specified by:
setAuthIpAddressin interfaceMapAdminEventEntity
-
hashCode
public int hashCode() -
equals
-