Coverage Report - org.kuali.student.r2.common.dto.BulkStatusInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
BulkStatusInfo
0%
0/16
N/A
1
 
 1  
 /*
 2  
  * Copyright 2010 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.BulkStatus;
 29  
 import org.w3c.dom.Element;
 30  
 
 31  
 /**
 32  
  * Information about the state of an object
 33  
  * 
 34  
  * @author nwright
 35  
  */
 36  
 
 37  
 @XmlAccessorType(XmlAccessType.FIELD)
 38  
 @XmlType(name = "StatusInfo", propOrder = {"id", "isSuccess", "message", "_futureElements"})
 39  
 public class BulkStatusInfo 
 40  
     implements BulkStatus, Serializable {
 41  
 
 42  
     private static final long serialVersionUID = 1L;
 43  
          
 44  
     @XmlElement
 45  
     private String id;
 46  
     
 47  
     @XmlElement
 48  
     private Boolean isSuccess;
 49  
     
 50  
     @XmlElement
 51  
     private String message;
 52  
     
 53  
     @XmlAnyElement
 54  
     private List<Element> _futureElements;        
 55  
 
 56  0
     public BulkStatusInfo() {
 57  0
     }
 58  
         
 59  0
     public BulkStatusInfo(BulkStatus bulkStatus) {
 60  0
         this.id = bulkStatus.getId();
 61  0
         this.isSuccess = bulkStatus.getIsSuccess();
 62  0
         this.message = bulkStatus.getMessage();
 63  0
     }
 64  
 
 65  
     @Override
 66  
     public String getId() {
 67  0
         return id;
 68  
     }
 69  
 
 70  
     public void setId(String id) {
 71  0
         this.id = id;
 72  0
     }
 73  
 
 74  
     
 75  
     
 76  
     @Override
 77  
     public Boolean getIsSuccess(){
 78  0
         return isSuccess;
 79  
     }
 80  
     
 81  
     public void setSuccess(Boolean success) {
 82  0
         this.isSuccess = success;
 83  0
     }
 84  
     
 85  
     @Override
 86  
     public String getMessage() {
 87  0
         return message;
 88  
     }
 89  
     
 90  
     public void setMessage(String message) {
 91  0
         this.message = message;
 92  0
     }
 93  
 }