|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.channels.DLMUserPreferences.CUserPreferences
public class CUserPreferences
Manages User Layout, user preferences and profiles
Field Summary | |
---|---|
(package private) UserProfile |
editedProfile
|
private boolean |
initialized
|
(package private) IPrivilegedChannel |
internalState
|
private static org.apache.commons.logging.Log |
log
|
static int |
MANAGE_PREFERENCES
|
static int |
MANAGE_PROFILES
|
(package private) IPrivilegedChannel |
managePreferences
|
(package private) IPrivilegedChannel |
manageProfiles
|
(package private) ChannelRuntimeData |
runtimeData
|
(package private) StylesheetSet |
set
|
private static java.lang.String |
sslLocation
|
(package private) ChannelStaticData |
staticData
|
protected IUserLayoutStore |
ulsdb
|
private UserPreferences |
up
|
(package private) IUserPreferencesManager |
upm
|
Constructor Summary | |
---|---|
CUserPreferences()
|
Method Summary | |
---|---|
protected UserPreferences |
getCurrentUserPreferences()
|
protected UserProfile |
getEditedUserProfile()
|
protected ChannelRuntimeData |
getRuntimeData()
|
ChannelRuntimeProperties |
getRuntimeProperties()
Returns channel runtime properties |
protected StylesheetSet |
getStylesheetSet()
|
protected IUserLayoutManager |
getUserLayoutManager()
|
protected UserPreferences |
getUserPreferencesFromStore(UserProfile profile)
|
protected IUserPreferencesManager |
getUserPreferencesManager()
|
private void |
instantiateManagePreferencesState(UserProfile profile)
Instantiates appropriate managePreferences object. |
void |
receiveEvent(PortalEvent ev)
Processes layout-level events coming from the portal |
void |
renderXML(org.xml.sax.ContentHandler out)
Output channel content to the portal |
void |
setPortalControlStructures(PortalControlStructures pcs)
Passes portal control structure to the channel. |
void |
setRuntimeData(ChannelRuntimeData rd)
CUserPreferences listens for an HttpRequestParameter "userPreferencesAction" and based on its value changes state between profile management and layout/stylesheet preferences. |
void |
setStaticData(ChannelStaticData sd)
Receive static channel data from the portal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.commons.logging.Log log
IUserPreferencesManager upm
ChannelRuntimeData runtimeData
ChannelStaticData staticData
StylesheetSet set
private static final java.lang.String sslLocation
private UserPreferences up
public static final int MANAGE_PREFERENCES
public static final int MANAGE_PROFILES
IPrivilegedChannel internalState
IPrivilegedChannel managePreferences
IPrivilegedChannel manageProfiles
protected IUserLayoutStore ulsdb
private boolean initialized
UserProfile editedProfile
Constructor Detail |
---|
public CUserPreferences() throws PortalException
PortalException
Method Detail |
---|
protected IUserPreferencesManager getUserPreferencesManager()
protected IUserLayoutManager getUserLayoutManager()
protected UserPreferences getCurrentUserPreferences()
protected ChannelRuntimeData getRuntimeData()
protected StylesheetSet getStylesheetSet()
public void setPortalControlStructures(PortalControlStructures pcs) throws PortalException
IPrivileged
setPortalControlStructures
in interface IPrivileged
PortalException
PortalControlStructures
private void instantiateManagePreferencesState(UserProfile profile)
profile
- profile for which preferences are to be editedpublic ChannelRuntimeProperties getRuntimeProperties()
getRuntimeProperties
in interface IChannel
ChannelRuntimeProperties
public void receiveEvent(PortalEvent ev)
receiveEvent
in interface IChannel
ev
- a portal layout eventPortalEvent
public void setStaticData(ChannelStaticData sd) throws PortalException
setStaticData
in interface IChannel
sd
- static channel data
PortalException
ChannelStaticData
public void setRuntimeData(ChannelRuntimeData rd) throws PortalException
setRuntimeData
in interface IChannel
rd
- handle to channel runtime data
PortalException
ChannelRuntimeData
public void renderXML(org.xml.sax.ContentHandler out) throws PortalException
renderXML
in interface IChannel
out
- a sax document handler
PortalException
protected UserPreferences getUserPreferencesFromStore(UserProfile profile) throws java.lang.Exception
java.lang.Exception
protected UserProfile getEditedUserProfile()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |