1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
package org.kuali.student.r2.lum.lu.dto; |
13 | |
|
14 | |
import java.io.Serializable; |
15 | |
import java.util.List; |
16 | |
|
17 | |
import javax.xml.bind.annotation.XmlAccessType; |
18 | |
import javax.xml.bind.annotation.XmlAccessorType; |
19 | |
import javax.xml.bind.annotation.XmlAnyElement; |
20 | |
import javax.xml.bind.annotation.XmlElement; |
21 | |
import javax.xml.bind.annotation.XmlType; |
22 | |
|
23 | |
import org.kuali.student.r2.common.dto.IdEntityInfo; |
24 | |
import org.kuali.student.r2.lum.lu.infc.AdminOrg; |
25 | |
import org.w3c.dom.Element; |
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
@XmlType(name = "AdminOrgInfo", propOrder = {"id", "typeKey", "stateKey", "name", "descr", "isPrimary", "orgId", "meta", "attributes", "_futureElements"}) |
34 | |
@XmlAccessorType(XmlAccessType.FIELD) |
35 | |
public class AdminOrgInfo extends IdEntityInfo implements AdminOrg, Serializable { |
36 | |
|
37 | |
private static final long serialVersionUID = 1L; |
38 | |
|
39 | |
@XmlElement |
40 | |
private String orgId; |
41 | |
|
42 | |
@XmlElement |
43 | |
private boolean isPrimary; |
44 | |
|
45 | |
@XmlAnyElement |
46 | |
private List<Element> _futureElements; |
47 | |
|
48 | 0 | public AdminOrgInfo() { |
49 | |
|
50 | 0 | } |
51 | |
|
52 | |
public AdminOrgInfo(AdminOrg adminOrg) { |
53 | 0 | super(adminOrg); |
54 | 0 | if (adminOrg != null) { |
55 | 0 | this.orgId = adminOrg.getOrgId(); |
56 | 0 | this.isPrimary = adminOrg.isPrimary(); |
57 | |
} |
58 | 0 | } |
59 | |
|
60 | |
@Override |
61 | |
public String getOrgId() { |
62 | 0 | return orgId; |
63 | |
} |
64 | |
|
65 | |
public void setOrgId(String orgId) { |
66 | 0 | this.orgId = orgId; |
67 | 0 | } |
68 | |
|
69 | |
@Override |
70 | |
public boolean isPrimary() { |
71 | 0 | return isPrimary; |
72 | |
} |
73 | |
|
74 | |
public void setPrimary(boolean isPrimary) { |
75 | 0 | this.isPrimary = isPrimary; |
76 | 0 | } |
77 | |
|
78 | |
} |