Coverage Report - org.kuali.student.r2.core.scheduling.dto.ScheduleRequestItemInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
ScheduleRequestItemInfo
0%
0/49
0%
0/2
1.042
 
 1  
 /*
 2  
  * Copyright 2012 The Kuali Foundation Licensed under the
 3  
  *  Educational Community License, Version 2.0 (the "License"); you may
 4  
  *  not use this file except in compliance with the License. You may
 5  
  *  obtain a copy of the License at
 6  
  *
 7  
  *   http://www.osedu.org/licenses/ECL-2.0
 8  
  *
 9  
  *  Unless required by applicable law or agreed to in writing,
 10  
  *  software distributed under the License is distributed on an "AS IS"
 11  
  *  BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 12  
  *  or implied. See the License for the specific language governing
 13  
  *  permissions and limitations under the License.
 14  
  */
 15  
 
 16  
 package org.kuali.student.r2.core.scheduling.dto;
 17  
 
 18  
 import org.kuali.student.r2.core.scheduling.infc.ScheduleRequestItem;
 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.util.ArrayList;
 27  
 import java.util.List;
 28  
 
 29  
 /**
 30  
  * @Version 2.0
 31  
  * @Author Sri komandur@uw.edu
 32  
  */
 33  
 @XmlAccessorType(XmlAccessType.FIELD)
 34  
 @XmlType(name = "ScheduleRequestItemInfo", propOrder = {"id", "buildingIds", "campusIds", "isRequirement", "orgIds", "referenceId", "referenceTypeKey", "resourceTypeKeys", "roomIds", "scheduleRequestId", "timeSlotIds", "_futureElements"})
 35  
 public class ScheduleRequestItemInfo implements ScheduleRequestItem {
 36  
 
 37  
     @XmlElement
 38  
     private String id;
 39  
     @XmlElement
 40  
     private List<String> buildingIds;
 41  
     @XmlElement
 42  
     private List<String> campusIds;
 43  
     @XmlElement
 44  
     private Boolean isRequirement;
 45  
     @XmlElement
 46  
     private List<String> orgIds;
 47  
     @XmlElement
 48  
     private String referenceId;
 49  
     @XmlElement
 50  
     private String referenceTypeKey;
 51  
     @XmlElement
 52  
     private List<String> resourceTypeKeys;
 53  
     @XmlElement
 54  
     private List<String> roomIds;
 55  
     @XmlElement
 56  
     private String scheduleRequestId;
 57  
     @XmlElement
 58  
     private List<String> timeSlotIds;
 59  
     @XmlAnyElement
 60  
     private List<Element> _futureElements;
 61  
 
 62  0
     public ScheduleRequestItemInfo() {
 63  0
     }
 64  
 
 65  0
     public ScheduleRequestItemInfo(ScheduleRequestItem scheduleRequestItem) {
 66  0
         if (null != scheduleRequestItem) {
 67  0
             this.id = scheduleRequestItem.getId();
 68  0
             this.buildingIds = new ArrayList<String>(scheduleRequestItem.getBuildingIds());
 69  0
             this.campusIds = new ArrayList<String>(scheduleRequestItem.getCampusIds());
 70  0
             this.isRequirement  = scheduleRequestItem.getIsRequirement();
 71  0
             this.orgIds = new ArrayList<String>(scheduleRequestItem.getOrgIds());
 72  0
             this.referenceId = scheduleRequestItem.getReferenceId();
 73  0
             this.referenceTypeKey = scheduleRequestItem.getReferenceTypeKey();
 74  0
             this.resourceTypeKeys = scheduleRequestItem.getResourceTypeKeys();
 75  0
             this.roomIds = scheduleRequestItem.getRoomIds();
 76  0
             this.scheduleRequestId = scheduleRequestItem.getScheduleRequestId();
 77  0
             this.timeSlotIds = new ArrayList<String>(scheduleRequestItem.getTimeSlotIds());
 78  
         }
 79  0
     }
 80  
 
 81  
     public String getId() {
 82  0
         return id;
 83  
     }
 84  
 
 85  
     public void setId(String id) {
 86  0
         this.id = id;
 87  0
     }
 88  
 
 89  
     @Override
 90  
     public List<String> getBuildingIds() {
 91  0
         return buildingIds;
 92  
     }
 93  
 
 94  
     public void setBuildingIds(List<String> buildingIds) {
 95  0
         this.buildingIds = buildingIds;
 96  0
     }
 97  
 
 98  
     @Override
 99  
     public List<String> getCampusIds() {
 100  0
         return campusIds;
 101  
     }
 102  
 
 103  
     public void setCampusIds(List<String> campusIds) {
 104  0
         this.campusIds = campusIds;
 105  0
     }
 106  
 
 107  
     @Override
 108  
     public Boolean getIsRequirement() {
 109  0
         return isRequirement;
 110  
     }
 111  
 
 112  
     public void setIsRequirement(Boolean requirement) {
 113  0
         isRequirement = requirement;
 114  0
     }
 115  
 
 116  
     @Override
 117  
     public List<String> getOrgIds() {
 118  0
         return orgIds;
 119  
     }
 120  
 
 121  
     public void setOrgIds(List<String> orgIds) {
 122  0
         this.orgIds = orgIds;
 123  0
     }
 124  
 
 125  
     @Override
 126  
     public String getReferenceId() {
 127  0
         return referenceId;
 128  
     }
 129  
 
 130  
     public void setReferenceId(String referenceId) {
 131  0
         this.referenceId = referenceId;
 132  0
     }
 133  
 
 134  
     @Override
 135  
     public String getReferenceTypeKey() {
 136  0
         return referenceTypeKey;
 137  
     }
 138  
 
 139  
     public void setReferenceTypeKey(String referenceTypeKey) {
 140  0
         this.referenceTypeKey = referenceTypeKey;
 141  0
     }
 142  
 
 143  
     @Override
 144  
     public List<String> getResourceTypeKeys() {
 145  0
         return resourceTypeKeys;
 146  
     }
 147  
 
 148  
     public void setResourceTypeKeys(List<String> resourceTypeKeys) {
 149  0
         this.resourceTypeKeys = resourceTypeKeys;
 150  0
     }
 151  
 
 152  
     @Override
 153  
     public List<String> getRoomIds() {
 154  0
         return roomIds;
 155  
     }
 156  
 
 157  
     public void setRoomIds(List<String> roomIds) {
 158  0
         this.roomIds = roomIds;
 159  0
     }
 160  
 
 161  
     @Override
 162  
     public String getScheduleRequestId() {
 163  0
         return scheduleRequestId;
 164  
     }
 165  
 
 166  
     public void setScheduleRequestId(String scheduleRequestId) {
 167  0
         this.scheduleRequestId = scheduleRequestId;
 168  0
     }
 169  
 
 170  
     @Override
 171  
     public List<String> getTimeSlotIds() {
 172  0
         return timeSlotIds;
 173  
     }
 174  
 
 175  
     public void setTimeSlotIds(List<String> timeSlotIds) {
 176  0
         this.timeSlotIds = timeSlotIds;
 177  0
     }
 178  
 }