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