1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.r2.core.scheduling.dto; |
17 | |
|
18 | |
import org.kuali.student.r2.core.scheduling.infc.ScheduleRequestComponents; |
19 | |
import org.w3c.dom.Element; |
20 | |
|
21 | |
import javax.xml.bind.annotation.XmlAccessType; |
22 | |
import javax.xml.bind.annotation.XmlAccessorType; |
23 | |
import javax.xml.bind.annotation.XmlAnyElement; |
24 | |
import javax.xml.bind.annotation.XmlElement; |
25 | |
import javax.xml.bind.annotation.XmlType; |
26 | |
import java.io.Serializable; |
27 | |
import java.util.ArrayList; |
28 | |
import java.util.List; |
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
@XmlAccessorType(XmlAccessType.FIELD) |
35 | |
@XmlType(name = "ScheduleRequestComponentsInfo", propOrder = {"id", "buildingIds", "campusIds", "orgIds", "resourceTypeKeys", "roomIds", "timeSlotIds", "_futureElements"}) |
36 | |
public class ScheduleRequestComponentsInfo implements ScheduleRequestComponents, Serializable { |
37 | |
|
38 | |
@XmlElement |
39 | |
private String id; |
40 | |
@XmlElement |
41 | |
private List<String> buildingIds; |
42 | |
@XmlElement |
43 | |
private List<String> campusIds; |
44 | |
@XmlElement |
45 | |
private List<String> orgIds; |
46 | |
@XmlElement |
47 | |
private List<String> resourceTypeKeys; |
48 | |
@XmlElement |
49 | |
private List<String> roomIds; |
50 | |
@XmlElement |
51 | |
private List<String> timeSlotIds; |
52 | |
@XmlAnyElement |
53 | |
private List<Element> _futureElements; |
54 | |
|
55 | 0 | public ScheduleRequestComponentsInfo() { |
56 | 0 | } |
57 | |
|
58 | 0 | public ScheduleRequestComponentsInfo(ScheduleRequestComponents scheduleRequestComponents) { |
59 | 0 | if (null != scheduleRequestComponents) { |
60 | 0 | this.id = scheduleRequestComponents.getId(); |
61 | 0 | this.buildingIds = new ArrayList<String>(scheduleRequestComponents.getBuildingIds()); |
62 | 0 | this.campusIds = new ArrayList<String>(scheduleRequestComponents.getCampusIds()); |
63 | 0 | this.orgIds = new ArrayList<String>(scheduleRequestComponents.getOrgIds()); |
64 | 0 | this.resourceTypeKeys = scheduleRequestComponents.getResourceTypeKeys(); |
65 | 0 | this.roomIds = scheduleRequestComponents.getRoomIds(); |
66 | 0 | this.timeSlotIds = new ArrayList<String>(scheduleRequestComponents.getTimeSlotIds()); |
67 | |
} |
68 | 0 | } |
69 | |
|
70 | |
public String getId() { |
71 | 0 | return id; |
72 | |
} |
73 | |
|
74 | |
public void setId(String id) { |
75 | 0 | this.id = id; |
76 | 0 | } |
77 | |
|
78 | |
@Override |
79 | |
public List<String> getBuildingIds() { |
80 | 0 | return buildingIds; |
81 | |
} |
82 | |
|
83 | |
public void setBuildingIds(List<String> buildingIds) { |
84 | 0 | this.buildingIds = buildingIds; |
85 | 0 | } |
86 | |
|
87 | |
@Override |
88 | |
public List<String> getCampusIds() { |
89 | 0 | return campusIds; |
90 | |
} |
91 | |
|
92 | |
public void setCampusIds(List<String> campusIds) { |
93 | 0 | this.campusIds = campusIds; |
94 | 0 | } |
95 | |
|
96 | |
@Override |
97 | |
public List<String> getOrgIds() { |
98 | 0 | return orgIds; |
99 | |
} |
100 | |
|
101 | |
public void setOrgIds(List<String> orgIds) { |
102 | 0 | this.orgIds = orgIds; |
103 | 0 | } |
104 | |
|
105 | |
@Override |
106 | |
public List<String> getResourceTypeKeys() { |
107 | 0 | return resourceTypeKeys; |
108 | |
} |
109 | |
|
110 | |
public void setResourceTypeKeys(List<String> resourceTypeKeys) { |
111 | 0 | this.resourceTypeKeys = resourceTypeKeys; |
112 | 0 | } |
113 | |
|
114 | |
@Override |
115 | |
public List<String> getRoomIds() { |
116 | 0 | return roomIds; |
117 | |
} |
118 | |
|
119 | |
public void setRoomIds(List<String> roomIds) { |
120 | 0 | this.roomIds = roomIds; |
121 | 0 | } |
122 | |
|
123 | |
@Override |
124 | |
public List<String> getTimeSlotIds() { |
125 | 0 | return timeSlotIds; |
126 | |
} |
127 | |
|
128 | |
public void setTimeSlotIds(List<String> timeSlotIds) { |
129 | 0 | this.timeSlotIds = timeSlotIds; |
130 | 0 | } |
131 | |
} |