1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.lum.lu.dto;
17
18 import java.io.Serializable;
19 import java.util.ArrayList;
20 import java.util.Date;
21 import java.util.HashMap;
22 import java.util.List;
23 import java.util.Map;
24
25 import javax.xml.bind.annotation.XmlAccessType;
26 import javax.xml.bind.annotation.XmlAccessorType;
27 import javax.xml.bind.annotation.XmlAttribute;
28 import javax.xml.bind.annotation.XmlElement;
29 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
30
31 import org.kuali.student.core.dto.HasAttributes;
32 import org.kuali.student.core.dto.HasTypeState;
33 import org.kuali.student.core.dto.Idable;
34 import org.kuali.student.core.dto.MetaInfo;
35 import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter;
36
37
38
39
40
41
42
43
44
45
46 @XmlAccessorType(XmlAccessType.FIELD)
47 public class CluPublicationInfo implements Serializable, Idable, HasTypeState, HasAttributes {
48
49 private static final long serialVersionUID = 1L;
50
51 @XmlElement
52 private String cluId;
53
54 @XmlElement
55 private List<FieldInfo> variants;
56
57 @XmlElement
58 private String startCycle;
59
60 @XmlElement
61 private String endCycle;
62
63 @XmlElement
64 private Date effectiveDate;
65
66 @XmlElement
67 private Date expirationDate;
68
69 @XmlElement
70 @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
71 private Map<String, String> attributes;
72
73 @XmlElement
74 private MetaInfo metaInfo;
75
76 @XmlAttribute
77 private String type;
78
79 @XmlAttribute
80 private String state;
81
82 @XmlAttribute
83 private String id;
84
85
86
87
88 public String getCluId() {
89 return cluId;
90 }
91
92 public void setCluId(String cluId) {
93 this.cluId = cluId;
94 }
95
96
97
98
99 public List<FieldInfo> getVariants() {
100 if (variants == null) {
101 variants = new ArrayList<FieldInfo>(0);
102 }
103 return variants;
104 }
105
106 public void setVariants(List<FieldInfo> variants) {
107 this.variants = variants;
108 }
109
110
111
112
113 public String getStartCycle() {
114 return startCycle;
115 }
116
117 public void setStartCycle(String startCycle) {
118 this.startCycle = startCycle;
119 }
120
121
122
123
124 public String getEndCycle() {
125 return endCycle;
126 }
127
128 public void setEndCycle(String endCycle) {
129 this.endCycle = endCycle;
130 }
131
132
133
134
135 public Date getEffectiveDate() {
136 return effectiveDate;
137 }
138
139 public void setEffectiveDate(Date effectiveDate) {
140 this.effectiveDate = effectiveDate;
141 }
142
143
144
145
146 public Date getExpirationDate() {
147 return expirationDate;
148 }
149
150 public void setExpirationDate(Date expirationDate) {
151 this.expirationDate = expirationDate;
152 }
153
154
155
156
157 public Map<String, String> getAttributes() {
158 if (attributes == null) {
159 attributes = new HashMap<String, String>();
160 }
161 return attributes;
162 }
163
164 public void setAttributes(Map<String, String> attributes) {
165 this.attributes = attributes;
166 }
167
168
169
170
171 public MetaInfo getMetaInfo() {
172 return metaInfo;
173 }
174
175 public void setMetaInfo(MetaInfo metaInfo) {
176 this.metaInfo = metaInfo;
177 }
178
179
180
181
182 public String getType() {
183 return type;
184 }
185
186 public void setType(String type) {
187 this.type = type;
188 }
189
190
191
192
193 public String getState() {
194 return state;
195 }
196
197 public void setState(String state) {
198 this.state = state;
199 }
200
201
202
203
204 public String getId() {
205 return id;
206 }
207
208 public void setId(String id) {
209 this.id = id;
210 }
211
212 @Override
213 public String toString() {
214 return "CluPublicationInfo[id=" + id + ", cluId=" + cluId + ", type=" + type + "]";
215 }
216 }