org.jasig.portal.layout.dlm
Class UserPrefsHandler

java.lang.Object
  extended by org.jasig.portal.layout.dlm.UserPrefsHandler

public class UserPrefsHandler
extends Object

Applies user changes that are part of the uPortal User Preferences storage (not part of the layout structure) to the user's plf prior to persisting.

Since:
uPortal 2.5
Version:
$Revision: 19776 $ $Date: 2010-01-14 16:17:21 -0600 (Thu, 14 Jan 2010) $

Field Summary
static String RCS_ID
           
 
Constructor Summary
UserPrefsHandler()
           
 
Method Summary
static void setUserPreference(Element compViewNode, String attributeName, IPerson person)
          Records changes made to element attributes that are defined as being part of a user's user preferences object and not part of the layout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RCS_ID

public static final String RCS_ID
See Also:
Constant Field Values
Constructor Detail

UserPrefsHandler

public UserPrefsHandler()
Method Detail

setUserPreference

public static void setUserPreference(Element compViewNode,
                                     String attributeName,
                                     IPerson person)
                              throws Exception
Records changes made to element attributes that are defined as being part of a user's user preferences object and not part of the layout. These attributes are specified in the .sdf files for the structure and theme stylesheets. The value is not stored in the layout but the loading of user prefs joins to a layout struct and hence that struct must exist in the layout. This call gets that node into the PLF if not there already and prevents it from being removed if no other changes were made to it or its children by the user.

Throws:
Exception


Copyright © 2010 Jasig. All Rights Reserved.