1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.lum.lu.ui.krms.dto;
17
18 import org.kuali.student.r2.common.dto.IdEntityInfo;
19 import org.kuali.student.r2.lum.clu.dto.MembershipQueryInfo;
20 import org.kuali.student.r2.lum.clu.infc.CluSet;
21
22 import javax.xml.bind.annotation.XmlAccessType;
23 import javax.xml.bind.annotation.XmlAccessorType;
24 import javax.xml.bind.annotation.XmlAnyElement;
25 import javax.xml.bind.annotation.XmlElement;
26 import javax.xml.bind.annotation.XmlType;
27 import java.io.Serializable;
28 import java.util.ArrayList;
29 import java.util.Date;
30 import java.util.List;
31
32
33
34
35
36 @XmlAccessorType(XmlAccessType.FIELD)
37 @XmlType(name = "CluSetInfo", propOrder = {"id", "descr", "stateKey", "typeKey", "name", "membershipQuery", "adminOrg", "isReusable", "isReferenceable", "cluSetIds", "cluIds",
38 "effectiveDate", "expirationDate", "meta", "attributes" , "_futureElements", "longName", "containsSet"})
39 public class TestSetInfo extends IdEntityInfo implements Serializable, CluSet {
40
41 private static final long serialVersionUID = 1L;
42
43 @XmlElement
44 private MembershipQueryInfo membershipQuery;
45
46 @XmlElement
47 private String adminOrg;
48
49 @XmlElement
50 private Boolean isReusable;
51
52 @XmlElement
53 private Boolean isReferenceable;
54
55 @XmlElement
56 private List<String> cluSetIds;
57
58 @XmlElement
59 private List<String> cluIds;
60
61 @XmlElement
62 private Date effectiveDate;
63
64 @XmlElement
65 private Date expirationDate;
66
67 @XmlAnyElement
68 private List<Object> _futureElements;
69
70 private String longName;
71
72 private String containsSet;
73
74 public TestSetInfo() {
75
76 }
77
78 public TestSetInfo(CluSet cluSet) {
79 super(cluSet);
80 if (null != cluSet) {
81 this.membershipQuery = (null != cluSet.getMembershipQuery()) ? new MembershipQueryInfo(cluSet.getMembershipQuery()) : null;
82 this.adminOrg = cluSet.getAdminOrg();
83 this.isReusable = cluSet.getIsReusable();
84 this.isReferenceable = cluSet.getIsReferenceable();
85 this.cluSetIds = new ArrayList<String>(cluSet.getCluSetIds());
86 this.cluIds = new ArrayList<String>(cluSet.getCluIds());
87 this.effectiveDate = (null != cluSet.getEffectiveDate()) ? new Date(cluSet.getEffectiveDate().getTime()) : null;
88 this.expirationDate = (null != cluSet.getExpirationDate()) ? new Date(cluSet.getExpirationDate().getTime()) : null;
89 }
90 }
91
92 @Override
93 public List<String> getCluSetIds() {
94 if (cluSetIds == null) {
95 cluSetIds = new ArrayList<String>();
96 }
97 return cluSetIds;
98 }
99
100 public void setCluSetIds(List<String> cluSetIds) {
101 this.cluSetIds = cluSetIds;
102 }
103
104 @Override
105 public List<String> getCluIds() {
106 if (cluIds == null) {
107 cluIds = new ArrayList<String>();
108 }
109 return cluIds;
110 }
111
112 public void setCluIds(List<String> cluIds) {
113 this.cluIds = cluIds;
114 }
115
116 @Override
117 public MembershipQueryInfo getMembershipQuery() {
118 return membershipQuery;
119 }
120
121 public void setMembershipQuery(MembershipQueryInfo membershipQuery) {
122 this.membershipQuery = membershipQuery;
123 }
124
125 @Override
126 public String getAdminOrg() {
127 return adminOrg;
128 }
129
130 public void setAdminOrg(String adminOrg) {
131 this.adminOrg = adminOrg;
132 }
133
134 @Override
135 public Boolean getIsReusable() {
136 return isReusable;
137 }
138
139 public void setIsReusable(Boolean isReusable) {
140 this.isReusable = isReusable;
141 }
142
143 @Override
144 public Boolean getIsReferenceable() {
145 return isReferenceable;
146 }
147
148 public void setIsReferenceable(Boolean isReferenceable) {
149 this.isReferenceable = isReferenceable;
150 }
151
152 @Override
153 public Date getEffectiveDate() {
154 return effectiveDate;
155 }
156
157 public void setEffectiveDate(Date effectiveDate) {
158 this.effectiveDate = effectiveDate;
159 }
160
161 @Override
162 public Date getExpirationDate() {
163 return expirationDate;
164 }
165
166 public void setExpirationDate(Date expirationDate) {
167 this.expirationDate = expirationDate;
168 }
169
170 public String getLongName() {
171 return longName;
172 }
173
174 public void setLongName(String longName) {
175 this.longName = longName;
176 }
177
178 public String getContainsSet() {
179 return containsSet;
180 }
181
182 public void setContainsSet(String containsSet) {
183 this.containsSet = containsSet;
184 }
185 }