Package org.dspace.statistics.content
Class DatasetTimeGenerator
java.lang.Object
org.dspace.statistics.content.DatasetGenerator
org.dspace.statistics.content.DatasetTimeGenerator
Represents a date facet for filtering.
- Author:
- kevinvandevelde at atmire.com Date: 23-dec-2008 Time: 9:44:57
-
Field Summary
Fields inherited from class org.dspace.statistics.content.DatasetGenerator
datasetType, includeTotal -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetType()voidsetActualEndDate(LocalDateTime actualEndDate) voidsetActualStartDate(LocalDateTime actualStartDate) voidsetDateInterval(String dateType, String start, String end) Sets the date interval.voidsetDateInterval(String dateType, LocalDateTime start, LocalDateTime end) voidsetDateType(String dateType) voidsetEndDate(String endDate) voidsetStartDate(String startDate) voidMethods inherited from class org.dspace.statistics.content.DatasetGenerator
getDatasetType, isIncludeTotal, setDatasetType, setIncludeTotal
-
Constructor Details
-
DatasetTimeGenerator
public DatasetTimeGenerator()Default constructor
-
-
Method Details
-
setDateInterval
Sets the date interval. For example if you wish to see the data from today to six months ago give the following parameters: datatype = "month" start = "-6" end = "+1" // the +1 indicates this month also- Parameters:
dateType- type can be days, months, yearsstart- the start of the intervalend- the end of the interval
-
setDateInterval
public void setDateInterval(String dateType, LocalDateTime start, LocalDateTime end) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
getStartDate
-
setStartDate
-
getEndDate
-
setEndDate
-
getDateType
-
getActualStartDate
-
setActualStartDate
-
getActualEndDate
-
setActualEndDate
-
setDateType
-
getType
-
setType
-