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.RelationshipInfo; |
19 | |
import org.kuali.student.r2.lum.clu.infc.CluCluRelation; |
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.List; |
29 | |
|
30 | |
@XmlAccessorType(XmlAccessType.FIELD) |
31 | |
@XmlType(name = "CluCluRelationInfo", propOrder = {"id", "typeKey", |
32 | |
"stateKey", "cluId", "relatedCluId", "isCluRelationRequired", "effectiveDate", |
33 | |
"expirationDate", "meta", "attributes", "_futureElements"}) |
34 | |
public class CluCluRelationInfo extends RelationshipInfo implements CluCluRelation, Serializable { |
35 | |
|
36 | |
private static final long serialVersionUID = 1L; |
37 | |
|
38 | |
@XmlElement |
39 | |
private String cluId; |
40 | |
@XmlElement |
41 | |
private String relatedCluId; |
42 | |
@XmlElement |
43 | |
private Boolean isCluRelationRequired; |
44 | |
@XmlAnyElement |
45 | |
private List<Element> _futureElements; |
46 | |
|
47 | 0 | public CluCluRelationInfo() { |
48 | |
|
49 | 0 | } |
50 | |
|
51 | |
public CluCluRelationInfo(CluCluRelation cluCluRelation) { |
52 | 0 | super(cluCluRelation); |
53 | 0 | if (null != cluCluRelation) { |
54 | 0 | this.cluId = cluCluRelation.getCluId(); |
55 | 0 | this.relatedCluId = cluCluRelation.getRelatedCluId(); |
56 | 0 | this.isCluRelationRequired = cluCluRelation.getIsCluRelationRequired(); |
57 | |
} |
58 | 0 | } |
59 | |
|
60 | |
@Override |
61 | |
public String getCluId() { |
62 | 0 | return cluId; |
63 | |
} |
64 | |
|
65 | |
public void setCluId(String cluId) { |
66 | 0 | this.cluId = cluId; |
67 | 0 | } |
68 | |
|
69 | |
@Override |
70 | |
public String getRelatedCluId() { |
71 | 0 | return relatedCluId; |
72 | |
} |
73 | |
|
74 | |
public void setRelatedCluId(String relatedCluId) { |
75 | 0 | this.relatedCluId = relatedCluId; |
76 | 0 | } |
77 | |
|
78 | |
@Override |
79 | |
public Boolean getIsCluRelationRequired() { |
80 | 0 | return isCluRelationRequired; |
81 | |
} |
82 | |
|
83 | |
public void setIsCluRelationRequired(Boolean isCluRelationRequired) { |
84 | 0 | this.isCluRelationRequired = isCluRelationRequired; |
85 | 0 | } |
86 | |
|
87 | |
@Override |
88 | |
public String toString() { |
89 | 0 | return "CluCluRelationInfo[id=" + this.getId() + ", cluId=" + cluId + ", relatedCluId=" + relatedCluId + ", type=" + this.getTypeKey() + ", cluRelationRequired=" + isCluRelationRequired + "]"; |
90 | |
} |
91 | |
} |