|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.digitalis.dif.controller.security.managers.impl.SessionManagerImpl
public class SessionManagerImpl
DIF's default implementation of a session manager. REFACTOR: Should extract a superclass from this as a base implementation for this and other sessionManager impl's
Constructor Summary | |
---|---|
SessionManagerImpl()
Default constructor |
Method Summary | |
---|---|
IDIFSession |
createSession(String sessionID)
Creates a new session. |
Map<String,IPrivateDIFSession> |
getLoggedSessions()
|
IDIFSession |
getSession(String sessionID)
Gets a managed session |
boolean |
isSessionPresent(String sessionID)
Checks if a given session is registered on the framework. |
IDIFSession |
logIn(String sessionID,
String userID,
String password)
Performs the log in of a user with a given id on the framework. |
IDIFSession |
logOut(String sessionID)
Performs the log out of a user with a given id on the framework. |
void |
removeSession(String sessionID)
Removes a session |
String |
toString()
|
boolean |
update(IDIFSession session)
Updates an existent session |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SessionManagerImpl()
Method Detail |
---|
public IDIFSession createSession(String sessionID)
ISessionManager
createSession
in interface ISessionManager
sessionID
- the session id to create
ISessionManager.createSession(java.lang.String)
public Map<String,IPrivateDIFSession> getLoggedSessions()
public IDIFSession getSession(String sessionID)
ISessionManager
getSession
in interface ISessionManager
ISessionManager.getSession(java.lang.String)
public boolean isSessionPresent(String sessionID)
ISessionManager
isSessionPresent
in interface ISessionManager
sessionID
- the session id
ISessionManager.isSessionPresent(java.lang.String)
public IDIFSession logIn(String sessionID, String userID, String password) throws AuthenticationManagerException
ISessionManager
logIn
in interface ISessionManager
sessionID
- the session identifieruserID
- the id of the user to log inpassword
- the password for the user
AuthenticationManagerException
- if the authentication manager can't be accessed to validate the user's credentialsISessionManager.logIn(java.lang.String, java.lang.String,
java.lang.String)
public IDIFSession logOut(String sessionID)
ISessionManager
logOut
in interface ISessionManager
sessionID
- the session id to log out
ISessionManager.logOut(java.lang.String)
public void removeSession(String sessionID)
sessionID
- public String toString()
toString
in class Object
Object.toString()
public boolean update(IDIFSession session)
ISessionManager
update
in interface ISessionManager
session
- the session to update
ISessionManager.update(pt.digitalis.dif.controller.interfaces.IDIFSession)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |