Extract timestamp from Expirable entity
This commit is contained in:
parent
6c3d25fd8f
commit
75754eca6b
8 changed files with 103 additions and 17 deletions
|
@ -34,6 +34,19 @@ public interface MapAuthenticationSessionEntity extends UpdatableEntity {
|
|||
String getTabId();
|
||||
void setTabId(String tabId);
|
||||
|
||||
/**
|
||||
* Returns a point in time (timestamp in milliseconds since The Epoch) when the authentication session entity was created.
|
||||
*
|
||||
* @return a timestamp in milliseconds since The Epoch or {@code null} when the time is unknown
|
||||
*/
|
||||
Long getTimestamp();
|
||||
|
||||
/**
|
||||
* Sets a point in the (timestamp in milliseconds since The Epoch) when the authentication session entity was created.
|
||||
* @param timestamp a timestamp in milliseconds since The Epoch or {@code null} when the time is unknown
|
||||
*/
|
||||
void setTimestamp(Long timestamp);
|
||||
|
||||
Map<String, String> getUserSessionNotes();
|
||||
void setUserSessionNotes(Map<String, String> userSessionNotes);
|
||||
void setUserSessionNote(String name, String value);
|
||||
|
@ -44,9 +57,6 @@ public interface MapAuthenticationSessionEntity extends UpdatableEntity {
|
|||
String getAuthUserId();
|
||||
void setAuthUserId(String authUserId);
|
||||
|
||||
Long getTimestamp();
|
||||
void setTimestamp(Long timestamp);
|
||||
|
||||
String getRedirectUri();
|
||||
void setRedirectUri(String redirectUri);
|
||||
|
||||
|
|
|
@ -85,6 +85,21 @@ public interface MapRootAuthenticationSessionEntity extends AbstractEntity, Upda
|
|||
String getRealmId();
|
||||
void setRealmId(String realmId);
|
||||
|
||||
/**
|
||||
* Returns a point in time (timestamp in milliseconds since The Epoch) when the root authentication session entity was created or
|
||||
* updated during an authentication process.
|
||||
*
|
||||
* @return a timestamp in milliseconds since The Epoch or {@code null} when the time is unknown
|
||||
*/
|
||||
Long getTimestamp();
|
||||
|
||||
/**
|
||||
* Sets a point in the (timestamp in milliseconds since The Epoch) when the root authentication session entity was created or
|
||||
* updated during an authentication process.
|
||||
* @param timestamp a timestamp in milliseconds since The Epoch or {@code null} when the time is unknown
|
||||
*/
|
||||
void setTimestamp(Long timestamp);
|
||||
|
||||
Set<MapAuthenticationSessionEntity> getAuthenticationSessions();
|
||||
void setAuthenticationSessions(Set<MapAuthenticationSessionEntity> authenticationSessions);
|
||||
Optional<MapAuthenticationSessionEntity> getAuthenticationSession(String tabId);
|
||||
|
|
|
@ -44,18 +44,4 @@ public interface ExpirableEntity extends AbstractEntity {
|
|||
* @param expiration a timestamp in milliseconds since The Epoch or {@code null} if this entity never expires.
|
||||
*/
|
||||
void setExpiration(Long expiration);
|
||||
|
||||
/**
|
||||
* Returns a point in time (timestamp in milliseconds since The Epoch) when this entity was created or updated
|
||||
*
|
||||
* @return a timestamp in milliseconds since The Epoch or {@code null} when the time is unknown
|
||||
*/
|
||||
Long getTimestamp();
|
||||
|
||||
/**
|
||||
* Sets a point in the (timestamp in milliseconds since The Epoch) when this entity was created or updated
|
||||
*
|
||||
* @param timestamp a timestamp in milliseconds since The Epoch or {@code null} when the time is unknown
|
||||
*/
|
||||
void setTimestamp(Long timestamp);
|
||||
}
|
||||
|
|
|
@ -48,6 +48,19 @@ public interface MapAdminEventEntity extends UpdatableEntity, AbstractEntity, Ex
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a point in time (timestamp in milliseconds since The Epoch) when the event was created.
|
||||
*
|
||||
* @return a timestamp in milliseconds since The Epoch or {@code null} when the time is unknown
|
||||
*/
|
||||
Long getTimestamp();
|
||||
|
||||
/**
|
||||
* Sets a point in the (timestamp in milliseconds since The Epoch) when this entity was created.
|
||||
* @param timestamp a timestamp in milliseconds since The Epoch or {@code null} when the time is unknown
|
||||
*/
|
||||
void setTimestamp(Long timestamp);
|
||||
|
||||
String getRealmId();
|
||||
void setRealmId(String realmId);
|
||||
|
||||
|
|
|
@ -50,6 +50,19 @@ public interface MapAuthEventEntity extends UpdatableEntity, AbstractEntity, Exp
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a point in time (timestamp in milliseconds since The Epoch) when the event entity was created.
|
||||
*
|
||||
* @return a timestamp in milliseconds since The Epoch or {@code null} when the time is unknown
|
||||
*/
|
||||
Long getTimestamp();
|
||||
|
||||
/**
|
||||
* Sets a point in the (timestamp in milliseconds since The Epoch) when the event entity was created.
|
||||
* @param timestamp a timestamp in milliseconds since The Epoch or {@code null} when the time is unknown
|
||||
*/
|
||||
void setTimestamp(Long timestamp);
|
||||
|
||||
EventType getType();
|
||||
void setType(EventType type);
|
||||
|
||||
|
|
|
@ -57,6 +57,19 @@ public interface MapClientInitialAccessEntity extends UpdatableEntity, AbstractE
|
|||
return model;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a point in time (timestamp in milliseconds since The Epoch) when the client initial access entity was created.
|
||||
*
|
||||
* @return a timestamp in milliseconds since The Epoch or {@code null} when the time is unknown
|
||||
*/
|
||||
Long getTimestamp();
|
||||
|
||||
/**
|
||||
* Sets a point in the (timestamp in milliseconds since The Epoch) when the client initial access entity was created.
|
||||
* @param timestamp a timestamp in milliseconds since The Epoch or {@code null} when the time is unknown
|
||||
*/
|
||||
void setTimestamp(Long timestamp);
|
||||
|
||||
Integer getCount();
|
||||
void setCount(Integer count);
|
||||
|
||||
|
|
|
@ -50,6 +50,19 @@ public interface MapAuthenticatedClientSessionEntity extends AbstractEntity, Upd
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a point in time (timestamp in milliseconds since The Epoch) when the client session entity was created or updated (refreshed).
|
||||
*
|
||||
* @return a timestamp in milliseconds since The Epoch or {@code null} when the time is unknown
|
||||
*/
|
||||
Long getTimestamp();
|
||||
|
||||
/**
|
||||
* Sets a point in the (timestamp in milliseconds since The Epoch) when the client session entity was created or updated (refreshed).
|
||||
* @param timestamp a timestamp in milliseconds since The Epoch or {@code null} when the time is unknown
|
||||
*/
|
||||
void setTimestamp(Long timestamp);
|
||||
|
||||
String getRealmId();
|
||||
void setRealmId(String realmId);
|
||||
|
||||
|
|
|
@ -76,7 +76,30 @@ public interface MapUserSessionEntity extends AbstractEntity, UpdatableEntity, E
|
|||
Boolean isRememberMe();
|
||||
void setRememberMe(Boolean rememberMe);
|
||||
|
||||
/**
|
||||
* Returns a point in time (timestamp in milliseconds since The Epoch) when the user session entity was created.
|
||||
*
|
||||
* @return a timestamp in milliseconds since The Epoch or {@code null} when the time is unknown
|
||||
*/
|
||||
Long getTimestamp();
|
||||
|
||||
/**
|
||||
* Sets a point in the (timestamp in milliseconds since The Epoch) when the user session entity was created.
|
||||
* @param timestamp a timestamp in milliseconds since The Epoch or {@code null} when the time is unknown
|
||||
*/
|
||||
void setTimestamp(Long timestamp);
|
||||
|
||||
/**
|
||||
* Returns a point in time (timestamp in milliseconds since The Epoch) when the user session entity was last refreshed.
|
||||
*
|
||||
* @return a timestamp in milliseconds since The Epoch or {@code null} when the time is unknown
|
||||
*/
|
||||
Long getLastSessionRefresh();
|
||||
|
||||
/**
|
||||
* Sets a point in the (timestamp in milliseconds since The Epoch) when the user session entity was last refreshed.
|
||||
* @param lastSessionRefresh a timestamp in milliseconds since The Epoch or {@code null} when the time is unknown
|
||||
*/
|
||||
void setLastSessionRefresh(Long lastSessionRefresh);
|
||||
|
||||
Map<String, String> getNotes();
|
||||
|
|
Loading…
Reference in a new issue