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.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
ConstructorsConstructorDescriptionNo-argument constructor, used by hibernate to instantiate entities.JpaAdminEventEntity
(DeepCloner cloner) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getError()
Returns a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.getId()
Returns a point in time (timestamp in milliseconds since The Epoch) when the event was created.int
Version of the JPA entity used for optimistic lockingint
hashCode()
boolean
void
setAuthClientId
(String clientId) void
setAuthIpAddress
(String ipAddress) void
setAuthRealmId
(String realmId) void
setAuthUserId
(String userId) void
setEntityVersion
(Integer entityVersion) void
void
setExpiration
(Long expiration) Sets a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.void
void
setOperationType
(OperationType operationType) void
setRealmId
(String realmId) void
setRepresentation
(String representation) void
setResourcePath
(String resourcePath) void
setResourceType
(String resourceType) void
setTimestamp
(Long time) Sets a point in the (timestamp in milliseconds since The Epoch) when this entity was created.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
-
JpaAdminEventEntity
public JpaAdminEventEntity()No-argument constructor, used by hibernate to instantiate entities. -
JpaAdminEventEntity
-
-
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.
-
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 classMapAdminEventEntity.AbstractAdminEventEntity
-
setId
- Specified by:
setId
in interfaceAbstractEntity
- Overrides:
setId
in classMapAdminEventEntity.AbstractAdminEventEntity
-
getCurrentSchemaVersion
- Specified by:
getCurrentSchemaVersion
in interfaceJpaRootEntity
-
getExpiration
Description copied from interface:ExpirableEntity
Returns a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.- Specified by:
getExpiration
in interfaceExpirableEntity
- Returns:
- a timestamp in milliseconds since The Epoch or
null
if this entity never expires or expiration is not known.
-
setExpiration
Description copied from interface:ExpirableEntity
Sets a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.- Specified by:
setExpiration
in interfaceExpirableEntity
- Parameters:
expiration
- a timestamp in milliseconds since The Epoch ornull
if this entity never expires.
-
getTimestamp
Description copied from interface:MapAdminEventEntity
Returns a point in time (timestamp in milliseconds since The Epoch) when the event was created.- Specified by:
getTimestamp
in interfaceMapAdminEventEntity
- Returns:
- a timestamp in milliseconds since The Epoch or
null
when the time is unknown
-
setTimestamp
Description copied from interface:MapAdminEventEntity
Sets a point in the (timestamp in milliseconds since The Epoch) when this entity was created.- Specified by:
setTimestamp
in interfaceMapAdminEventEntity
- Parameters:
time
- a timestamp in milliseconds since The Epoch ornull
when the time is unknown
-
getRealmId
- Specified by:
getRealmId
in interfaceMapAdminEventEntity
-
setRealmId
- Specified by:
setRealmId
in interfaceMapAdminEventEntity
-
getOperationType
- Specified by:
getOperationType
in interfaceMapAdminEventEntity
-
setOperationType
- Specified by:
setOperationType
in interfaceMapAdminEventEntity
-
getResourcePath
- Specified by:
getResourcePath
in interfaceMapAdminEventEntity
-
setResourcePath
- Specified by:
setResourcePath
in interfaceMapAdminEventEntity
-
getResourceType
- Specified by:
getResourceType
in interfaceMapAdminEventEntity
-
setResourceType
- Specified by:
setResourceType
in interfaceMapAdminEventEntity
-
getRepresentation
- Specified by:
getRepresentation
in interfaceMapAdminEventEntity
-
setRepresentation
- Specified by:
setRepresentation
in interfaceMapAdminEventEntity
-
getError
- Specified by:
getError
in interfaceMapAdminEventEntity
-
setError
- Specified by:
setError
in interfaceMapAdminEventEntity
-
getAuthClientId
- Specified by:
getAuthClientId
in interfaceMapAdminEventEntity
-
setAuthClientId
- Specified by:
setAuthClientId
in interfaceMapAdminEventEntity
-
getAuthRealmId
- Specified by:
getAuthRealmId
in interfaceMapAdminEventEntity
-
setAuthRealmId
- Specified by:
setAuthRealmId
in interfaceMapAdminEventEntity
-
getAuthUserId
- Specified by:
getAuthUserId
in interfaceMapAdminEventEntity
-
setAuthUserId
- Specified by:
setAuthUserId
in interfaceMapAdminEventEntity
-
getAuthIpAddress
- Specified by:
getAuthIpAddress
in interfaceMapAdminEventEntity
-
setAuthIpAddress
- Specified by:
setAuthIpAddress
in interfaceMapAdminEventEntity
-
hashCode
public int hashCode() -
equals
-