com.acsinet_solutions.cetia4.service
Interface UserSessionManager

All Known Implementing Classes:
BasicUserSessionManager

public interface UserSessionManager

UserSession Manager definition. Provides methods for administration of user session information. This is one of the services that are defined in WebServiceLocator interface; and thus is provided as a service to web applications created under the framework.

Derechos Reservados

Author:
Santiago Arriaga
See Also:
WebServiceLocator

Method Summary
 UserSession authenticate(java.lang.String login, java.lang.String password)
          Authenticate a user, and return it's session.
 UserSession createSessionFor(java.lang.String login)
          Create a session for the given login.
 UserSession getSystemSession()
          Get the system's session
 

Method Detail

getSystemSession

UserSession getSystemSession()
Get the system's session

Returns:
A not-null UserSession instance

authenticate

UserSession authenticate(java.lang.String login,
                         java.lang.String password)
                         throws SystemException
Authenticate a user, and return it's session. May not be implemented if no authentication is needed because JAAS or J2EE or propietary facilities are being used on the container.

Returns:
A not-null UserSession if the user could be authenticated; null otherwise.
Throws:
SystemException

createSessionFor

UserSession createSessionFor(java.lang.String login)
                             throws InvalidUserException,
                                    SystemException
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.

Throws:
InvalidUserException
SystemException