Class StatisticsTopListBean

java.lang.Object
de.xima.fc.gui.bean.statistics.AStatisticsBean
de.xima.fc.gui.bean.statistics.StatisticsTopListBean
All Implemented Interfaces:
Serializable

@Named @ViewScoped public class StatisticsTopListBean extends AStatisticsBean
See Also:
  • Constructor Details

    • StatisticsTopListBean

      public StatisticsTopListBean()
  • Method Details

    • getModel

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

      public EProjectAttribute getAttribute()
    • setAttribute

      public void setAttribute(EProjectAttribute attribute)
    • getAttributes

      public List<EProjectAttribute> getAttributes()
    • setAmount

      public void setAmount(int amount)
    • getAmount

      public int getAmount()
    • getAmounts

      public List<Integer> getAmounts()
    • 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
    • getImageFilename

      public String getImageFilename()
      Specified by:
      getImageFilename in class AStatisticsBean
      Returns:
      The file name for the image file.
    • getChartWidgetVar

      public String getChartWidgetVar()
      Specified by:
      getChartWidgetVar in class AStatisticsBean
      Returns:
      The chart widget var.