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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatasetTimeGenerator
public DatasetTimeGenerator()
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)
Copyright © 2011 DuraSpace. All Rights Reserved.