com.aurel.track.report.execute
Class ReportBeans

java.lang.Object
  extended by com.aurel.track.report.execute.ReportBeans
All Implemented Interfaces:
java.io.Serializable

public class ReportBeans
extends java.lang.Object
implements java.io.Serializable

This bean contains a collection of ReportBean, each representing the attributes of one row of the result set obtained by executing an SQL query against the database using the queryString.

See Also:
Serialized Form

Constructor Summary
ReportBeans(java.util.Collection reportBeanList, java.lang.Integer personID, java.lang.Boolean allItemsExpanded, java.util.Set otherItemsSet, boolean sortNeeded, java.util.Set groupOtherExpandCollapse, boolean includeAllInFlatList)
          Builds a new ReportBeans from an existing ReportBeans stored in the session It is used when it is not needed to re-populate the ReportBeans from the database, but it is enough to refresh the structure of the ReportBeans stored in the session.
ReportBeans(java.util.List reportBeanList, java.lang.Integer personID, boolean verifyRoles, java.lang.Boolean allItemsExpanded, java.util.Set otherItemsSet, boolean sortNeeded)
          Initializes the collections according to rights and found reportBeans: used when the ReportBeans are newly loaded from the database
 
Method Summary
 int getCount()
          Get the number ow items retrieved by the current query string.
 java.util.Map getGroupingLimits()
          Return a list of ReportBean with all items from all levels, independently whether they are expanded or collapsed Intended for exporting all the data and not for report overview
 java.util.Set getGroupOtherExpandCollapse()
           
 ReportBean getItem(java.lang.Integer workItemKey)
          Get a reportItem from the report
 java.util.List getItems()
          Gets a list of all visible items for showing it on the JSP
 java.util.List getReportBeansFlat()
           
 java.util.Map getReportBeansMap()
           
 boolean isSortNeeded()
           
 boolean isWithChildren()
          Whether a workitem in the report-list has children
 void setExpandedAll(boolean expanded)
          set all report-items to expanded/collapsed
 void setGroupOtherExpandCollapse(java.util.Set groupOtherExpandCollapse)
           
 void setSortNeeded(boolean sortNeeded)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportBeans

public ReportBeans(java.util.Collection reportBeanList,
                   java.lang.Integer personID,
                   java.lang.Boolean allItemsExpanded,
                   java.util.Set otherItemsSet,
                   boolean sortNeeded,
                   java.util.Set groupOtherExpandCollapse,
                   boolean includeAllInFlatList)
Builds a new ReportBeans from an existing ReportBeans stored in the session It is used when it is not needed to re-populate the ReportBeans from the database, but it is enough to refresh the structure of the ReportBeans stored in the session. The only invariant is the reportBeansMap (the collection of ReportBean objects), the other structural data will be recomputed. This constructor is called after a grouping or a sorting operation, after expanding/collapsing of a group or parent ReportBean node or before exporting the ReportBeans for external usage (xml, csv, charts etc.)

Parameters:
reportBeanList: - list of ReportBean objects got from the reportBeansMap of the previous ReportBeans
personBean: - the actually logged in person
allItemsExpanded -
otherItemsSet -
groupOtherExpandCollapse: - nodes expanded/collapsed inversely compared to the default settings in user profile regarding the grouping
includeAllInFlatList: - - false: the expanded/collapsed nodes should be taken into account by building the reportBeansFlat (used by report overview) - true: the expanded/collapsed nodes should not be taken into account by building the reportBeansFlat (used by export for external usage)

ReportBeans

public ReportBeans(java.util.List reportBeanList,
                   java.lang.Integer personID,
                   boolean verifyRoles,
                   java.lang.Boolean allItemsExpanded,
                   java.util.Set otherItemsSet,
                   boolean sortNeeded)
Initializes the collections according to rights and found reportBeans: used when the ReportBeans are newly loaded from the database

Parameters:
reportBeanList -
personBean -
verifyRoles - whether the assigned roles and raci-roles should be verified (for my-, responsible-, manager- issues not needed)
sortField -
sortOrder -
allItemsExpanded -
otherItemsSet -
Method Detail

getItems

public java.util.List getItems()
Gets a list of all visible items for showing it on the JSP

Returns:

getItem

public ReportBean getItem(java.lang.Integer workItemKey)
Get a reportItem from the report

Parameters:
workItemKey, - key of thr reportItem
Returns:

setExpandedAll

public void setExpandedAll(boolean expanded)
set all report-items to expanded/collapsed

Parameters:
expanded, - true or false

getCount

public int getCount()
Get the number ow items retrieved by the current query string.


isWithChildren

public boolean isWithChildren()
Whether a workitem in the report-list has children

Returns:
true, if at least one workitem in the list has children

getReportBeansMap

public java.util.Map getReportBeansMap()
Returns:
Returns the reportHash.

getGroupingLimits

public java.util.Map getGroupingLimits()
Return a list of ReportBean with all items from all levels, independently whether they are expanded or collapsed Intended for exporting all the data and not for report overview

Returns:

getReportBeansFlat

public java.util.List getReportBeansFlat()

getGroupOtherExpandCollapse

public java.util.Set getGroupOtherExpandCollapse()
Returns:
the groupOtherExpandCollapse

setGroupOtherExpandCollapse

public void setGroupOtherExpandCollapse(java.util.Set groupOtherExpandCollapse)
Parameters:
groupOtherExpandCollapse - the groupOtherExpandCollapse to set

isSortNeeded

public boolean isSortNeeded()

setSortNeeded

public void setSortNeeded(boolean sortNeeded)


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