View Javadoc

1   /*
2    * Copyright 2011 The Kuali Foundation 
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the
5    * "License"); you may not use this file except in compliance with the
6    * License. You may obtain a copy of the License at
7    *
8    * http://www.osedu.org/licenses/ECL-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13   * implied. See the License for the specific language governing
14   * permissions and limitations under the License.
15   */
16  
17  package org.kuali.student.r2.common.dto;
18  
19  import java.io.Serializable;
20  import java.util.List;
21  
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  
28  import org.kuali.student.r2.common.infc.MeetingSchedule;
29  //import org.w3c.dom.Element;
30  
31  /**
32   * Information about a MeetingSchedule. This will move into the
33   * Scheduling service.
34   *
35   * @author kamal
36   */
37  
38  @XmlAccessorType(XmlAccessType.FIELD)
39  @XmlType(name = "MeetingScheduleInfo", propOrder = {
40                  "id", "spaceId", "scheduleId" , "_futureElements" }) 
41  
42  public class MeetingScheduleInfo 
43      implements MeetingSchedule, Serializable {
44  
45      private static final long serialVersionUID = 1L;
46  
47      @XmlElement
48      private String id;
49  
50      @XmlElement
51      private String spaceId;
52  
53      @XmlElement
54      private String scheduleId;
55  
56      
57      @XmlAnyElement
58      private List<Object> _futureElements;  
59  
60  
61      /**
62       * Constructs a new MeetingScheduleInfo.
63       */
64      public MeetingScheduleInfo() {
65      }
66  
67      /**
68       * Constructs a new MeetingScheduleInfo from another
69       * MeetingSchedule.
70       *
71       * @param meetingSchedule the MeetingSchedule to copy
72       */
73      public MeetingScheduleInfo(MeetingSchedule meetingSchedule) {
74          if (null != meetingSchedule) {
75              this.id = meetingSchedule.getId();
76              this.spaceId = meetingSchedule.getSpaceId();
77              this.scheduleId = meetingSchedule.getScheduleId();
78          }
79      }
80  
81      @Override
82      public String getId() {
83          return id;
84      }
85  
86      public void setId(String id) {
87          this.id = id;
88      }
89  
90      @Override
91      public String getSpaceId() {
92          return spaceId;
93      }
94  
95      public void setSpaceId(String spaceId) {
96          this.spaceId = spaceId;
97      }
98  
99      @Override
100     public String getScheduleId() {
101         return scheduleId;
102     }
103 
104     public void setScheduleId(String scheduleId) {
105         this.scheduleId = scheduleId;
106     }
107 }