1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.enrollment.courseofferingset.dto;
17
18 import java.util.Date;
19 import java.util.List;
20
21 import javax.xml.bind.annotation.XmlAccessType;
22 import javax.xml.bind.annotation.XmlAccessorType;
23 import javax.xml.bind.annotation.XmlAnyElement;
24 import javax.xml.bind.annotation.XmlElement;
25 import javax.xml.bind.annotation.XmlType;
26
27 import org.kuali.student.enrollment.courseofferingset.infc.Soc;
28 import org.kuali.student.r2.common.dto.IdEntityInfo;
29 import org.w3c.dom.Element;
30
31
32 @XmlAccessorType(XmlAccessType.FIELD)
33 @XmlType(name = "SocInfo", propOrder = {"id",
34 "typeKey",
35 "stateKey",
36 "name",
37 "descr",
38 "termId",
39 "subjectArea",
40 "unitsContentOwnerId",
41 "schedulingStateKey",
42 "lastSchedulingRunStarted",
43 "lastSchedulingRunCompleted",
44 "publishingStarted",
45 "publishingCompleted",
46 "meta",
47 "attributes",
48 "_futureElements"})
49 public class SocInfo
50 extends IdEntityInfo
51 implements Soc {
52
53 private static final long serialVersionUID = 1L;
54
55 @XmlElement
56 private String termId;
57
58 @XmlElement
59 private String subjectArea;
60
61 @XmlElement
62 private String unitsContentOwnerId;
63
64 @XmlElement
65 private String schedulingStateKey;
66
67 @XmlElement
68 private Date lastSchedulingRunStarted;
69
70 @XmlElement
71 private Date lastSchedulingRunCompleted;
72
73 @XmlElement
74 private Date publishingStarted;
75
76 @XmlElement
77 private Date publishingCompleted;
78
79 @XmlAnyElement
80 private List<Element> _futureElements;
81
82
83
84
85 public SocInfo() {
86 }
87
88
89
90
91
92
93 public SocInfo(Soc soc) {
94
95 super(soc);
96
97 if (soc == null) {
98 return;
99 }
100
101 this.termId = soc.getTermId();
102 this.subjectArea = soc.getSubjectArea();
103 this.unitsContentOwnerId = soc.getUnitsContentOwnerId();
104
105 this.lastSchedulingRunCompleted = soc.getLastSchedulingRunCompleted();
106 this.lastSchedulingRunStarted = soc.getLastSchedulingRunStarted();
107 this.publishingCompleted = soc.getPublishingCompleted();
108 this.publishingStarted = soc.getPublishingStarted();
109
110 this.schedulingStateKey = soc.getSchedulingStateKey();
111
112
113 }
114
115 @Override
116 public String getTermId() {
117 return this.termId;
118 }
119
120 public void setTermId(String termId) {
121 this.termId = termId;
122 }
123
124 @Override
125 public String getSubjectArea() {
126 return subjectArea;
127 }
128
129 public void setSubjectArea(String subjectArea) {
130 this.subjectArea = subjectArea;
131 }
132
133 @Override
134 public String getUnitsContentOwnerId() {
135 return unitsContentOwnerId;
136 }
137
138 public void setUnitsContentOwnerId(String unitsContentOwnerId) {
139 this.unitsContentOwnerId = unitsContentOwnerId;
140 }
141
142 @Override
143 public Date getLastSchedulingRunCompleted() {
144 return lastSchedulingRunCompleted;
145 }
146
147 public void setLastSchedulingRunCompleted(Date lastSchedulingRunCompleted) {
148 this.lastSchedulingRunCompleted = lastSchedulingRunCompleted;
149 }
150
151 @Override
152 public Date getLastSchedulingRunStarted() {
153 return lastSchedulingRunStarted;
154 }
155
156 public void setLastSchedulingRunStarted(Date lastSchedulingRunStarted) {
157 this.lastSchedulingRunStarted = lastSchedulingRunStarted;
158 }
159
160 @Override
161 public Date getPublishingCompleted() {
162 return publishingCompleted;
163 }
164
165 public void setPublishingCompleted(Date publishingCompleted) {
166 this.publishingCompleted = publishingCompleted;
167 }
168
169 @Override
170 public Date getPublishingStarted() {
171 return publishingStarted;
172 }
173
174 public void setPublishingStarted(Date publishingStarted) {
175 this.publishingStarted = publishingStarted;
176 }
177
178 public String getSchedulingStateKey() {
179 return schedulingStateKey;
180 }
181
182 public void setSchedulingStateKey(String schedulingStateKey) {
183 this.schedulingStateKey = schedulingStateKey;
184 }
185
186
187
188 }