use of org.jaffa.modules.scheduler.services.Recurrence in project jaffa-framework by jaffa-projects.
the class TaskMaintenanceForm method getOftenSeconds.
/**
* Getter for property oftenSeconds.
* @return Value of property oftenSeconds.
*/
public Long getOftenSeconds() {
Recurrence r = ((TaskMaintenanceComponent) getComponent()).getRecurrence();
Integer oftenSeconds = r != null && r instanceof Recurrence.Often ? ((Recurrence.Often) r).getSeconds() : null;
return oftenSeconds != null ? new Long(oftenSeconds) : null;
}
use of org.jaffa.modules.scheduler.services.Recurrence in project jaffa-framework by jaffa-projects.
the class TaskMaintenanceForm method getYearlyOn.
/**
* Getter for property yearlyOn.
* @return Value of property yearlyOn.
*/
public String getYearlyOn() {
Recurrence r = ((TaskMaintenanceComponent) getComponent()).getRecurrence();
Recurrence.Month yearlyOn = r != null && r instanceof Recurrence.Yearly ? ((Recurrence.Yearly) r).getOn() : null;
return yearlyOn != null ? yearlyOn.toString() : null;
}
use of org.jaffa.modules.scheduler.services.Recurrence in project jaffa-framework by jaffa-projects.
the class TaskMaintenanceForm method getWeeklyFrequency.
/**
* Getter for property weeklyFrequency.
* @return Value of property weeklyFrequency.
*/
public String getWeeklyFrequency() {
Recurrence r = ((TaskMaintenanceComponent) getComponent()).getRecurrence();
Recurrence.WeekFrequency weeklyFrequency = r != null && r instanceof Recurrence.Weekly ? ((Recurrence.Weekly) r).getFrequency() : null;
return weeklyFrequency != null ? weeklyFrequency.toString() : null;
}
use of org.jaffa.modules.scheduler.services.Recurrence in project jaffa-framework by jaffa-projects.
the class TaskMaintenanceForm method getYearlyFrequency.
/**
* Getter for property yearlyFrequency.
* @return Value of property yearlyFrequency.
*/
public Long getYearlyFrequency() {
Recurrence r = ((TaskMaintenanceComponent) getComponent()).getRecurrence();
Integer yearlyFrequency = r != null && r instanceof Recurrence.Yearly ? ((Recurrence.Yearly) r).getFrequency() : null;
return yearlyFrequency != null ? new Long(yearlyFrequency) : null;
}
use of org.jaffa.modules.scheduler.services.Recurrence in project jaffa-framework by jaffa-projects.
the class TaskMaintenanceForm method getMonthlyWeekFrequency.
/**
* Getter for property monthlyWeekFrequency.
* @return Value of property monthlyWeekFrequency.
*/
public String getMonthlyWeekFrequency() {
Recurrence r = ((TaskMaintenanceComponent) getComponent()).getRecurrence();
Recurrence.WeekFrequency monthlyWeekFrequency = r != null && r instanceof Recurrence.Monthly ? ((Recurrence.Monthly) r).getWeekFrequency() : null;
return monthlyWeekFrequency != null ? monthlyWeekFrequency.toString() : null;
}
Aggregations