Class StatisticsResetBean

  • All Implemented Interfaces:
    Serializable

    @ViewScoped
    @Named
    public class StatisticsResetBean
    extends Object
    implements Serializable
    Frontend controller for resetting project statistics.
    Since:
    8.5.5
    Author:
    XIMA MEDIA GmbH
    See Also:
    Serialized Form
    • Field Detail

      • RESET_FILTER_OPTIONS

        public static final List<org.apache.commons.lang3.tuple.Pair<Integer,​String>> RESET_FILTER_OPTIONS
    • Constructor Detail

      • StatisticsResetBean

        public StatisticsResetBean()
    • Method Detail

      • getMinDate

        public LocalDateTime getMinDate()
        Returns:
        the earliest applicable date (which is the start date of the 'activity date range') or null, if no activity has been logged for the selected project
      • getMaxDate

        public LocalDateTime getMaxDate()
        Returns:
        the largest applicable date (which is the end date of the 'activity date range') or null, if no activity has been logged for the selected project
      • isResetByDateRange

        public boolean isResetByDateRange()
        Returns:
        true, if the current range filter is set to 'by date range', false if it set to 'all'
      • onProjectSelected

        public void onProjectSelected()
        Action handler for the 'project selected' event, updates the 'activity date range'.
      • onClearModel

        public void onClearModel()
        Action handler for setting the model values to their defaults.
      • onExecuteReset

        public void onExecuteReset()
        Action handler for the 'execute reset' event, removes the related statistics.
      • isAccessible

        public boolean isAccessible()
      • setSelectedProject

        public void setSelectedProject​(BasicProjectDto selectedProject)
      • getResetFilter

        public Integer getResetFilter()
      • setResetFilter

        public void setResetFilter​(Integer resetFilter)