Coverage Report - org.kuali.student.r2.core.scheduling.dto.ScheduleBatchResponseInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
ScheduleBatchResponseInfo
0%
0/18
0%
0/2
1.125
 
 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.common.dto.IdNamelessEntityInfo;
 19  
 import org.kuali.student.r2.common.dto.StatusInfo;
 20  
 import org.kuali.student.r2.core.scheduling.infc.ScheduleBatchResponse;
 21  
 import org.w3c.dom.Element;
 22  
 
 23  
 import javax.xml.bind.annotation.XmlAccessType;
 24  
 import javax.xml.bind.annotation.XmlAccessorType;
 25  
 import javax.xml.bind.annotation.XmlAnyElement;
 26  
 import javax.xml.bind.annotation.XmlElement;
 27  
 import javax.xml.bind.annotation.XmlType;
 28  
 import java.io.Serializable;
 29  
 import java.util.Date;
 30  
 import java.util.List;
 31  
 
 32  
 /**
 33  
  * @Version 2.0
 34  
  * @Author Sri komandur@uw.edu
 35  
  */
 36  0
 @XmlAccessorType(XmlAccessType.FIELD)
 37  
 @XmlType(name = "ScheduleBatchResponseInfo", propOrder = {"id", "typeKey", "stateKey",
 38  
         "submittedDate", "statusMessage", "finalStatus",
 39  
         "meta", "attributes", "_futureElements"})
 40  
 public class ScheduleBatchResponseInfo extends IdNamelessEntityInfo implements ScheduleBatchResponse, Serializable {
 41  
     
 42  
     @XmlElement 
 43  
     private Date submittedDate;
 44  
     @XmlElement
 45  
     private String statusMessage;
 46  
     @XmlElement
 47  
     private StatusInfo finalStatus;
 48  
     @XmlAnyElement
 49  
     private List<Element> _futureElements;
 50  
 
 51  0
     public ScheduleBatchResponseInfo() {
 52  
 
 53  0
     }
 54  
 
 55  0
     public ScheduleBatchResponseInfo(ScheduleBatchResponse scheduleBatchResponse) {
 56  0
         if (null != scheduleBatchResponse) {
 57  0
             this.submittedDate = scheduleBatchResponse.getSubmittedDate();
 58  0
             this.statusMessage = scheduleBatchResponse.getStatusMessage();
 59  0
             this.finalStatus = new StatusInfo(scheduleBatchResponse.getFinalStatus());
 60  
         }
 61  0
     }
 62  
     
 63  
     @Override
 64  
     public Date getSubmittedDate() {
 65  0
         return this.submittedDate;
 66  
     }
 67  
 
 68  
     public void setSubmittedDate(Date submittedDate) {
 69  0
         this.submittedDate = submittedDate;
 70  0
     }
 71  
 
 72  
     @Override
 73  
     public String getStatusMessage() {
 74  0
         return this.statusMessage;
 75  
     }
 76  
 
 77  
     public void setStatusMessage(String statusMessage) {
 78  0
         this.statusMessage = statusMessage;
 79  0
     }
 80  
 
 81  
     @Override
 82  
     public StatusInfo getFinalStatus() {
 83  0
         return this.finalStatus;
 84  
     }
 85  
 
 86  
     public void setFinalStatus(StatusInfo finalStatus) {
 87  0
         this.finalStatus = finalStatus;
 88  0
     }
 89  
 
 90  
 }