org.jasig.portal.layout.dlm
Class HandlerUtils

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

public class HandlerUtils
extends Object

Utility functions for applying user changes to the user's plf prior to persisting.

Since:
uPortal 2.5
Version:
$Revision: 19776 $Date$

Field Summary
static String RCS_ID
           
 
Constructor Summary
HandlerUtils()
           
 
Method Summary
static Element createPlfNodeAndPath(Element compViewNode, boolean includeChildNodes, IPerson person)
          Creates a copy of the passed in ILF node in the PLF if not already there as well as creating any ancestor nodes along the path from this node up to the layout root if they are not there.
static Element getPLFNode(Element compViewNode, IPerson person, boolean create, boolean includeChildNodes)
          This method returns the PLF version of the passed in compViewNode.
 
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

HandlerUtils

public HandlerUtils()
Method Detail

getPLFNode

public static Element getPLFNode(Element compViewNode,
                                 IPerson person,
                                 boolean create,
                                 boolean includeChildNodes)
                          throws PortalException
This method returns the PLF version of the passed in compViewNode. If create is false and a node with the same id is not found in the PLF then null is returned. If the create is true then an attempt is made to create the node along with any necessary ancestor nodes needed to represent the path along the tree.

Throws:
PortalException

createPlfNodeAndPath

public static Element createPlfNodeAndPath(Element compViewNode,
                                           boolean includeChildNodes,
                                           IPerson person)
                                    throws PortalException
Creates a copy of the passed in ILF node in the PLF if not already there as well as creating any ancestor nodes along the path from this node up to the layout root if they are not there.

Throws:
PortalException


Copyright © 2010 Jasig. All Rights Reserved.