Class StatisticsTopListBean

    • Field Detail

      • AMOUNT_OPTIONS

        public static final List<Integer> AMOUNT_OPTIONS
    • Constructor Detail

      • StatisticsTopListBean

        public StatisticsTopListBean()
    • Method Detail

      • getModel

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

        public List<NamedEntityDto> completeMandant​(String query)
        Completion handler for the Mandant autocomplete.
        Parameters:
        query - the user input to match the Mandant names against
        Returns:
        the list of matching Mandants
      • 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
      • setSelectedMandant

        public void setSelectedMandant​(NamedEntityDto selectedMandant)
      • getAmount

        public Integer getAmount()
      • setAmount

        public void setAmount​(Integer amount)
      • getRange

        public List<Date> getRange()
      • setRange

        public void setRange​(List<Date> range)