1 package org.openslx.imagemaster.session;
16 private final UserInfo
user;
23 public Session(
final UserInfo dbuser,
long timeout )
29 this.timeOut = System.currentTimeMillis() + timeout;
36 this.timeOut = System.currentTimeMillis() +
TIMEOUT;
41 return this.timeOut == 0 || System.currentTimeMillis() > this.
timeOut;
56 return user.firstName;
71 return user.organizationId;
Session(final UserInfo dbuser)
Session(final UserInfo dbuser, long timeout)
static final long TIMEOUT
synchronized boolean timedOut()
String getOrgenizationId()
Class to hold global constants and properties from 'config/global.properties'.
static int getSessionTimeoutUser()
Simple representation of a user session.
synchronized void invalidate()
synchronized void refresh()