|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgate.security.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 Sessionpublic User getUser()
getUser in interface Sessionpublic Group getGroup()
getGroup in interface Sessionpublic boolean isPrivilegedSession()
isPrivilegedSession in interface Sessionpublic int getTimeout()
AccessControllerImpl.DEFAULT_SESSION_TIMEOUT_MINpublic boolean equals(Object obj)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||