org.jasig.portal
Class GuestUserPreferencesManager

java.lang.Object
  extended by org.jasig.portal.UserPreferencesManager
      extended by org.jasig.portal.GuestUserPreferencesManager
All Implemented Interfaces:
IUserPreferencesManager

public class GuestUserPreferencesManager
extends UserPreferencesManager

Multithreaded version of UserPreferencesManager.

Version:
$Revision: 19776 $
Author:
Peter Kharchenko pkharchenko@interactivebusiness.com
See Also:
UserPreferencesManager

Field Summary
 
Fields inherited from class org.jasig.portal.UserPreferencesManager
logger
 
Constructor Summary
GuestUserPreferencesManager(IPerson person)
          Initializing constructor.
 
Method Summary
 void finishedSession(HttpSession session)
           
 void finishedSession(HttpSession session, String sessionId)
           
protected  String getChannelGlobalId(String channelSubscribeId, String sessionId)
          Returns a global channel Id given a channel instance Id
 UserProfile getCurrentProfile()
          Returns current profile.
 UserProfile getCurrentProfile(String sessionId)
          Returns current profile
 StructureStylesheetDescription getStructureStylesheetDescription()
          Returns current structure stylesheet description
 StructureStylesheetDescription getStructureStylesheetDescription(String sessionId)
           
 ThemeStylesheetDescription getThemeStylesheetDescription()
          Returns current theme stylesheet description
 ThemeStylesheetDescription getThemeStylesheetDescription(String sessionId)
           
 IUserLayoutManager getUserLayoutManager()
          Returns IUserLayoutManager object for performing layout-related operations.
 IUserLayoutManager getUserLayoutManager(String sessionId)
           
 UserPreferences getUserPreferences()
          Returns current user preferences.
 UserPreferences getUserPreferences(String sessionId)
           
 UserPreferences getUserPreferencesCopy()
          Returns a copy of the user preferences
 UserPreferences getUserPreferencesCopy(String sessionId)
           
 boolean isUserAgentUnmapped()
          Determine if the user agent associated with this session has been successfuly mapped to a profile
 boolean isUserAgentUnmapped(String sessionId)
           
 void registerSession(HttpServletRequest req)
          Register arrival of a new session.
 void setLocaleManager(LocaleManager lm)
           
 void setNewUserLayoutAndUserPreferences(IUserLayoutManager newLayout, UserPreferences newPreferences)
           
 void setNewUserLayoutAndUserPreferences(IUserLayoutManager newLayout, UserPreferences newPreferences, String sessionId)
           
 void unbindSession(String sessionId)
          Deprecated. use #finishedSession(HttpSessionBindingEvent) instead.
 
Methods inherited from class org.jasig.portal.UserPreferencesManager
getChannelPublishId, getPerson, getUserAgentMatcher
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuestUserPreferencesManager

public GuestUserPreferencesManager(IPerson person)
Initializing constructor.

Parameters:
person - object
Method Detail

unbindSession

public void unbindSession(String sessionId)
Deprecated. use #finishedSession(HttpSessionBindingEvent) instead.

Unbinds a registered session.

Parameters:
sessionId - a String value

registerSession

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

Parameters:
req - a HttpServletRequest value
Throws:
PortalException - if an error occurs

getChannelGlobalId

protected String getChannelGlobalId(String channelSubscribeId,
                                    String sessionId)
                             throws PortalException
Returns a global channel Id given a channel instance Id

Returns:
Channel's global Id
Throws:
PortalException

isUserAgentUnmapped

public boolean isUserAgentUnmapped(String sessionId)

isUserAgentUnmapped

public boolean isUserAgentUnmapped()
Description copied from interface: IUserPreferencesManager
Determine if the user agent associated with this session has been successfuly mapped to a profile

Specified by:
isUserAgentUnmapped in interface IUserPreferencesManager
Overrides:
isUserAgentUnmapped in class UserPreferencesManager
Returns:
true if no mapping was found

getUserPreferences

public UserPreferences getUserPreferences(String sessionId)

getUserPreferences

public UserPreferences getUserPreferences()
Description copied from interface: IUserPreferencesManager
Returns current user preferences.

Specified by:
getUserPreferences in interface IUserPreferencesManager
Overrides:
getUserPreferences in class UserPreferencesManager
Returns:
current UserPreferences

setNewUserLayoutAndUserPreferences

public void setNewUserLayoutAndUserPreferences(IUserLayoutManager newLayout,
                                               UserPreferences newPreferences,
                                               String sessionId)
                                        throws PortalException
Throws:
PortalException

setNewUserLayoutAndUserPreferences

public void setNewUserLayoutAndUserPreferences(IUserLayoutManager newLayout,
                                               UserPreferences newPreferences)
                                        throws PortalException
Specified by:
setNewUserLayoutAndUserPreferences in interface IUserPreferencesManager
Overrides:
setNewUserLayoutAndUserPreferences in class UserPreferencesManager
Throws:
PortalException

getUserPreferencesCopy

public UserPreferences getUserPreferencesCopy(String sessionId)

getUserPreferencesCopy

public UserPreferences getUserPreferencesCopy()
Description copied from interface: IUserPreferencesManager
Returns a copy of the user preferences

Specified by:
getUserPreferencesCopy in interface IUserPreferencesManager
Overrides:
getUserPreferencesCopy in class UserPreferencesManager
Returns:
a copy of the UserPreferences object

getCurrentProfile

public UserProfile getCurrentProfile(String sessionId)
Returns current profile

Returns:
UserProfile

getCurrentProfile

public UserProfile getCurrentProfile()
Description copied from interface: IUserPreferencesManager
Returns current profile.

Specified by:
getCurrentProfile in interface IUserPreferencesManager
Overrides:
getCurrentProfile in class UserPreferencesManager
Returns:
current UserProfile

getThemeStylesheetDescription

public ThemeStylesheetDescription getThemeStylesheetDescription(String sessionId)
                                                         throws Exception
Throws:
Exception

getThemeStylesheetDescription

public ThemeStylesheetDescription getThemeStylesheetDescription()
Description copied from interface: IUserPreferencesManager
Returns current theme stylesheet description

Specified by:
getThemeStylesheetDescription in interface IUserPreferencesManager
Overrides:
getThemeStylesheetDescription in class UserPreferencesManager
Returns:
current ThemeStylesheetDescription

getStructureStylesheetDescription

public StructureStylesheetDescription getStructureStylesheetDescription(String sessionId)
                                                                 throws Exception
Throws:
Exception

getStructureStylesheetDescription

public StructureStylesheetDescription getStructureStylesheetDescription()
Description copied from interface: IUserPreferencesManager
Returns current structure stylesheet description

Specified by:
getStructureStylesheetDescription in interface IUserPreferencesManager
Overrides:
getStructureStylesheetDescription in class UserPreferencesManager
Returns:
current StructureStylesheetDescription

getUserLayoutManager

public IUserLayoutManager getUserLayoutManager(String sessionId)

getUserLayoutManager

public IUserLayoutManager getUserLayoutManager()
Description copied from interface: IUserPreferencesManager
Returns IUserLayoutManager object for performing layout-related operations.

Specified by:
getUserLayoutManager in interface IUserPreferencesManager
Overrides:
getUserLayoutManager in class UserPreferencesManager
Returns:
an IUserLayoutManager value

finishedSession

public void finishedSession(HttpSession session,
                            String sessionId)

finishedSession

public void finishedSession(HttpSession session)
Specified by:
finishedSession in interface IUserPreferencesManager
Overrides:
finishedSession in class UserPreferencesManager

setLocaleManager

public void setLocaleManager(LocaleManager lm)


Copyright © 2010 Jasig. All Rights Reserved.