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