1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.r2.core.appointment.dto; |
17 | |
|
18 | |
import org.kuali.student.r2.common.dto.RelationshipInfo; |
19 | |
import org.kuali.student.r2.core.appointment.infc.Appointment; |
20 | |
|
21 | |
import javax.xml.bind.Element; |
22 | |
import javax.xml.bind.annotation.XmlAccessType; |
23 | |
import javax.xml.bind.annotation.XmlAccessorType; |
24 | |
import javax.xml.bind.annotation.XmlAnyElement; |
25 | |
import javax.xml.bind.annotation.XmlElement; |
26 | |
import javax.xml.bind.annotation.XmlType; |
27 | |
import java.util.List; |
28 | |
|
29 | |
@XmlAccessorType(XmlAccessType.FIELD) |
30 | |
@XmlType(name = "AppointmentInfo", propOrder = {"id", "typeKey", "stateKey", |
31 | |
"personId", "slotId", "effectiveDate", "expirationDate", |
32 | |
"meta", "attributes", "_futureElements"}) |
33 | |
public class AppointmentInfo extends RelationshipInfo implements Appointment { |
34 | |
|
35 | |
@XmlElement |
36 | |
private String personId; |
37 | |
@XmlElement |
38 | |
private String slotId; |
39 | |
@XmlAnyElement |
40 | |
private List<Element> _futureElements; |
41 | |
|
42 | 0 | public AppointmentInfo() { |
43 | |
|
44 | 0 | } |
45 | |
|
46 | |
public AppointmentInfo(Appointment appointment) { |
47 | 0 | super(appointment); |
48 | 0 | if (null != appointment) { |
49 | 0 | this.personId = appointment.getPersonId(); |
50 | 0 | this.slotId = appointment.getSlotId(); |
51 | |
} |
52 | 0 | } |
53 | |
|
54 | |
public void setPersonId(String personId) { |
55 | 0 | this.personId = personId; |
56 | 0 | } |
57 | |
|
58 | |
@Override |
59 | |
public String getPersonId() { |
60 | 0 | return this.personId; |
61 | |
} |
62 | |
|
63 | |
public void setSlotId(String slotId) { |
64 | 0 | this.slotId = slotId; |
65 | 0 | } |
66 | |
|
67 | |
@Override |
68 | |
public String getSlotId() { |
69 | 0 | return this.slotId; |
70 | |
} |
71 | |
} |