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
JPAMapAdminEventEntityimplementation. 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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.models.map.events.MapAdminEventEntity
MapAdminEventEntity.AbstractAdminEventEntity
-
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
Constructors Constructor Description JpaAdminEventEntity()No-argument constructor, used by hibernate to instantiate entities.JpaAdminEventEntity(DeepCloner cloner)
-
Method Summary
-
Methods inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
clearUpdatedFlag, isUpdated
-
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
-
-
-
-
Constructor Detail
-
JpaAdminEventEntity
public JpaAdminEventEntity()
No-argument constructor, used by hibernate to instantiate entities.
-
JpaAdminEventEntity
public JpaAdminEventEntity(DeepCloner cloner)
-
-
Method Detail
-
isMetadataInitialized
public boolean isMetadataInitialized()
-
getEntityVersion
public Integer getEntityVersion()
- Specified by:
getEntityVersionin interfaceJpaRootEntity- Returns:
- current supported version of the JPA entity used for schema versioning.
-
setEntityVersion
public void setEntityVersion(Integer entityVersion)
- 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
public String getId()
- Specified by:
getIdin interfaceAbstractEntity- Overrides:
getIdin classMapAdminEventEntity.AbstractAdminEventEntity
-
setId
public void setId(String id)
- Specified by:
setIdin interfaceAbstractEntity- Overrides:
setIdin classMapAdminEventEntity.AbstractAdminEventEntity
-
getCurrentSchemaVersion
public Integer getCurrentSchemaVersion()
- Specified by:
getCurrentSchemaVersionin interfaceJpaRootEntity
-
getExpiration
public Long getExpiration()
- Specified by:
getExpirationin interfaceExpirableEntity
-
setExpiration
public void setExpiration(Long expiration)
- Specified by:
setExpirationin interfaceExpirableEntity
-
getTimestamp
public Long getTimestamp()
- Specified by:
getTimestampin interfaceMapAdminEventEntity
-
setTimestamp
public void setTimestamp(Long time)
- Specified by:
setTimestampin interfaceMapAdminEventEntity
-
getRealmId
public String getRealmId()
- Specified by:
getRealmIdin interfaceMapAdminEventEntity
-
setRealmId
public void setRealmId(String realmId)
- 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
public String getResourcePath()
- Specified by:
getResourcePathin interfaceMapAdminEventEntity
-
setResourcePath
public void setResourcePath(String resourcePath)
- Specified by:
setResourcePathin interfaceMapAdminEventEntity
-
getResourceType
public String getResourceType()
- Specified by:
getResourceTypein interfaceMapAdminEventEntity
-
setResourceType
public void setResourceType(String resourceType)
- Specified by:
setResourceTypein interfaceMapAdminEventEntity
-
getRepresentation
public String getRepresentation()
- Specified by:
getRepresentationin interfaceMapAdminEventEntity
-
setRepresentation
public void setRepresentation(String representation)
- Specified by:
setRepresentationin interfaceMapAdminEventEntity
-
getError
public String getError()
- Specified by:
getErrorin interfaceMapAdminEventEntity
-
setError
public void setError(String error)
- Specified by:
setErrorin interfaceMapAdminEventEntity
-
getAuthClientId
public String getAuthClientId()
- Specified by:
getAuthClientIdin interfaceMapAdminEventEntity
-
setAuthClientId
public void setAuthClientId(String clientId)
- Specified by:
setAuthClientIdin interfaceMapAdminEventEntity
-
getAuthRealmId
public String getAuthRealmId()
- Specified by:
getAuthRealmIdin interfaceMapAdminEventEntity
-
setAuthRealmId
public void setAuthRealmId(String realmId)
- Specified by:
setAuthRealmIdin interfaceMapAdminEventEntity
-
getAuthUserId
public String getAuthUserId()
- Specified by:
getAuthUserIdin interfaceMapAdminEventEntity
-
setAuthUserId
public void setAuthUserId(String userId)
- Specified by:
setAuthUserIdin interfaceMapAdminEventEntity
-
getAuthIpAddress
public String getAuthIpAddress()
- Specified by:
getAuthIpAddressin interfaceMapAdminEventEntity
-
setAuthIpAddress
public void setAuthIpAddress(String ipAddress)
- Specified by:
setAuthIpAddressin interfaceMapAdminEventEntity
-
-