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
  • Constructor Details

    • DatasetTimeGenerator

      public DatasetTimeGenerator()
      Default constructor
  • Method Details

    • 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, LocalDateTime start, LocalDateTime 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 LocalDateTime getActualStartDate()
    • setActualStartDate

      public void setActualStartDate(LocalDateTime actualStartDate)
    • getActualEndDate

      public LocalDateTime getActualEndDate()
    • setActualEndDate

      public void setActualEndDate(LocalDateTime actualEndDate)
    • setDateType

      public void setDateType(String dateType)
    • getType

      public String getType()
    • setType

      public void setType(String type)