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
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<Object> _futureElements;
39
40 public AdminOrgInfo() {
41 }
42
43 public AdminOrgInfo(AdminOrg adminOrg) {
44 super(adminOrg);
45 if (adminOrg != null) {
46 this.orgId = adminOrg.getOrgId();
47 if (adminOrg.getIsPrimary() != null) {
48 this.isPrimary = adminOrg.getIsPrimary();
49 }
50 }
51 }
52
53 @Override
54 public String getOrgId() {
55 return orgId;
56 }
57
58 public void setOrgId(String orgId) {
59 this.orgId = orgId;
60 }
61
62 @Override
63 public Boolean getIsPrimary() {
64 return isPrimary;
65 }
66
67 public void setIsPrimary(Boolean isPrimary) {
68 this.isPrimary = isPrimary;
69 }
70
71 }