com.aurel.track.report.execute
Class ReportBeansBL

java.lang.Object
  extended by com.aurel.track.report.execute.ReportBeansBL

public class ReportBeansBL
extends java.lang.Object


Constructor Summary
ReportBeansBL()
           
 
Method Summary
static void addChildrenToFlatList(java.util.List flatList, java.util.List hierarchicalList, boolean addAllChildren)
          Creates a flat list from the hierarchical list: adds the first level reportBeans to the flat list and recursively add the children lists depending on addAllChildren
static void expandCollapseParents(java.lang.Boolean allItemsExpanded, java.util.Set otherItemsSet, java.util.Map reportBeansMap)
          Expand/collapse the parent workItems
static void setExpandedAll(java.util.Map reportBeansMap, boolean expanded)
          set all report-items to expanded/collapsed
static java.util.List setHierarchieAndSort(TPersonBean personBean, java.util.List reportBeansFlat, java.util.Map reportBeansMap, boolean sortNeeded)
          Creates the hierarchical list from the flat list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportBeansBL

public ReportBeansBL()
Method Detail

addChildrenToFlatList

public static void addChildrenToFlatList(java.util.List flatList,
                                         java.util.List hierarchicalList,
                                         boolean addAllChildren)
Creates a flat list from the hierarchical list: adds the first level reportBeans to the flat list and recursively add the children lists depending on addAllChildren

Parameters:
flatList -
hierarchicalList -
addAllChildren: - false - add the children only if they are expanded (used by preparing the data for report overview JSP) true - add the children anyway (used by exporting the data to external files)

setHierarchieAndSort

public static java.util.List setHierarchieAndSort(TPersonBean personBean,
                                                  java.util.List reportBeansFlat,
                                                  java.util.Map reportBeansMap,
                                                  boolean sortNeeded)
Creates the hierarchical list from the flat list

Parameters:
personID -
reportBeansFlat -
reportBeansFirstLevel -
reportBeansMap -

expandCollapseParents

public static void expandCollapseParents(java.lang.Boolean allItemsExpanded,
                                         java.util.Set otherItemsSet,
                                         java.util.Map reportBeansMap)
Expand/collapse the parent workItems

Parameters:
allItemsExpanded -
otherItemsSet -
reportBeansMap -

setExpandedAll

public static void setExpandedAll(java.util.Map reportBeansMap,
                                  boolean expanded)
set all report-items to expanded/collapsed

Parameters:
expanded, - true or false


Issue Tracking with Track+: Home Page      Copyright © 2008 Trackplus. All Rights Reserved.