org.dspace.statistics.content
Class DatasetTimeGenerator

java.lang.Object
  extended by org.dspace.statistics.content.DatasetGenerator
      extended by 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
DatasetTimeGenerator()
           
 
Method Summary
 Date getActualEndDate()
           
 Date getActualStartDate()
           
 String getDateType()
           
 String getEndDate()
           
 String getStartDate()
           
 String getType()
           
 void setActualEndDate(Date actualEndDate)
           
 void setActualStartDate(Date actualStartDate)
           
 void setDateInterval(String dateType, Date start, Date end)
           
 void setDateInterval(String dateType, String start, String end)
          Sets the date interval.
 void setDateType(String dateType)
           
 void setEndDate(String endDate)
           
 void setStartDate(String startDate)
           
 void setType(String type)
           
 
Methods inherited from class org.dspace.statistics.content.DatasetGenerator
getDatasetType, isIncludeTotal, setDatasetType, setIncludeTotal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatasetTimeGenerator

public DatasetTimeGenerator()
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, years
start - the start of the interval
end - 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 © 2012 DuraSpace. All Rights Reserved.