nl.gx.webmanager.services.sessionmanager
Interface SessionManager


public interface SessionManager

Author:
arthurm

Method Summary
 nl.gx.webmanager.foundation.Session createSession(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Creates a new session for the specified request and response.
 nl.gx.webmanager.foundation.Session createSession(int webid)
          Creates a new session for the specified website ID.
 nl.gx.webmanager.foundation.Session createSession(int webid, java.lang.String username)
          Creates a new session for the specified user and website ID.
 nl.gx.webmanager.foundation.Session getActiveSession()
          Returns the currently active session.
 

Method Detail

getActiveSession

nl.gx.webmanager.foundation.Session getActiveSession()
Returns the currently active session.

Returns:
Returns the currently active session or null if no WebManager session is currently active.

createSession

nl.gx.webmanager.foundation.Session createSession(javax.servlet.http.HttpServletRequest req,
                                                  javax.servlet.http.HttpServletResponse res)
Creates a new session for the specified request and response.

Parameters:
req - The request object
res - The response object
Returns:
The created session for accessing WebManager

createSession

nl.gx.webmanager.foundation.Session createSession(int webid)
Creates a new session for the specified website ID.

Parameters:
webid - the id of the website for which a session should be created
Returns:
The created session for accessing WebManager

createSession

nl.gx.webmanager.foundation.Session createSession(int webid,
                                                  java.lang.String username)
Creates a new session for the specified user and website ID.

Parameters:
webid - the id of the website for which a session should be created
username - the username of the user for which a session should be created. Can be null
Returns:
The created session for accessing WebManager


Copyright © 2007-2011 GX Software BV. All Rights Reserved.