|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.security.SessionImpl
Field Summary | |
private Group |
group
Group associated with the session a user may be member of many groups, but at login time only one could be specified |
private Long |
id
ID of the session |
private boolean |
isPrivileged
TRUE if user associated with the session is in the ADMINS user group, otherwise FALSE |
private int |
timeout
sesion timeout (in minutes) |
private User |
user
User associated with the session |
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 |
Field Detail |
private Long id
private User user
private Group group
private int timeout
AccessControllerImpl.DEFAULT_SESSION_TIMEOUT_MIN
private boolean isPrivileged
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)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |