Coverage Report - org.kuali.student.r2.core.exemption.dto.ExemptionRequestInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
ExemptionRequestInfo
0%
0/50
0%
0/8
1.182
 
 1  
 /*
 2  
  * Copyright 2010 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  
 package org.kuali.student.r2.core.exemption.dto;
 16  
 
 17  
 import java.io.Serializable;
 18  
 import java.util.Date;
 19  
 import java.util.List;
 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  
 
 27  
 import org.kuali.student.r2.common.dto.IdEntityInfo;
 28  
 import org.kuali.student.r2.core.exemption.infc.ExemptionRequest;
 29  
 
 30  
 import org.w3c.dom.Element;
 31  
 
 32  0
 @XmlAccessorType(XmlAccessType.FIELD)
 33  
 @XmlType(name = "ExemptionRequestInfo", propOrder = {"id", "typeKey",
 34  
     "stateKey", "name", "descr", "processId", "checkKey",
 35  
     "personId",
 36  
     "requesterId", "requestDate",
 37  
     "approvedByPersonId", "approvedDate",
 38  
     "dateOverride", "milestoneOverride",
 39  
     "learningResultOverride", "meta", "attributes", "_futureElements"})
 40  
 public class ExemptionRequestInfo extends IdEntityInfo implements ExemptionRequest, Serializable {
 41  
 
 42  
     private static final long serialVersionUID = 1L;
 43  
     @XmlElement
 44  
     private String processId;
 45  
     @XmlElement
 46  
     private String checkKey;
 47  
     @XmlElement
 48  
     private String personId;
 49  
     @XmlElement
 50  
     private String requesterId;
 51  
     @XmlElement
 52  
     private Date requestDate;
 53  
     @XmlElement
 54  
     private String approvedByPersonId;
 55  
     @XmlElement
 56  
     private Date approvedDate;
 57  
     @XmlElement
 58  
     private DateOverrideInfo dateOverride;
 59  
     @XmlElement
 60  
     private MilestoneOverrideInfo milestoneOverride;
 61  
     @XmlElement
 62  
     private LearningResultOverrideInfo learningResultOverride;
 63  
     @XmlAnyElement
 64  
     private List<Element> _futureElements;
 65  
 
 66  
     public ExemptionRequestInfo() {
 67  0
         super();
 68  0
     }
 69  
 
 70  
     /**
 71  
      * Constructs a new ExemptionRequestInfo from another 
 72  
      * ExemptionRequest.
 73  
      * 
 74  
      * @param exemption the ExemptionRequest to copy
 75  
      */
 76  
     public ExemptionRequestInfo(ExemptionRequest request) {
 77  0
         super(request);
 78  0
         if (null != request) {
 79  0
             this.processId = request.getProcessId();
 80  0
             this.checkKey = request.getCheckKey();
 81  0
             this.personId = request.getPersonId();
 82  0
             this.requesterId = request.getRequesterId();
 83  0
             this.requestDate = request.getRequestDate();
 84  0
             this.approvedByPersonId = request.getApprovedByPersonId();
 85  0
             this.approvedDate = request.getApprovedDate();
 86  
 
 87  0
             if (request.getDateOverride() != null) {
 88  0
                 this.dateOverride = new DateOverrideInfo(request.getDateOverride());
 89  
             }
 90  
 
 91  0
             if (request.getMilestoneOverride() != null) {
 92  0
                 this.milestoneOverride = new MilestoneOverrideInfo(request.getMilestoneOverride());
 93  
             }
 94  
 
 95  0
             if (request.getLearningResultOverride() != null) {
 96  0
                 this.learningResultOverride = new LearningResultOverrideInfo(request.getLearningResultOverride());
 97  
             }
 98  
         }
 99  
 
 100  0
         _futureElements = null;
 101  0
     }
 102  
 
 103  
     @Override
 104  
     public String getProcessId() {
 105  0
         return processId;
 106  
     }
 107  
 
 108  
     public void setProcessId(String processId) {
 109  0
         this.processId = processId;
 110  0
     }
 111  
 
 112  
     @Override
 113  
     public String getCheckKey() {
 114  0
         return checkKey;
 115  
     }
 116  
 
 117  
     public void setCheckKey(String checkKey) {
 118  0
         this.checkKey = checkKey;
 119  0
     }
 120  
 
 121  
     @Override
 122  
     public String getPersonId() {
 123  0
         return personId;
 124  
     }
 125  
 
 126  
     public void setPersonId(String personId) {
 127  0
         this.personId = personId;
 128  0
     }
 129  
 
 130  
     @Override
 131  
     public String getRequesterId() {
 132  0
         return requesterId;
 133  
     }
 134  
 
 135  
     public void setRequesterId(String requesterId) {
 136  0
         this.requesterId = requesterId;
 137  0
     }
 138  
 
 139  
     @Override
 140  
     public Date getRequestDate() {
 141  0
         return requestDate;
 142  
     }
 143  
 
 144  
     public void setRequestDate(Date requestDate) {
 145  0
         this.requestDate = requestDate;
 146  0
     }
 147  
 
 148  
     @Override
 149  
     public String getApprovedByPersonId() {
 150  0
         return approvedByPersonId;
 151  
     }
 152  
 
 153  
     public void setApprovedByPersonId(String approvedByPersonId) {
 154  0
         this.approvedByPersonId = approvedByPersonId;
 155  0
     }
 156  
 
 157  
     @Override
 158  
     public Date getApprovedDate() {
 159  0
         return approvedDate;
 160  
     }
 161  
 
 162  
     public void setApprovedDate(Date approvedDate) {
 163  0
         this.approvedDate = approvedDate;
 164  0
     }
 165  
 
 166  
     @Override
 167  
     public DateOverrideInfo getDateOverride() {
 168  0
         return dateOverride;
 169  
     }
 170  
 
 171  
     public void setDateOverride(DateOverrideInfo dateOverrideInfo) {
 172  0
         this.dateOverride = dateOverrideInfo;
 173  0
     }
 174  
 
 175  
     @Override
 176  
     public MilestoneOverrideInfo getMilestoneOverride() {
 177  0
         return milestoneOverride;
 178  
     }
 179  
 
 180  
     public void setMilestoneOverride(MilestoneOverrideInfo milestoneOverrideInfo) {
 181  0
         this.milestoneOverride = milestoneOverrideInfo;
 182  0
     }
 183  
 
 184  
     @Override
 185  
     public LearningResultOverrideInfo getLearningResultOverride() {
 186  0
         return learningResultOverride;
 187  
     }
 188  
 
 189  
     public void setLearningResultOverride(LearningResultOverrideInfo learningResultOverrideInfo) {
 190  0
         this.learningResultOverride = learningResultOverrideInfo;
 191  0
     }
 192  
 }