1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.student.r2.core.organization.dto; |
18 | |
|
19 | |
import java.io.Serializable; |
20 | |
import java.util.List; |
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 | |
|
28 | |
import org.kuali.student.r2.core.organization.infc.OrgOrgRelation; |
29 | |
import org.kuali.student.r2.common.dto.RelationshipInfo; |
30 | |
import org.w3c.dom.Element; |
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
@XmlAccessorType(XmlAccessType.FIELD) |
39 | |
@XmlType(name = "OrgOrgRelationInfo", propOrder = { |
40 | |
"id", "typeKey", "stateKey", |
41 | |
"orgId", "relatedOrgId", |
42 | |
"effectiveDate", "expirationDate", |
43 | |
"meta", "attributes", "_futureElements" }) |
44 | |
|
45 | |
public class OrgOrgRelationInfo |
46 | |
extends RelationshipInfo |
47 | |
implements OrgOrgRelation, Serializable { |
48 | |
|
49 | |
private static final long serialVersionUID = 1L; |
50 | |
|
51 | |
@XmlElement |
52 | |
private String orgId; |
53 | |
|
54 | |
@XmlElement |
55 | |
private String relatedOrgId; |
56 | |
|
57 | |
@XmlAnyElement |
58 | |
private List<Element> _futureElements; |
59 | |
|
60 | |
|
61 | |
|
62 | |
|
63 | |
|
64 | 0 | public OrgOrgRelationInfo() { |
65 | 0 | } |
66 | |
|
67 | |
|
68 | |
|
69 | |
|
70 | |
|
71 | |
|
72 | |
public OrgOrgRelationInfo(OrgOrgRelation orgOrgRelation) { |
73 | 0 | super(orgOrgRelation); |
74 | |
|
75 | 0 | if (orgOrgRelation != null) { |
76 | 0 | this.orgId = orgOrgRelation.getOrgId(); |
77 | 0 | this.relatedOrgId = orgOrgRelation.getRelatedOrgId(); |
78 | |
} |
79 | 0 | } |
80 | |
|
81 | |
@Override |
82 | |
public String getOrgId() { |
83 | 0 | return orgId; |
84 | |
} |
85 | |
|
86 | |
public void setOrgId(String orgId) { |
87 | 0 | this.orgId = orgId; |
88 | 0 | } |
89 | |
|
90 | |
@Override |
91 | |
public String getRelatedOrgId() { |
92 | 0 | return relatedOrgId; |
93 | |
} |
94 | |
|
95 | |
public void setRelatedOrgId(String relatedOrgId) { |
96 | 0 | this.relatedOrgId = relatedOrgId; |
97 | 0 | } |
98 | |
} |