Package io.ryos.rhino.sdk.data
Interface UserSession
-
- All Superinterfaces:
Context
- All Known Implementing Classes:
UserSessionImpl
public interface UserSession extends Context
User define is a stash to store objects and share them among scenarios per user define. A user will be created before the simulation starts, and it will existing during the simulation execution.- Since:
- 1.1.0
- Author:
- Erhan Bagdemir
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<java.lang.String>
getRefreshToken()
Optional of refresh token.SimulationSession
getSimulationSession()
SimulationSession
getSimulationSessionFor(User user)
User
getUser()
Returns the user of the current define.java.util.Optional<java.lang.String>
getUserToken()
Optional of user token.
-
-
-
Method Detail
-
getUser
User getUser()
Returns the user of the current define.- Returns:
- The user of the current define.
-
getUserToken
java.util.Optional<java.lang.String> getUserToken()
Optional of user token.- Returns:
Optional
type.
-
getRefreshToken
java.util.Optional<java.lang.String> getRefreshToken()
Optional of refresh token.- Returns:
Optional
type.
-
getSimulationSession
SimulationSession getSimulationSession()
-
getSimulationSessionFor
SimulationSession getSimulationSessionFor(User user)
-
-