Package org.keycloak.models.map.events
Class MapAuthEventEntityImpl.Empty
- java.lang.Object
-
- org.keycloak.models.map.common.UpdatableEntity.Impl
-
- org.keycloak.models.map.events.MapAuthEventEntity.AbstractAuthEventEntity
-
- org.keycloak.models.map.events.MapAuthEventEntityImpl.Empty
-
- All Implemented Interfaces:
AbstractEntity
,ExpirableEntity
,UpdatableEntity
,MapAuthEventEntity
- Enclosing class:
- MapAuthEventEntityImpl
public static class MapAuthEventEntityImpl.Empty extends MapAuthEventEntity.AbstractAuthEventEntity implements MapAuthEventEntity
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.models.map.events.MapAuthEventEntity
MapAuthEventEntity.AbstractAuthEventEntity
-
Nested classes/interfaces inherited from interface org.keycloak.models.map.common.UpdatableEntity
UpdatableEntity.Impl
-
-
Field Summary
Fields Modifier and Type Field Description static MapAuthEventEntityImpl.Empty
INSTANCE
-
Fields inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
updated
-
-
Constructor Summary
Constructors Constructor Description Empty()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getClientId()
Map<String,String>
getDetails()
String
getError()
Long
getExpiration()
Returns a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.String
getId()
String
getIpAddress()
String
getRealmId()
String
getSessionId()
Long
getTimestamp()
Returns a point in time (timestamp in milliseconds since The Epoch) when the event entity was created.EventType
getType()
String
getUserId()
boolean
isUpdated()
Flag signalizing that any of the setters has been meaningfully used.void
setClientId(String clientId)
void
setDetails(Map<String,String> details)
void
setError(String error)
void
setExpiration(Long expiration)
Sets a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.void
setId(String id)
void
setIpAddress(String ipAddress)
void
setRealmId(String realmId)
void
setSessionId(String sessionId)
void
setTimestamp(Long timestamp)
Sets a point in the (timestamp in milliseconds since The Epoch) when the event entity was created.void
setType(EventType type)
void
setUserId(String userId)
-
Methods inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
clearUpdatedFlag
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.models.map.common.UpdatableEntity
clearUpdatedFlag
-
-
-
-
Field Detail
-
INSTANCE
public static final MapAuthEventEntityImpl.Empty INSTANCE
-
-
Method Detail
-
setId
public void setId(String id)
- Specified by:
setId
in interfaceAbstractEntity
- Overrides:
setId
in classMapAuthEventEntity.AbstractAuthEventEntity
-
getId
public String getId()
- Specified by:
getId
in interfaceAbstractEntity
- Overrides:
getId
in classMapAuthEventEntity.AbstractAuthEventEntity
-
getClientId
public String getClientId()
- Specified by:
getClientId
in interfaceMapAuthEventEntity
-
setClientId
public void setClientId(String clientId)
- Specified by:
setClientId
in interfaceMapAuthEventEntity
-
setDetails
public void setDetails(Map<String,String> details)
- Specified by:
setDetails
in interfaceMapAuthEventEntity
-
getDetails
public Map<String,String> getDetails()
- Specified by:
getDetails
in interfaceMapAuthEventEntity
-
getError
public String getError()
- Specified by:
getError
in interfaceMapAuthEventEntity
-
setError
public void setError(String error)
- Specified by:
setError
in interfaceMapAuthEventEntity
-
getExpiration
public Long 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
public void setExpiration(Long expiration)
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.
-
getIpAddress
public String getIpAddress()
- Specified by:
getIpAddress
in interfaceMapAuthEventEntity
-
setIpAddress
public void setIpAddress(String ipAddress)
- Specified by:
setIpAddress
in interfaceMapAuthEventEntity
-
getRealmId
public String getRealmId()
- Specified by:
getRealmId
in interfaceMapAuthEventEntity
-
setRealmId
public void setRealmId(String realmId)
- Specified by:
setRealmId
in interfaceMapAuthEventEntity
-
setSessionId
public void setSessionId(String sessionId)
- Specified by:
setSessionId
in interfaceMapAuthEventEntity
-
getSessionId
public String getSessionId()
- Specified by:
getSessionId
in interfaceMapAuthEventEntity
-
getTimestamp
public Long getTimestamp()
Description copied from interface:MapAuthEventEntity
Returns a point in time (timestamp in milliseconds since The Epoch) when the event entity was created.- Specified by:
getTimestamp
in interfaceMapAuthEventEntity
- Returns:
- a timestamp in milliseconds since The Epoch or
null
when the time is unknown
-
setTimestamp
public void setTimestamp(Long timestamp)
Description copied from interface:MapAuthEventEntity
Sets a point in the (timestamp in milliseconds since The Epoch) when the event entity was created.- Specified by:
setTimestamp
in interfaceMapAuthEventEntity
- Parameters:
timestamp
- a timestamp in milliseconds since The Epoch ornull
when the time is unknown
-
setType
public void setType(EventType type)
- Specified by:
setType
in interfaceMapAuthEventEntity
-
getType
public EventType getType()
- Specified by:
getType
in interfaceMapAuthEventEntity
-
getUserId
public String getUserId()
- Specified by:
getUserId
in interfaceMapAuthEventEntity
-
setUserId
public void setUserId(String userId)
- Specified by:
setUserId
in interfaceMapAuthEventEntity
-
isUpdated
public boolean isUpdated()
Description copied from interface:UpdatableEntity
Flag signalizing that any of the setters has been meaningfully used.- Specified by:
isUpdated
in interfaceUpdatableEntity
- Overrides:
isUpdated
in classUpdatableEntity.Impl
- Returns:
-
-