org.jasig.portal.layout.dlm
Class TabColumnPrefsHandler

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

public class TabColumnPrefsHandler
extends Object

Applies user prefs changes 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
TabColumnPrefsHandler()
           
 
Method Summary
static void deleteNode(Element compViewNode, Element compViewParent, IPerson person)
          Handles user requests to delete UI elements.
static void moveElement(Element compViewNode, Element oldCompViewParent, IPerson person)
          This method is called from the TabColumnPrefsState class after a node has already been moved from its old parent to its new in the ILF.
 
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

TabColumnPrefsHandler

public TabColumnPrefsHandler()
Method Detail

moveElement

public static void moveElement(Element compViewNode,
                               Element oldCompViewParent,
                               IPerson person)
                        throws PortalException
This method is called from the TabColumnPrefsState class after a node has already been moved from its old parent to its new in the ILF. We can get at the new parent via the compViewNode moved but need a separate handle of the parent from whence it came. The goal of this method is to make the appropriate change in the PLF to persist this action take by the user. For ILF nodes this generally means adding an entry to the position set for the new parent and removing any entry if it existed in the position set in the old parent. For nodes that are owned by the user (PLF owned nodes) the nodes are moved outright and now position set is needed unless the new parent contains ILF nodes as well requiring preservation of the user's ordering of the nodes for when the ILF and PLF are merged again later on.

Throws:
PortalException

deleteNode

public static void deleteNode(Element compViewNode,
                              Element compViewParent,
                              IPerson person)
                       throws PortalException
Handles user requests to delete UI elements. For ILF owned nodes it delegates to the DeleteManager to add a delete directive. For PLF owned nodes it deletes the node outright.

Throws:
PortalException


Copyright © 2010 Jasig. All Rights Reserved.