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