Package de.xima.fc.gui.bean.statistics
Class StatisticsResetBean
- java.lang.Object
-
- de.xima.fc.gui.bean.statistics.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 Summary
Fields Modifier and Type Field Description static List<org.apache.commons.lang3.tuple.Pair<Integer,String>>RESET_FILTER_OPTIONS
-
Constructor Summary
Constructors Constructor Description StatisticsResetBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.commons.lang3.tuple.Pair<LocalDateTime,LocalDateTime>getActivityDateRange()LocalDateTimegetEnd()LocalDateTimegetMaxDate()LocalDateTimegetMinDate()List<BasicProjectDto>getProjects()IntegergetResetFilter()BasicProjectDtogetSelectedProject()LocalDateTimegetStart()booleanisAccessible()booleanisResetByDateRange()voidonClearModel()Action handler for setting the model values to their defaults.voidonExecuteReset()Action handler for the 'execute reset' event, removes the related statistics.voidonProjectSelected()Action handler for the 'project selected' event, updates the 'activity date range'.voidsetEnd(LocalDateTime end)voidsetResetFilter(Integer resetFilter)voidsetSelectedProject(BasicProjectDto selectedProject)voidsetStart(LocalDateTime start)
-
-
-
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()
-
getProjects
public List<BasicProjectDto> getProjects()
-
getActivityDateRange
public org.apache.commons.lang3.tuple.Pair<LocalDateTime,LocalDateTime> getActivityDateRange()
-
getSelectedProject
public BasicProjectDto getSelectedProject()
-
setSelectedProject
public void setSelectedProject(BasicProjectDto selectedProject)
-
getResetFilter
public Integer getResetFilter()
-
setResetFilter
public void setResetFilter(Integer resetFilter)
-
getStart
public LocalDateTime getStart()
-
setStart
public void setStart(LocalDateTime start)
-
getEnd
public LocalDateTime getEnd()
-
setEnd
public void setEnd(LocalDateTime end)
-
-