com.acsinet_solutions.cetia4.service.impl
Class BasicUserSessionManager

java.lang.Object
  extended by com.acsinet_solutions.cetia4.service.impl.BasicUserSessionManager
All Implemented Interfaces:
UserSessionManager

public class BasicUserSessionManager
extends java.lang.Object
implements UserSessionManager

A simple session manager component for classes that do not require special session characteristics.

Author:
Santiago Arriaga - santiago.arriaga@acsinet-solutions.com

Constructor Summary
BasicUserSessionManager()
           
 
Method Summary
 UserSession authenticate(java.lang.String login, java.lang.String password)
          No authentication performed by this implementation.
 UserSession createSessionFor(java.lang.String login)
          Create a session for the given login.
 UserSession getSystemSession()
          Get the system's session
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicUserSessionManager

public BasicUserSessionManager()
Method Detail

getSystemSession

public UserSession getSystemSession()
Description copied from interface: UserSessionManager
Get the system's session

Specified by:
getSystemSession in interface UserSessionManager
Returns:
A not-null UserSession instance

authenticate

public UserSession authenticate(java.lang.String login,
                                java.lang.String password)
                         throws SystemException
No authentication performed by this implementation.

Specified by:
authenticate in interface UserSessionManager
Returns:
A not-null UserSession if the user could be authenticated; null otherwise.
Throws:
SystemException

createSessionFor

public UserSession createSessionFor(java.lang.String login)
                             throws InvalidUserException,
                                    SystemException
Description copied from interface: UserSessionManager
Create a session for the given login. The authentication procedure may have been performed outside. An implementation may choose to throw an UnsupportedOperationException if it wishes, if all Sessions must be obtained by authentication.

Specified by:
createSessionFor in interface UserSessionManager
Throws:
InvalidUserException
SystemException