1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 package org.kuali.student.ap.academicplan.dto;
16
17 import org.kuali.student.ap.academicplan.infc.LearningPlan;
18 import org.kuali.student.r2.common.dto.IdEntityInfo;
19 import org.kuali.student.r2.common.dto.RichTextInfo;
20 import org.w3c.dom.Element;
21
22 import javax.xml.bind.annotation.*;
23 import java.util.List;
24
25
26
27
28
29
30
31
32 @XmlAccessorType(XmlAccessType.FIELD)
33 @XmlType(name = "LearningPlanInfo", propOrder = {"studentId", "id", "typeKey", "stateKey", "shared", "name", "descr", "meta", "attributes", "_futureElements"})
34 public class LearningPlanInfo extends IdEntityInfo implements LearningPlan {
35
36 @XmlElement
37 private String studentId;
38
39 @XmlElement
40 private Boolean shared;
41
42 @XmlAnyElement
43 private List<Element> _futureElements;
44
45
46 public LearningPlanInfo() {
47 }
48
49 public LearningPlanInfo(LearningPlan plan) {
50 super(plan);
51
52 if(null != plan) {
53 this.setId(plan.getId());
54 this.studentId = plan.getStudentId();
55 this.setDescr((null != plan.getDescr()) ? new RichTextInfo(plan.getDescr()) : null);
56 this.setShared(plan.getShared());
57 }
58 }
59
60 @Override
61 public String getStudentId() {
62 return studentId;
63 }
64
65 public void setStudentId(String studentId) {
66 this.studentId = studentId;
67 }
68
69 @Override
70 public Boolean getShared() {
71 return shared;
72 }
73
74 public void setShared(Boolean shared) {
75 this.shared = shared;
76 }
77 }