Class MapSingleUseObjectEntityImpl.Empty
- java.lang.Object
-
- org.keycloak.models.map.common.UpdatableEntity.Impl
-
- org.keycloak.models.map.singleUseObject.MapSingleUseObjectEntity.AbstractSingleUseObjectEntity
-
- org.keycloak.models.map.singleUseObject.MapSingleUseObjectEntityImpl.Empty
-
- All Implemented Interfaces:
AbstractEntity
,ExpirableEntity
,UpdatableEntity
,MapSingleUseObjectEntity
- Enclosing class:
- MapSingleUseObjectEntityImpl
public static class MapSingleUseObjectEntityImpl.Empty extends MapSingleUseObjectEntity.AbstractSingleUseObjectEntity implements MapSingleUseObjectEntity
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.models.map.singleUseObject.MapSingleUseObjectEntity
MapSingleUseObjectEntity.AbstractSingleUseObjectEntity
-
Nested classes/interfaces inherited from interface org.keycloak.models.map.common.UpdatableEntity
UpdatableEntity.Impl
-
-
Field Summary
Fields Modifier and Type Field Description static MapSingleUseObjectEntityImpl.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 Long
getExpiration()
Returns a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.String
getId()
String
getNote(String name)
Map<String,String>
getNotes()
String
getObjectKey()
boolean
isUpdated()
Flag signalizing that any of the setters has been meaningfully used.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
setNote(String key, String value)
void
setNotes(Map<String,String> notes)
void
setObjectKey(String objectKey)
-
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 MapSingleUseObjectEntityImpl.Empty INSTANCE
-
-
Method Detail
-
setId
public void setId(String id)
- Specified by:
setId
in interfaceAbstractEntity
- Overrides:
setId
in classMapSingleUseObjectEntity.AbstractSingleUseObjectEntity
-
getId
public String getId()
- Specified by:
getId
in interfaceAbstractEntity
- Overrides:
getId
in classMapSingleUseObjectEntity.AbstractSingleUseObjectEntity
-
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.
-
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.
-
getNotes
public Map<String,String> getNotes()
- Specified by:
getNotes
in interfaceMapSingleUseObjectEntity
-
setNotes
public void setNotes(Map<String,String> notes)
- Specified by:
setNotes
in interfaceMapSingleUseObjectEntity
-
getNote
public String getNote(String name)
- Specified by:
getNote
in interfaceMapSingleUseObjectEntity
-
setNote
public void setNote(String key, String value)
- Specified by:
setNote
in interfaceMapSingleUseObjectEntity
-
getObjectKey
public String getObjectKey()
- Specified by:
getObjectKey
in interfaceMapSingleUseObjectEntity
-
setObjectKey
public void setObjectKey(String objectKey)
- Specified by:
setObjectKey
in interfaceMapSingleUseObjectEntity
-
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:
-
-