if (this.getYear() != null) {
return "-" + this.getYear();
}
if (this.getDateRangeType() != null) {
DateRangeHandler handler = dateRangeHandlers.get(this.getDateRangeType());
if (handler != null) {
this.setMonth(handler.retrieveMonth(DateTime.now()));
this.setDateStart(DateUtil.formatYearMonthDay(handler.retrieveDateStart(DateTime.now())));
this.setDateEnd(DateUtil.formatYearMonthDay(handler.retrieveDateEnd(DateTime.now())));
}
}
if (this.getDateStart() != null && this.getDateEnd() != null) {
return "-" + this.getDateStart() + "-" + this.getDateEnd();
}