Class CASessionService
java.lang.Object
com.io7m.cardant.server.service.sessions.CASessionService
- All Implemented Interfaces:
com.io7m.repetoir.core.RPServiceType
A service to create and manage sessions.
-
Constructor Summary
ConstructorsConstructorDescriptionCASessionService(CAMetricsServiceType inMetrics, Duration inExpiration) A service to create and manage sessions. -
Method Summary
Modifier and TypeMethodDescriptioncreateSession(CAUserID userId, com.io7m.idstore.model.IdName name, com.io7m.medrina.api.MSubject subject) Create a new session.voidDelete an existing session.Find a session with the given identifier.toString()
-
Constructor Details
-
CASessionService
A service to create and manage sessions.- Parameters:
inMetrics- The metrics serviceinExpiration- The session expiration time
-
-
Method Details
-
findSession
Find a session with the given identifier.- Parameters:
id- The identifier- Returns:
- The session
-
createSession
public CASession createSession(CAUserID userId, com.io7m.idstore.model.IdName name, com.io7m.medrina.api.MSubject subject) Create a new session.- Parameters:
userId- The user IDname- The user's latest usernamesubject- The user subject- Returns:
- A new session
-
deleteSession
Delete an existing session.- Parameters:
id- The session ID
-
description
- Specified by:
descriptionin interfacecom.io7m.repetoir.core.RPServiceType
-
toString
-