|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.UserPreferencesManager
public class UserPreferencesManager
UserPreferencesManager is responsible for keeping: user id, user layout, user preferences
and stylesheet descriptions.
For method descriptions please see IUserPreferencesManager.
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
logger
|
| Constructor Summary | |
|---|---|
UserPreferencesManager(HttpServletRequest req,
IPerson person)
Constructor does the following 1. |
|
UserPreferencesManager(HttpServletRequest req,
IPerson person,
LocaleManager localeManager)
Constructor does the following 1. |
|
| Method Summary | |
|---|---|
void |
finishedSession(HttpSession session)
|
protected String |
getChannelPublishId(String channelSubscribeId)
Returns a global channel Id given a channel instance Id |
UserProfile |
getCurrentProfile()
Returns current profile. |
IPerson |
getPerson()
Returns current person object |
StructureStylesheetDescription |
getStructureStylesheetDescription()
Returns current structure stylesheet description |
ThemeStylesheetDescription |
getThemeStylesheetDescription()
Returns current theme stylesheet description |
static PropsMatcher |
getUserAgentMatcher()
|
IUserLayoutManager |
getUserLayoutManager()
Returns IUserLayoutManager object for performing layout-related operations. |
UserPreferences |
getUserPreferences()
Returns current user preferences. |
UserPreferences |
getUserPreferencesCopy()
Returns a copy of the user preferences |
boolean |
isUserAgentUnmapped()
Determine if the user agent associated with this session has been successfuly mapped to a profile |
void |
setNewUserLayoutAndUserPreferences(IUserLayoutManager newUlm,
UserPreferences newPreferences)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public UserPreferencesManager(HttpServletRequest req,
IPerson person)
throws PortalException
req - the servlet request objectperson - the person object
PortalException
public UserPreferencesManager(HttpServletRequest req,
IPerson person,
LocaleManager localeManager)
throws PortalException
req - the servlet request objectperson - the person objectlocaleManager - the locale manager
PortalException| Method Detail |
|---|
public static PropsMatcher getUserAgentMatcher()
public IPerson getPerson()
getPerson in interface IUserPreferencesManagerIPerson
protected String getChannelPublishId(String channelSubscribeId)
throws PortalException
channelSubscribeId - subscribe id of a channel
PortalExceptionpublic boolean isUserAgentUnmapped()
IUserPreferencesManager
isUserAgentUnmapped in interface IUserPreferencesManagertrue if no mapping was found
public void setNewUserLayoutAndUserPreferences(IUserLayoutManager newUlm,
UserPreferences newPreferences)
throws PortalException
setNewUserLayoutAndUserPreferences in interface IUserPreferencesManagerPortalExceptionpublic IUserLayoutManager getUserLayoutManager()
IUserPreferencesManagerIUserLayoutManager object for performing layout-related operations.
getUserLayoutManager in interface IUserPreferencesManagerIUserLayoutManager valuepublic void finishedSession(HttpSession session)
finishedSession in interface IUserPreferencesManagerpublic UserPreferences getUserPreferencesCopy()
IUserPreferencesManager
getUserPreferencesCopy in interface IUserPreferencesManagerUserPreferences objectpublic UserProfile getCurrentProfile()
IUserPreferencesManager
getCurrentProfile in interface IUserPreferencesManagerUserProfile
public ThemeStylesheetDescription getThemeStylesheetDescription()
throws Exception
IUserPreferencesManager
getThemeStylesheetDescription in interface IUserPreferencesManagerThemeStylesheetDescription
Exception
public StructureStylesheetDescription getStructureStylesheetDescription()
throws Exception
IUserPreferencesManager
getStructureStylesheetDescription in interface IUserPreferencesManagerStructureStylesheetDescription
Exceptionpublic UserPreferences getUserPreferences()
IUserPreferencesManager
getUserPreferences in interface IUserPreferencesManagerUserPreferences
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||