Creates a new instance of UserSessionManager
Parameters: permissions - The permissions for the threads. Parameters: userStoreManager - The reference to the user store manager.
This method adds a session for a user to the user session index so that
it can be refered to later. It does not over ride the session on the
thread as this will be done when the thread Sudo's to that user.
Parameters: user - The user exception: UserException -
This method returns the user session id.
The reference to the user session object. Parameters: sessionId - The references to the user session id. exception: UserException -
This method will create a new session for the calling thread using the
supplied username.
Parameters: username - The name of the user that the session must be created for. exception: UserException -