1 package hudsonfog.voc.model;
2
3 import com.fogx.webdav.DavResource;
4 import com.fogx.webdav.DavClass;
5 import com.fogx.webdav.DavBean;
6 import com.fogx.webdav.DavProperty;
7 import static com.fogx.webdav.DavProperty.*;
8 import com.fogx.webdav.packages.DavBeanPackage;
9 import com.fogx.webdav.util.DavResourceSupport;
10 import com.fogx.webdav.util.UrlUtil;
11 import java.util.Date;
12 import java.util.Map;
13 import java.util.HashMap;
14 import java.util.List;
15 import java.util.Collections;
16 import java.util.Arrays;
17
18 import hudsonfog.voc.system.primitiveTypes.*;
19 import hudsonfog.voc.system.behavior.*;
20 import hudsonfog.voc.model.workflow.*;
21 import hudsonfog.voc.system.XMLSchema.*;
22
23 import hudsonfog.voc.system.fog.*;
24
25
26 public abstract class recurrence {
27
28
31 public static interface ScheduledItem extends Cancellable {
32 @_icon("icons/start.gif")
33 public ComplexDate start = null; @_icon("icons/end.gif")
35 public ComplexDate end = null; public Boolean conflict = null; @_readOnly
38 @_notSearchable
39 @_backLink("scheduledItem")
40 public ReminderAlert[] reminders = null; public Duration duration = null; @_avoidDisplaying @_parameter
44 public ComplexDate groupby = null; public ComplexDate eventTime = null;
46 }
47
48
51 @DavClass._aLiteral
52 public static class Frequency extends hudsonfog.voc.system.XMLSchema.stringLiteral {
53 private String value;
54 public Frequency(String value) {
55 this.value = value;
56 }
57
58 public String getValue() {
59 return value;
60 }
61 }
62
63
66 public static interface RecurrentItem extends ScheduledItem {
67 @_notSearchable public Frequency frequency = null; @_dateFormat("~MMM-dd, yyyy")
70 @_avoidDisplayingInView @_alwaysReturnToClient
72 @_avoidDisplayingInEdit @_avoidDisplayingOnCreate
74 public Long repeatFrom = null; @_dateFormat("~MMM-dd, yyyy")
76 @_avoidDisplayingInView @_alwaysReturnToClient
78 @_avoidDisplayingInEdit @_avoidDisplayingOnCreate
80 public Long repeatUntil = null; @_avoidDisplayingInEdit public Integer maxRepetitions = null; }
84 }
85