Class StatisticsTopListBean

    • Constructor Detail

      • StatisticsTopListBean

        public StatisticsTopListBean()
    • Method Detail

      • getModel

        public org.primefaces.model.charts.bar.BarChartModel getModel()
      • setAmount

        public void setAmount​(int amount)
      • getAmount

        public int getAmount()
      • setRange

        public void setRange​(List<Date> range)
      • getRange

        public List<Date> getRange()
      • calcChartHeight

        public int calcChartHeight()
        Calculate the height of the chart. The height is determined by the size of the displayed dataset. The height is at least 100px and increases by 30px for each dataset entry.
        Returns:
        height of the chart
      • updateModel

        public void updateModel()
        Update the model of the chart. The necessary data is retrieved from the database and processed. The Y-Axis is labeled with the project names. The X-Axis is the amount of either calls, submits or errors. The color of the bars is determined by the selected attribute. This method should be called, when attribute/amount/range is changed.
      • resetRange

        public void resetRange()
        Reset the time range to null and update the model.
      • exportExcel

        public org.primefaces.model.StreamedContent exportExcel()
        Export the data as an Excel via p:fileDownload.
        Returns:
        streamed content of the Excel file