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.Date; |
20 | |
import java.util.HashMap; |
21 | |
import java.util.Map; |
22 | |
|
23 | |
import javax.xml.bind.annotation.XmlAccessType; |
24 | |
import javax.xml.bind.annotation.XmlAccessorType; |
25 | |
import javax.xml.bind.annotation.XmlAttribute; |
26 | |
import javax.xml.bind.annotation.XmlElement; |
27 | |
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
28 | |
|
29 | |
import org.kuali.student.common.dto.HasAttributes; |
30 | |
import org.kuali.student.common.dto.HasTypeState; |
31 | |
import org.kuali.student.common.dto.Idable; |
32 | |
import org.kuali.student.common.dto.MetaInfo; |
33 | |
import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; |
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
@XmlAccessorType(XmlAccessType.FIELD) |
39 | 0 | public class CluCluRelationInfo implements Serializable, Idable, HasTypeState, HasAttributes { |
40 | |
|
41 | |
private static final long serialVersionUID = 1L; |
42 | |
|
43 | |
@XmlElement |
44 | |
private String cluId; |
45 | |
|
46 | |
@XmlElement |
47 | |
private String relatedCluId; |
48 | |
|
49 | |
@XmlElement |
50 | |
private Boolean isCluRelationRequired; |
51 | |
|
52 | |
@XmlElement |
53 | |
private Date effectiveDate; |
54 | |
|
55 | |
@XmlElement |
56 | |
private Date expirationDate; |
57 | |
|
58 | |
@XmlElement |
59 | |
@XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) |
60 | |
private Map<String, String> attributes; |
61 | |
|
62 | |
@XmlElement |
63 | |
private MetaInfo metaInfo; |
64 | |
|
65 | |
@XmlAttribute |
66 | |
private String type; |
67 | |
|
68 | |
@XmlAttribute |
69 | |
private String state; |
70 | |
|
71 | |
@XmlAttribute |
72 | |
private String id; |
73 | |
|
74 | |
|
75 | |
|
76 | |
|
77 | |
public String getCluId() { |
78 | 0 | return cluId; |
79 | |
} |
80 | |
|
81 | |
public void setCluId(String cluId) { |
82 | 0 | this.cluId = cluId; |
83 | 0 | } |
84 | |
|
85 | |
|
86 | |
|
87 | |
|
88 | |
public String getRelatedCluId() { |
89 | 0 | return relatedCluId; |
90 | |
} |
91 | |
|
92 | |
public void setRelatedCluId(String relatedCluId) { |
93 | 0 | this.relatedCluId = relatedCluId; |
94 | 0 | } |
95 | |
|
96 | |
|
97 | |
|
98 | |
|
99 | |
public Boolean getIsCluRelationRequired() { |
100 | 0 | return isCluRelationRequired; |
101 | |
} |
102 | |
|
103 | |
public void setIsCluRelationRequired(Boolean isCluRelationRequired) { |
104 | 0 | this.isCluRelationRequired = isCluRelationRequired; |
105 | 0 | } |
106 | |
|
107 | |
|
108 | |
|
109 | |
|
110 | |
public Date getEffectiveDate() { |
111 | 0 | return effectiveDate; |
112 | |
} |
113 | |
|
114 | |
public void setEffectiveDate(Date effectiveDate) { |
115 | 0 | this.effectiveDate = effectiveDate; |
116 | 0 | } |
117 | |
|
118 | |
|
119 | |
|
120 | |
|
121 | |
public Date getExpirationDate() { |
122 | 0 | return expirationDate; |
123 | |
} |
124 | |
|
125 | |
public void setExpirationDate(Date expirationDate) { |
126 | 0 | this.expirationDate = expirationDate; |
127 | 0 | } |
128 | |
|
129 | |
|
130 | |
|
131 | |
|
132 | |
public Map<String, String> getAttributes() { |
133 | 0 | if (attributes == null) { |
134 | 0 | attributes = new HashMap<String, String>(); |
135 | |
} |
136 | 0 | return attributes; |
137 | |
} |
138 | |
|
139 | |
@Override |
140 | |
public void setAttributes(Map<String, String> attributes) { |
141 | 0 | this.attributes = attributes; |
142 | 0 | } |
143 | |
|
144 | |
|
145 | |
|
146 | |
|
147 | |
public MetaInfo getMetaInfo() { |
148 | 0 | return metaInfo; |
149 | |
} |
150 | |
|
151 | |
public void setMetaInfo(MetaInfo metaInfo) { |
152 | 0 | this.metaInfo = metaInfo; |
153 | 0 | } |
154 | |
|
155 | |
|
156 | |
|
157 | |
|
158 | |
public String getType() { |
159 | 0 | return type; |
160 | |
} |
161 | |
|
162 | |
public void setType(String type) { |
163 | 0 | this.type = type; |
164 | 0 | } |
165 | |
|
166 | |
|
167 | |
|
168 | |
|
169 | |
public String getState() { |
170 | 0 | return state; |
171 | |
} |
172 | |
|
173 | |
public void setState(String state) { |
174 | 0 | this.state = state; |
175 | 0 | } |
176 | |
|
177 | |
|
178 | |
|
179 | |
|
180 | |
public String getId() { |
181 | 0 | return id; |
182 | |
} |
183 | |
|
184 | |
public void setId(String id) { |
185 | 0 | this.id = id; |
186 | 0 | } |
187 | |
|
188 | |
@Override |
189 | |
public String toString() { |
190 | 0 | return "CluCluRelationInfo[id=" + id + ", cluId=" + cluId + ", relatedCluId=" + relatedCluId + ", type=" + type + ", cluRelationRequired=" + isCluRelationRequired + "]"; |
191 | |
} |
192 | |
} |