Class DateTimeScriptlet

java.lang.Object
net.sf.jasperreports.engine.JRAbstractScriptlet
net.sf.jasperreports.engine.JRDefaultScriptlet
de.hybris.platform.cockpit.reports.scriptlets.DateTimeScriptlet

public class DateTimeScriptlet extends net.sf.jasperreports.engine.JRDefaultScriptlet
WARNING: unstable API, don't extend/implement
  • Constructor Details

    • DateTimeScriptlet

      public DateTimeScriptlet()
  • Method Details

    • getLast7DaysFrom

      public Date getLast7DaysFrom()
    • getLast7DaysTo

      public Date getLast7DaysTo()
    • getLast4WeeksFrom

      public Date getLast4WeeksFrom()
    • getLast4WeeksTo

      public Date getLast4WeeksTo()
    • getLastMonthFrom

      public Date getLastMonthFrom()
    • getLastMonthTo

      public Date getLastMonthTo()
    • getLast52WeeksFrom

      public Date getLast52WeeksFrom()
    • getLast52WeeksTo

      public Date getLast52WeeksTo()
    • getLast12MonthsFrom

      public Date getLast12MonthsFrom()
    • getLast12MonthsTo

      public Date getLast12MonthsTo()
    • getSpecificDayFrom

      public Date getSpecificDayFrom(Date specificDay)
    • getSpecificDayTo

      public Date getSpecificDayTo(Date specificDay)
    • getYearAgoDate

      public Date getYearAgoDate(Date specificDay)
    • getDayBeforeFrom

      public Date getDayBeforeFrom(Date specificDay)
    • getDayBeforeTo

      public Date getDayBeforeTo(Date specificDay)
    • getLastMonthFrom

      public Date getLastMonthFrom(Date specificDay)
    • getLastMonthTo

      public Date getLastMonthTo(Date specificDay)
    • currentDateFromHour

      public Date currentDateFromHour(Long hour)
    • getLabelForItem

      public String getLabelForItem(Long pk)
    • getLabelForItem

      public String getLabelForItem(long pk)
    • renderChartForHourGranularity

      public boolean renderChartForHourGranularity(String timerange)
    • renderChartForDayGranularity

      public boolean renderChartForDayGranularity(String timerange, Date dateFrom, Date dateTo)
    • renderChartForWeekGranularity

      public boolean renderChartForWeekGranularity(String timerange, Date dateFrom, Date dateTo)
    • renderChartForMonthGranularity

      public boolean renderChartForMonthGranularity(String timerange, Date dateFrom, Date dateTo)
    • getDaysBetween

      public int getDaysBetween(Date dateFrom, Date dateTo)
    • getFrom

      public Date getFrom(String timerange, Date from, Date specificDay)
    • getTo

      public Date getTo(String timerange, Date dateTo, Date specificDay)
    • getFromForPreviousPeriod

      public Date getFromForPreviousPeriod(String timerange, Date dateFrom, Date dateTo, Date specificDay)
    • getToForPreviousPeriod

      public Date getToForPreviousPeriod(String timerange, Date dateFrom, Date dateTo, Date specificDay)
    • getFromYearAgo

      public Date getFromYearAgo(String timerange, Date dateFrom, Date specificDay)
    • getToYearAgo

      public Date getToYearAgo(String timerange, Date dateTo, Date specificDay)
    • getCSMSeriesValue

      public String getCSMSeriesValue(String group, String timerange, Date dateFrom, Date dateTo)
    • getFormattedDate

      public String getFormattedDate(Date date, String format)