Search in sources :

Example 1 with Recurrence

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;
}
Also used : Recurrence(org.jaffa.modules.scheduler.services.Recurrence)

Example 2 with Recurrence

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;
}
Also used : Recurrence(org.jaffa.modules.scheduler.services.Recurrence)

Example 3 with Recurrence

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;
}
Also used : Recurrence(org.jaffa.modules.scheduler.services.Recurrence)

Example 4 with Recurrence

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;
}
Also used : Recurrence(org.jaffa.modules.scheduler.services.Recurrence)

Example 5 with Recurrence

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;
}
Also used : Recurrence(org.jaffa.modules.scheduler.services.Recurrence)

Aggregations

Recurrence (org.jaffa.modules.scheduler.services.Recurrence)13 GridModelRow (org.jaffa.presentation.portlet.widgets.model.GridModelRow)1 SimpleWidgetModel (org.jaffa.presentation.portlet.widgets.model.SimpleWidgetModel)1