|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.security.SessionImpl
public class SessionImpl
Constructor Summary | |
---|---|
SessionImpl(Long id,
User usr,
Group grp,
int timeout,
boolean isPrivileged)
--- |
Method Summary | |
---|---|
boolean |
equals(Object obj)
this one is necessary for the contains() operations in Lists It is possible that two users have two different GroupImpl that refer to the very same GATE group in the DB, because they got it from the security factory at different times. |
Group |
getGroup()
returns the group associated with the session a user may be member of many groups, but at login time only one could be specified |
Long |
getID()
returns the session ID |
int |
getTimeout()
returns the timeout (in minutes) of the session |
User |
getUser()
returns the user associated with the session |
boolean |
isPrivilegedSession()
TRUE if user associated with the session is in the ADMINS user group, otherwise FALSE |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionImpl(Long id, User usr, Group grp, int timeout, boolean isPrivileged)
Method Detail |
---|
public Long getID()
getID
in interface Session
public User getUser()
getUser
in interface Session
public Group getGroup()
getGroup
in interface Session
public boolean isPrivilegedSession()
isPrivilegedSession
in interface Session
public int getTimeout()
AccessControllerImpl.DEFAULT_SESSION_TIMEOUT_MIN
public boolean equals(Object obj)
equals
in class Object
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |