Class FailureInvestigationDashboardManager

java.lang.Object
overit.geocallapp.wfm.notifications.dashboard.failureinvestigation.FailureInvestigationDashboardManager

public class FailureInvestigationDashboardManager extends Object
  • Field Details

    • _dbvNotifications

      protected DBView _dbvNotifications
    • _dbvResult

      protected DBView _dbvResult
    • _dbvResultMain

      protected DBView _dbvResultMain
    • _detailLevel

      protected Long _detailLevel
    • _detailLevelDetail

      protected Long _detailLevelDetail
    • _chartGroupingRange

      protected Long _chartGroupingRange
    • _chartGroupingRangeDetail

      protected Long _chartGroupingRangeDetail
    • _detailFilters

      protected HashGetter _detailFilters
    • _lsMainGroups

      protected Long[] _lsMainGroups
    • _lsDetailGroups

      protected Long[] _lsDetailGroups
    • _dtFrom

      protected Date _dtFrom
    • _dtTo

      protected Date _dtTo
    • ANOMALYGROUP

      protected static final Long ANOMALYGROUP
    • OBJECTGROUP

      protected static final Long OBJECTGROUP
    • CAUSEGROUP

      protected static final Long CAUSEGROUP
    • OBJECTCODE

      protected static final Long OBJECTCODE
    • ANOMALYCODE

      protected static final Long ANOMALYCODE
    • CAUSECODE

      protected static final Long CAUSECODE
  • Constructor Details

    • FailureInvestigationDashboardManager

      public FailureInvestigationDashboardManager(DBView notifications, HashGetter filter)
  • Method Details

    • getDetailLevelFromGroup

      public Long getDetailLevelFromGroup(Long group)
      Deduction of che correct level of the secondary graph from main graph level
      Parameters:
      group -
      Returns:
    • setNewGroupingParameters

      public void setNewGroupingParameters(Long detailLevelDetail)
    • setDetailFilters

      public void setDetailFilters(int row, int column, HashGetter displayedData)
      Set an hashgetter of filters builded with the data of the bar clicked by the user in the main graph
      Parameters:
      column -
      displayedData -
    • getWokingDbv

      protected DBView getWokingDbv(Boolean isMain)
    • createResultDbv

      public DBView createResultDbv(Boolean isMain)
      Generate or empty dbv
      Parameters:
      isMain -
      Returns:
    • createBasicDBView

      public void createBasicDBView(ArrayList<Date> groupingDates, Long range, LongSet lsGroups, Boolean isMain)
      Build all the rows of the dbv filling only group id and reference label
      Parameters:
      groupingDates -
      range -
      lsGroups -
      isMain -
    • getSdf

      protected SimpleDateFormat getSdf()
    • getDatesRange

      protected Date[] getDatesRange(Date date, Boolean isMain)
      Giving a reference date, return the data range in according with the time grouping of the graph
      Parameters:
      date -
      isMain -
      Returns:
    • getDataLongSetIdFromClick

      public LongSet getDataLongSetIdFromClick(int clickedBar, int column, HashGetter displayedData, Boolean mainResult)
      Return the longset of notifications id that compound the bar clicked by the user
      Parameters:
      clickedBar -
      displayedData -
    • getGroupingRange

      public Long getGroupingRange(Boolean isMainChart)
      return main or detail chart grouping range evaluting boolean flag
      Parameters:
      isMainChart -
      Returns:
    • generateReferenceDate

      protected Date generateReferenceDate(String dateString)
      Decode a date decoded as string ( MM/YYYY, ww-YYYY, dd/MM/YYYY,...)
      Parameters:
      dateString -
      Returns:
    • generateReferenceDate

      protected Date generateReferenceDate(String dateString, Long chartGrouping)
    • getFilterFieldFromGroupingType

      public String getFilterFieldFromGroupingType(Boolean fromMain)
    • groupData

      protected void groupData()
      Group the data retrived by the query and populate the dbv used for plot the main graph
    • groupDataDetail

      protected void groupDataDetail(Boolean generateFromMain)
    • setGroupingRangeDetail

      protected void setGroupingRangeDetail(Long range)
      Set new range level for secondary graph
      Parameters:
      range -