Package org.dspace.statistics.content
Class DatasetTimeGenerator
- java.lang.Object
-
- org.dspace.statistics.content.DatasetGenerator
-
- org.dspace.statistics.content.DatasetTimeGenerator
-
public class DatasetTimeGenerator extends DatasetGenerator
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 Constructor Description DatasetTimeGenerator()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetActualEndDate()DategetActualStartDate()StringgetDateType()StringgetEndDate()StringgetStartDate()StringgetType()voidsetActualEndDate(Date actualEndDate)voidsetActualStartDate(Date actualStartDate)voidsetDateInterval(String dateType, String start, String end)Sets the date interval.voidsetDateInterval(String dateType, Date start, Date end)voidsetDateType(String dateType)voidsetEndDate(String endDate)voidsetStartDate(String startDate)voidsetType(String type)-
Methods inherited from class org.dspace.statistics.content.DatasetGenerator
getDatasetType, isIncludeTotal, setDatasetType, setIncludeTotal
-
-
-
-
Method Detail
-
setDateInterval
public void setDateInterval(String dateType, String start, String end)
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, Date start, Date end) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
getStartDate
public String getStartDate()
-
setStartDate
public void setStartDate(String startDate)
-
getEndDate
public String getEndDate()
-
setEndDate
public void setEndDate(String endDate)
-
getDateType
public String getDateType()
-
getActualStartDate
public Date getActualStartDate()
-
setActualStartDate
public void setActualStartDate(Date actualStartDate)
-
getActualEndDate
public Date getActualEndDate()
-
setActualEndDate
public void setActualEndDate(Date actualEndDate)
-
setDateType
public void setDateType(String dateType)
-
getType
public String getType()
-
setType
public void setType(String type)
-
-