1
2
3
4
5
6
7
8
9
10
11
12 package org.kuali.student.r2.lum.lo.dto;
13
14 import org.kuali.student.r2.common.dto.RelationshipInfo;
15 import org.kuali.student.r2.lum.lo.infc.LoLoRelation;
16
17 import javax.xml.bind.annotation.XmlAccessType;
18 import javax.xml.bind.annotation.XmlAccessorType;
19 import javax.xml.bind.annotation.XmlElement;
20 import javax.xml.bind.annotation.XmlType;
21 import java.io.Serializable;
22
23 @XmlType(name = "LoLoRelationInfo", propOrder = {"id", "typeKey", "stateKey", "loId", "relatedLoId", "effectiveDate", "expirationDate", "meta", "attributes" })
24 @XmlAccessorType(XmlAccessType.FIELD)
25 public class LoLoRelationInfo extends RelationshipInfo implements LoLoRelation, Serializable {
26
27 private static final long serialVersionUID = 1L;
28
29 @XmlElement
30 private String loId;
31
32 @XmlElement
33 private String relatedLoId;
34
35 public LoLoRelationInfo() {
36
37 }
38
39 public LoLoRelationInfo(LoLoRelation loLoRelation) {
40 super(loLoRelation);
41 if (loLoRelation != null) {
42 this.loId = loLoRelation.getLoId();
43 this.relatedLoId = loLoRelation.getRelatedLoId();
44
45 }
46 }
47
48 @Override
49 public String getLoId() {
50 return loId;
51 }
52
53 public void setLoId(String loId) {
54 this.loId = loId;
55 }
56
57 @Override
58 public String getRelatedLoId() {
59 return relatedLoId;
60 }
61
62 public void setRelatedLoId(String relatedLoId) {
63 this.relatedLoId = relatedLoId;
64 }
65
66 }