com.aurel.track.query.bl
Class ReportConfigBL

java.lang.Object
  extended by com.aurel.track.query.bl.ReportConfigBL

public class ReportConfigBL
extends java.lang.Object

Business logic class for loading/reloading the dropdowns of a ReportConfigBean

Author:
Tamas Ruff

Constructor Summary
ReportConfigBL()
           
 
Method Summary
static java.util.List getClasses(java.lang.Integer project)
           
static java.util.List getConsultantsInformants(java.lang.Integer[] projects)
           
static java.util.List getIssueTypes(java.util.Locale locale)
           
static java.util.List getManagers(java.lang.Integer[] projects)
           
static java.util.List getOriginators(java.lang.Integer[] projects)
           
static java.util.List getPriorities(java.util.Locale locale)
           
static java.util.List getProjects(java.lang.Integer person)
           
static java.util.List getReScheduled(java.lang.Integer project)
           
static java.util.List getResponsibles(java.lang.Integer[] projects)
           
static java.util.List getSeverities(java.util.Locale locale)
           
static java.util.List getStates(java.util.Locale locale)
           
static java.util.List getSubprojects(java.lang.Integer project)
           
static ReportConfigBean loadReportConfigBean(ReportConfigBean reportConfigBean, java.lang.Integer person, java.util.Locale locale, boolean firstLoad)
          Populates the ReportConfigBean lists and depending on firstLoad preselects some values Extra care should be taken for selecting the projects when firstLoad=false because the other lists should be populated depending on the selected project The other selelected fields might be invalid after a new loading beacuse the project list might change (for ex. by revoking the read right for a project), followingly the selected project(s) might change and therefore the content of the lists also.
static ReportConfigBean reloadReportConfigBean(ReportConfigBean reportConfigBean, java.lang.Integer person, java.util.Locale locale)
          Updates the ReportConfigBean after change in project selection re-populates the lists, but leaves the selections unmodified to preserve the previous settings (some previous selections may not be valid for the new lists but is will be valid after the first submit)
static ReportConfigBean resetSelected(ReportConfigBean reportConfigBean)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportConfigBL

public ReportConfigBL()
Method Detail

getProjects

public static java.util.List getProjects(java.lang.Integer person)

getSubprojects

public static java.util.List getSubprojects(java.lang.Integer project)

getClasses

public static java.util.List getClasses(java.lang.Integer project)

getReScheduled

public static java.util.List getReScheduled(java.lang.Integer project)

getOriginators

public static java.util.List getOriginators(java.lang.Integer[] projects)

getManagers

public static java.util.List getManagers(java.lang.Integer[] projects)

getResponsibles

public static java.util.List getResponsibles(java.lang.Integer[] projects)

getConsultantsInformants

public static java.util.List getConsultantsInformants(java.lang.Integer[] projects)

getStates

public static java.util.List getStates(java.util.Locale locale)

getIssueTypes

public static java.util.List getIssueTypes(java.util.Locale locale)

getPriorities

public static java.util.List getPriorities(java.util.Locale locale)

getSeverities

public static java.util.List getSeverities(java.util.Locale locale)

loadReportConfigBean

public static ReportConfigBean loadReportConfigBean(ReportConfigBean reportConfigBean,
                                                    java.lang.Integer person,
                                                    java.util.Locale locale,
                                                    boolean firstLoad)
Populates the ReportConfigBean lists and depending on firstLoad preselects some values Extra care should be taken for selecting the projects when firstLoad=false because the other lists should be populated depending on the selected project The other selelected fields might be invalid after a new loading beacuse the project list might change (for ex. by revoking the read right for a project), followingly the selected project(s) might change and therefore the content of the lists also. It means that some selections may have invalid values (values not present in the list) but that is not a problem because after the first submit we will have valid selections again

Parameters:
person -
locale -
firstLoad - true: first load during this session, false: any further loads
Returns:

reloadReportConfigBean

public static ReportConfigBean reloadReportConfigBean(ReportConfigBean reportConfigBean,
                                                      java.lang.Integer person,
                                                      java.util.Locale locale)
Updates the ReportConfigBean after change in project selection re-populates the lists, but leaves the selections unmodified to preserve the previous settings (some previous selections may not be valid for the new lists but is will be valid after the first submit)

Parameters:
person -
locale -
Returns:

resetSelected

public static ReportConfigBean resetSelected(ReportConfigBean reportConfigBean)


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