|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.layout.dlm.PositionManager
public class PositionManager
Applies and updates position specifiers for child nodes in the composite layout.
Nested Class Summary | |
---|---|
(package private) static class |
PositionManager.NodeInfoComparator
|
Field Summary | |
---|---|
private static RDBMDistributedLayoutStore |
dls
|
private static org.apache.commons.logging.Log |
LOG
|
static java.lang.String |
RCS_ID
|
Constructor Summary | |
---|---|
PositionManager()
|
Method Summary | |
---|---|
(package private) static void |
adjustPositionSet(java.util.ArrayList order,
org.w3c.dom.Element positionSet,
IntegrationResult result)
This method trims down the position set to the position directives on the node info elements still having a position directive. |
(package private) static void |
applyLowerPrecedence(java.util.ArrayList order,
org.w3c.dom.Element compViewParent,
org.w3c.dom.Element positionSet)
This method is responsible for preventing nodes with lower precedence from being located to the left (lower sibling order) of nodes having a higher precedence and moveAllowed="false". |
(package private) static void |
applyNoHopping(java.util.ArrayList order,
org.w3c.dom.Element compViewParent,
org.w3c.dom.Element positionSet)
This method is responsible for preventing nodes with identical precedence in the same parent from hopping over each other so that a layout fragment can lock two tabs that are next to each other and they can only be separated by tabs with higher precedence. |
(package private) static void |
applyNoReparenting(java.util.ArrayList order,
org.w3c.dom.Element compViewParent,
org.w3c.dom.Element positionSet)
This method scans through the nodes in the ordered list and identifies those that are not in the passed in compViewParent. |
(package private) static void |
applyOrdering(java.util.ArrayList order,
org.w3c.dom.Element compViewParent,
org.w3c.dom.Element positionSet)
This method assembles in the passed in order object a list of NodeInfo objects ordered first by those specified in the position set and whose nodes still exist in the composite view and then by any remaining children in the compViewParent. |
(package private) static void |
applyPositions(org.w3c.dom.Element compViewParent,
org.w3c.dom.Element positionSet,
IntegrationResult result)
This method and ones that it delegates to have the responsibility of organizing the child nodes of the passed in composite view parent node according to the order specified in the passed in position set and return via the passed in result set whether the personal layout fragment (one portion of which is the position set) or the incoporated layouts fragment (one portion of which is the compViewParent) were changed. |
(package private) static void |
applyToNodes(java.util.ArrayList order,
org.w3c.dom.Element compViewParent)
This method applies the ordering specified in the passed in order list to the child nodes of the compViewParent. |
private static org.w3c.dom.Element |
createAndAppendPosition(java.lang.String elementID,
org.w3c.dom.Element positions,
IPerson person)
Create, append to the passed in position set, and return a position element that references the passed in elementID. |
(package private) static void |
evaluateAndApply(java.util.ArrayList order,
org.w3c.dom.Element compViewParent,
org.w3c.dom.Element positionSet,
IntegrationResult result)
This method determines if applying all of the positioning rules and restrictions ended up making changes to the compViewParent or the original position set. |
private static RDBMDistributedLayoutStore |
getDLS()
Hands back the single instance of RDBMDistributedLayoutStore. |
private static org.w3c.dom.Element |
getPositionSet(org.w3c.dom.Element plfParent,
IPerson person,
boolean create)
This method locates the position set element in the child list of the passed in plfParent or if not found it will create one automatically and return it if the passed in create flag is true. |
(package private) static boolean |
hasAffectOnCVP(java.util.ArrayList order,
org.w3c.dom.Element compViewParent)
This method compares the children by id in the order list with the order in the compViewParent's ui visible children and returns true if the ordering differs indicating that the positioning if needed. |
(package private) static boolean |
isIllegalHoppingSpecified(java.util.ArrayList order)
This method determines if any illegal hopping is being specified. |
private static boolean |
isNotReparentable(NodeInfo ni)
Return true if the passed in node or any of its up-stream (higher index siblings have moveAllowed="false". |
static void |
updatePositionSet(org.w3c.dom.Element compViewParent,
org.w3c.dom.Element plfParent,
IPerson person)
This method updates the positions recorded in a position set to reflect the ids of the nodes in the composite view of the layout. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RCS_ID
private static org.apache.commons.logging.Log LOG
private static RDBMDistributedLayoutStore dls
Constructor Detail |
---|
public PositionManager()
Method Detail |
---|
private static RDBMDistributedLayoutStore getDLS()
static void applyPositions(org.w3c.dom.Element compViewParent, org.w3c.dom.Element positionSet, IntegrationResult result) throws PortalException
PortalException
static void evaluateAndApply(java.util.ArrayList order, org.w3c.dom.Element compViewParent, org.w3c.dom.Element positionSet, IntegrationResult result) throws PortalException
PortalException
static void adjustPositionSet(java.util.ArrayList order, org.w3c.dom.Element positionSet, IntegrationResult result)
static boolean hasAffectOnCVP(java.util.ArrayList order, org.w3c.dom.Element compViewParent)
static void applyToNodes(java.util.ArrayList order, org.w3c.dom.Element compViewParent)
static void applyLowerPrecedence(java.util.ArrayList order, org.w3c.dom.Element compViewParent, org.w3c.dom.Element positionSet)
static void applyNoHopping(java.util.ArrayList order, org.w3c.dom.Element compViewParent, org.w3c.dom.Element positionSet)
static boolean isIllegalHoppingSpecified(java.util.ArrayList order)
static void applyNoReparenting(java.util.ArrayList order, org.w3c.dom.Element compViewParent, org.w3c.dom.Element positionSet)
private static boolean isNotReparentable(NodeInfo ni)
static void applyOrdering(java.util.ArrayList order, org.w3c.dom.Element compViewParent, org.w3c.dom.Element positionSet)
public static void updatePositionSet(org.w3c.dom.Element compViewParent, org.w3c.dom.Element plfParent, IPerson person) throws PortalException
PortalException
private static org.w3c.dom.Element getPositionSet(org.w3c.dom.Element plfParent, IPerson person, boolean create) throws PortalException
PortalException
private static org.w3c.dom.Element createAndAppendPosition(java.lang.String elementID, org.w3c.dom.Element positions, IPerson person) throws PortalException
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |