|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.acsinet_solutions.cetia4.service.ContextSession
public final class ContextSession
A context session utility class that works as facade for the current user session. Current implementation stores session info in a ThreadLocal variable; but if this class may be used with EJB, alternative implementations that work according to EJB rules may be needed. In those cases, a mechanism for alternative backend session info obtention implementations may be the solution.
Derechos Reservados
| Constructor Summary | |
|---|---|
ContextSession()
|
|
| Method Summary | |
|---|---|
static void |
clearSession()
Clear the context session for this thread; sets the thread local value to null. |
static java.lang.String |
getFname()
|
static java.lang.String |
getLname1()
|
static java.lang.String |
getLogin()
|
static java.util.Set |
getRoles()
|
static UserSession |
getSession()
Return the session in stack or the system session. |
static int |
getUserId()
|
static void |
setSession(UserSession session)
Set the context session for this thread. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContextSession()
| Method Detail |
|---|
public static void setSession(UserSession session)
public static void clearSession()
public static int getUserId()
UserSession.getUserId()public static java.lang.String getLogin()
UserSession.getLogin()public static java.lang.String getFname()
UserSession.getFname()public static java.lang.String getLname1()
UserSession.getLname1()public static java.util.Set getRoles()
UserSession.getRoles()public static final UserSession getSession()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||