19 package org.turro.scheduler.task.settings;
21 import java.io.IOException;
23 import java.util.TreeSet;
24 import org.turro.elephant.context.ElephantContext;
25 import org.turro.file.Document;
26 import org.turro.json.IJSONizable;
27 import org.turro.scheduler.task.constraints.Month;
28 import org.turro.scheduler.task.constraints.WeekDay;
34 public class TaskSettingsSet extends TreeSet<TaskSettings> implements IJSONizable {
36 public static final String
48 return from(doc.content()).addSystemTasks();
54 public void save() throws IOException {
73 settings.
setData(
"EVERY_SIX_MONTHS");
103 settings.
setData(
"FORTNIGHTLY");
127 settings.
setData(
"AS_GENERATED");
151 public String
toJson(Map<String, Object> properties) {
152 return toJson(
this, properties);
static String getRealPath(String path)
WeekDayConstraint getWeekDays()
MinuteConstraint getMinutes()
MonthConstraint getMonths()
HourConstraint getHours()
DayOfMonthConstraint getDaysOfMonth()
String toJson(Map< String, Object > properties)
static TaskSettingsSet load()
static TaskSettingsSet from(String json)
static final String SCHEDULER_FILE
void setDescription(String description)
TaskConstraints getConstraints()
void setData(String data)
void setImplementation(String implementation)
void setActive(boolean active)