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.IdEntityInfo; |
19 | |
import org.kuali.student.r2.lum.clu.infc.CluSet; |
20 | |
|
21 | |
import javax.xml.bind.Element; |
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 | 0 | @XmlAccessorType(XmlAccessType.FIELD) |
33 | |
@XmlType(name = "CluSetInfo", propOrder = {"id", "descr", "stateKey", "typeKey", "name", "membershipQuery", "adminOrg", "isReusable", "isReferenceable", "cluSetIds", "cluIds", |
34 | |
"effectiveDate", "expirationDate", "meta", "attributes", "_futureElements"}) |
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 | |
@XmlAnyElement |
64 | |
private List<Element> _futureElements; |
65 | |
|
66 | 0 | public CluSetInfo() { |
67 | |
|
68 | 0 | } |
69 | |
|
70 | |
public CluSetInfo(CluSet cluSet) { |
71 | 0 | super(cluSet); |
72 | 0 | if (null != cluSet) { |
73 | 0 | this.membershipQuery = (null != cluSet.getMembershipQuery()) ? new MembershipQueryInfo(cluSet.getMembershipQuery()) : null; |
74 | 0 | this.adminOrg = cluSet.getAdminOrg(); |
75 | 0 | this.isReusable = cluSet.getIsReusable(); |
76 | 0 | this.isReferenceable = cluSet.getIsReferenceable(); |
77 | 0 | this.cluSetIds = new ArrayList<String>(cluSet.getCluSetIds()); |
78 | 0 | this.cluIds = new ArrayList<String>(cluSet.getCluIds()); |
79 | 0 | this.effectiveDate = (null != cluSet.getEffectiveDate()) ? new Date(cluSet.getEffectiveDate().getTime()) : null; |
80 | 0 | this.expirationDate = (null != cluSet.getExpirationDate()) ? new Date(cluSet.getExpirationDate().getTime()) : null; |
81 | |
} |
82 | 0 | } |
83 | |
|
84 | |
@Override |
85 | |
public List<String> getCluSetIds() { |
86 | 0 | if (cluSetIds == null) { |
87 | 0 | cluSetIds = new ArrayList<String>(); |
88 | |
} |
89 | 0 | return cluSetIds; |
90 | |
} |
91 | |
|
92 | |
public void setCluSetIds(List<String> cluSetIds) { |
93 | 0 | this.cluSetIds = cluSetIds; |
94 | 0 | } |
95 | |
|
96 | |
@Override |
97 | |
public List<String> getCluIds() { |
98 | 0 | if (cluIds == null) { |
99 | 0 | cluIds = new ArrayList<String>(); |
100 | |
} |
101 | 0 | return cluIds; |
102 | |
} |
103 | |
|
104 | |
public void setCluIds(List<String> cluIds) { |
105 | 0 | this.cluIds = cluIds; |
106 | 0 | } |
107 | |
|
108 | |
@Override |
109 | |
public MembershipQueryInfo getMembershipQuery() { |
110 | 0 | return membershipQuery; |
111 | |
} |
112 | |
|
113 | |
public void setMembershipQuery(MembershipQueryInfo membershipQuery) { |
114 | 0 | this.membershipQuery = membershipQuery; |
115 | 0 | } |
116 | |
|
117 | |
@Override |
118 | |
public String getAdminOrg() { |
119 | 0 | return adminOrg; |
120 | |
} |
121 | |
|
122 | |
public void setAdminOrg(String adminOrg) { |
123 | 0 | this.adminOrg = adminOrg; |
124 | 0 | } |
125 | |
|
126 | |
@Override |
127 | |
public Boolean getIsReusable() { |
128 | 0 | return isReusable; |
129 | |
} |
130 | |
|
131 | |
public void setIsReusable(Boolean isReusable) { |
132 | 0 | this.isReusable = isReusable; |
133 | 0 | } |
134 | |
|
135 | |
@Override |
136 | |
public Boolean getIsReferenceable() { |
137 | 0 | return isReferenceable; |
138 | |
} |
139 | |
|
140 | |
public void setIsReferenceable(Boolean isReferenceable) { |
141 | 0 | this.isReferenceable = isReferenceable; |
142 | 0 | } |
143 | |
|
144 | |
@Override |
145 | |
public Date getEffectiveDate() { |
146 | 0 | return effectiveDate; |
147 | |
} |
148 | |
|
149 | |
public void setEffectiveDate(Date effectiveDate) { |
150 | 0 | this.effectiveDate = effectiveDate; |
151 | 0 | } |
152 | |
|
153 | |
@Override |
154 | |
public Date getExpirationDate() { |
155 | 0 | return expirationDate; |
156 | |
} |
157 | |
|
158 | |
public void setExpirationDate(Date expirationDate) { |
159 | 0 | this.expirationDate = expirationDate; |
160 | 0 | } |
161 | |
} |