Reviewed-on: #105 Reviewed-by: lq64 <lq@blackhole.local> Co-authored-by: Janis <janis.e.20@gmx.de> Co-committed-by: Janis <janis.e.20@gmx.de>
18 lines
345 B
Scala
18 lines
345 B
Scala
package logic.user
|
|
|
|
import com.google.inject.ImplementedBy
|
|
import logic.user.impl.BaseSessionManager
|
|
import model.users.User
|
|
|
|
@ImplementedBy(classOf[BaseSessionManager])
|
|
trait SessionManager {
|
|
|
|
def createSession(user: User): String
|
|
|
|
|
|
def getUserBySession(sessionId: String): Option[User]
|
|
|
|
def invalidateSession(sessionId: String): Unit
|
|
|
|
}
|