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