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 = "LoInfo", propOrder = {"id", "typeKey", "stateKey", "loId", "relatedLoId", "effectiveDate", "expirationDate", "meta", "attributes", "_futureElements"}) |
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 | 0 | public LoLoRelationInfo() { |
36 | |
|
37 | 0 | } |
38 | |
|
39 | |
public LoLoRelationInfo(LoLoRelation loLoRelation) { |
40 | 0 | super(loLoRelation); |
41 | 0 | if (loLoRelation != null) { |
42 | 0 | this.loId = loLoRelation.getLoId(); |
43 | 0 | this.relatedLoId = loLoRelation.getRelatedLoId(); |
44 | |
|
45 | |
} |
46 | 0 | } |
47 | |
|
48 | |
@Override |
49 | |
public String getLoId() { |
50 | 0 | return loId; |
51 | |
} |
52 | |
|
53 | |
public void setLoId(String loId) { |
54 | 0 | this.loId = loId; |
55 | 0 | } |
56 | |
|
57 | |
@Override |
58 | |
public String getRelatedLoId() { |
59 | 0 | return relatedLoId; |
60 | |
} |
61 | |
|
62 | |
public void setRelatedLoId(String relatedLoId) { |
63 | 0 | this.relatedLoId = relatedLoId; |
64 | 0 | } |
65 | |
|
66 | |
} |