uPortal 2.4.1
API Documentation

org.jasig.portal
Class GuestUserInstance

java.lang.Object
  extended byorg.jasig.portal.UserInstance
      extended byorg.jasig.portal.GuestUserInstance
All Implemented Interfaces:
java.util.EventListener, javax.servlet.http.HttpSessionBindingListener

public class GuestUserInstance
extends UserInstance
implements javax.servlet.http.HttpSessionBindingListener

A multithreaded version of a UserInstance.

Version:
$Revision: 1.20 $
Author:
Peter Kharchenko pkharchenko@interactivebusiness.com

Field Summary
 
Fields inherited from class org.jasig.portal.UserInstance
CACHE_ENABLED, CHARACTER_CACHE_ENABLED, guestUserId, USER_LAYOUT_ROOT_NODE
 
Constructor Summary
GuestUserInstance(IPerson person)
           
 
Method Summary
 void registerSession(javax.servlet.http.HttpServletRequest req)
          Register arrival of a new session.
 void unbindSession(java.lang.String sessionId)
          Unbinds a registered session.
 void valueBound(javax.servlet.http.HttpSessionBindingEvent bindingEvent)
          Notifies UserInstance that it has been bound to a session.
 void valueUnbound(javax.servlet.http.HttpSessionBindingEvent bindingEvent)
          This notifies UserInstance that it has been unbound from the session.
 void writeContent(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Prepares for and initates the rendering cycle.
 
Methods inherited from class org.jasig.portal.UserInstance
getPerson, renderState
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuestUserInstance

public GuestUserInstance(IPerson person)
Method Detail

registerSession

public void registerSession(javax.servlet.http.HttpServletRequest req)
                     throws PortalException
Register arrival of a new session. Create and populate new state entry.

Parameters:
req - a HttpServletRequest value
Throws:
PortalException

unbindSession

public void unbindSession(java.lang.String sessionId)
Unbinds a registered session.

Parameters:
sessionId - a String value

valueUnbound

public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent bindingEvent)
This notifies UserInstance that it has been unbound from the session. Method triggers cleanup in ChannelManager.

Specified by:
valueUnbound in interface javax.servlet.http.HttpSessionBindingListener
Overrides:
valueUnbound in class UserInstance
Parameters:
bindingEvent - an HttpSessionBindingEvent value

valueBound

public void valueBound(javax.servlet.http.HttpSessionBindingEvent bindingEvent)
Notifies UserInstance that it has been bound to a session.

Specified by:
valueBound in interface javax.servlet.http.HttpSessionBindingListener
Overrides:
valueBound in class UserInstance
Parameters:
bindingEvent - a HttpSessionBindingEvent value

writeContent

public void writeContent(javax.servlet.http.HttpServletRequest req,
                         javax.servlet.http.HttpServletResponse res)
                  throws PortalException
Prepares for and initates the rendering cycle.

Overrides:
writeContent in class UserInstance
Parameters:
req - the servlet request object
res - the servlet response object
Throws:
PortalException

uPortal 2.4.1
API Documentation