Coverage Report - org.kuali.student.enrollment.exemption.dto.ExemptionRequestInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
ExemptionRequestInfo
0%
0/78
0%
0/14
1.25
 
 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.enrollment.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.enrollment.exemption.infc.ExemptionRequest;
 28  
 import org.kuali.student.enrollment.exemption.infc.RestrictionOverride;
 29  
 import org.kuali.student.enrollment.exemption.infc.DateOverride;
 30  
 import org.kuali.student.enrollment.exemption.infc.MilestoneOverride;
 31  
 import org.kuali.student.enrollment.exemption.infc.StatementOverride;
 32  
 import org.kuali.student.enrollment.exemption.infc.HoldOverride;
 33  
 import org.kuali.student.enrollment.exemption.infc.LearningResultOverride;
 34  
 
 35  
 import org.kuali.student.r2.common.dto.IdEntityInfo;
 36  
 import org.w3c.dom.Element;
 37  
 
 38  
 @XmlAccessorType(XmlAccessType.FIELD)
 39  
 @XmlType(name = "ExemptionRequestInfo", propOrder = { "id", "typeKey", 
 40  
                 "stateKey", "name", "descr", "checkKey", "personId", 
 41  
                 "qualifierTypeKey", "qualifierId", "requestDate", 
 42  
                 "approvedByPersonId", "approvedDate", "restrictionOverride", 
 43  
                 "dateOverride", "milestoneOverride", "statementOverride",
 44  
                 "holdOverride","learningResultOverride", "meta", "attributes", "_futureElements" })
 45  
 
 46  
 public class ExemptionRequestInfo extends IdEntityInfo implements ExemptionRequest, Serializable {
 47  
         private static final long serialVersionUID = 1L;
 48  
 
 49  
         @XmlElement
 50  
         private String checkKey;
 51  
 
 52  
         @XmlElement
 53  
         private String personId;
 54  
 
 55  
         @XmlElement
 56  
         private String qualifierTypeKey;
 57  
 
 58  
         @XmlElement
 59  
         private String qualifierId;
 60  
 
 61  
         @XmlElement
 62  
         private Date requestDate;
 63  
 
 64  
         @XmlElement
 65  
         private String approvedByPersonId;
 66  
 
 67  
         @XmlElement
 68  
         private Date approvedDate;
 69  
 
 70  
         @XmlElement
 71  
         private RestrictionOverrideInfo restrictionOverride;
 72  
 
 73  
         @XmlElement
 74  
         private DateOverrideInfo dateOverride;
 75  
 
 76  
         @XmlElement
 77  
         private MilestoneOverrideInfo milestoneOverride;
 78  
 
 79  
         @XmlElement
 80  
         private StatementOverrideInfo statementOverride;
 81  
 
 82  
         @XmlElement
 83  
         private HoldOverrideInfo holdOverride;
 84  
 
 85  
         @XmlElement
 86  
         private LearningResultOverrideInfo learningResultOverride;
 87  
 
 88  
         @XmlAnyElement
 89  
         private List<Element> _futureElements;
 90  
 
 91  
         public ExemptionRequestInfo() {
 92  0
                 super();
 93  
 
 94  0
                 checkKey = null;
 95  0
                 personId = null;
 96  0
                 qualifierTypeKey = null;
 97  0
                 qualifierId = null;
 98  0
                 requestDate = null;
 99  0
                 approvedByPersonId = null;
 100  0
                 approvedDate = null;
 101  
                 
 102  0
                 restrictionOverride = null;
 103  0
                 dateOverride = null;
 104  0
                 milestoneOverride = null;
 105  0
                 statementOverride = null;
 106  0
                 holdOverride = null;
 107  0
                 learningResultOverride = null;
 108  
 
 109  0
                 _futureElements = null;
 110  0
         }
 111  
 
 112  
         /**
 113  
          * Constructs a new ExemptionRequestInfo from another 
 114  
          * ExemptionRequest.
 115  
          * 
 116  
          * @param exemption the ExemptionRequest to copy
 117  
          */
 118  
         public ExemptionRequestInfo(ExemptionRequest request) {
 119  0
                 super(request);
 120  0
                 if (null != request) {
 121  0
                         this.checkKey = request.getCheckKey();
 122  0
                         this.personId = request.getPersonId();
 123  0
                         this.qualifierTypeKey = request.getQualifierTypeKey();
 124  0
                         this.qualifierId = request.getQualifierId();
 125  0
                         this.requestDate = request.getRequestDate();
 126  0
                         this.approvedByPersonId = request.getApprovedByPersonId();
 127  0
                         this.approvedDate = request.getApprovedDate();
 128  
 
 129  0
                         if (request.getRestrictionOverride() != null) {
 130  0
                             this.restrictionOverride = new RestrictionOverrideInfo(request.getRestrictionOverride());
 131  
                         }
 132  
 
 133  0
                         if (request.getDateOverride() != null) {
 134  0
                             this.dateOverride = new DateOverrideInfo(request.getDateOverride());
 135  
                         }
 136  
 
 137  0
                         if (request.getMilestoneOverride() != null) {
 138  0
                             this.milestoneOverride = new MilestoneOverrideInfo(request.getMilestoneOverride());
 139  
                         }
 140  
 
 141  0
                         if (request.getStatementOverride() != null) {
 142  0
                             this.statementOverride = new StatementOverrideInfo(request.getStatementOverride());
 143  
                         }
 144  
 
 145  0
                         if (request.getHoldOverride() != null) {
 146  0
                             this.holdOverride = new HoldOverrideInfo(request.getHoldOverride());
 147  
                         }
 148  
 
 149  0
                         if (request.getLearningResultOverride() != null) {
 150  0
                             this.learningResultOverride = new LearningResultOverrideInfo(request.getLearningResultOverride());
 151  
                         }
 152  
                 }
 153  
                 
 154  0
                 _futureElements = null;
 155  0
         }
 156  
 
 157  
         @Override
 158  
         public String getCheckKey() {
 159  0
             return checkKey;
 160  
         }
 161  
 
 162  
         public void setCheckKey(String checkKey) {
 163  0
             this.checkKey = checkKey;
 164  0
         }
 165  
 
 166  
         @Override
 167  
         public String getPersonId() {
 168  0
             return personId;
 169  
         }
 170  
 
 171  
         public void setPersonId(String personId) {
 172  0
             this.personId = personId;
 173  0
         }
 174  
 
 175  
         @Override
 176  
         public String getQualifierTypeKey() {
 177  0
             return qualifierTypeKey;
 178  
         }
 179  
 
 180  
         public void setQualfiierTypeKey(String qualiferTypeKey) {
 181  0
             this.qualifierTypeKey = qualifierTypeKey;
 182  0
         }
 183  
 
 184  
         @Override
 185  
         public String getQualifierId() {
 186  0
             return qualifierId;
 187  
         }
 188  
 
 189  
         public void setQualfiierId(String qualiferId) {
 190  0
             this.qualifierId = qualifierId;
 191  0
         }
 192  
 
 193  
         @Override
 194  
         public Date getRequestDate() {
 195  0
             return requestDate;
 196  
         }
 197  
 
 198  
         public void setRequestDate(Date requestDate) {
 199  0
             this.requestDate = requestDate;
 200  0
         }
 201  
 
 202  
         @Override
 203  
         public String getApprovedByPersonId() {
 204  0
             return approvedByPersonId;
 205  
         }
 206  
 
 207  
         public void setApprovedByPersonId(String approvedByPersonId) {
 208  0
             this.approvedByPersonId = approvedByPersonId;
 209  0
         }
 210  
 
 211  
         @Override
 212  
         public Date getApprovedDate() {
 213  0
             return approvedDate;
 214  
         }
 215  
 
 216  
         public void setApprovedDate(Date approvedDate) {
 217  0
             this.approvedDate = approvedDate;
 218  0
         }
 219  
 
 220  
         @Override
 221  
         public RestrictionOverride getRestrictionOverride() {
 222  0
             return restrictionOverride;
 223  
         }
 224  
 
 225  
         public void setRestrictionOverride(RestrictionOverride restrictionOverride) {
 226  0
             this.restrictionOverride = new RestrictionOverrideInfo(restrictionOverride);
 227  0
         }
 228  
 
 229  
         @Override
 230  
         public DateOverride getDateOverride() {
 231  0
             return dateOverride;
 232  
         }
 233  
 
 234  
         public void setDateOverride(DateOverride dateOverride) {
 235  0
             this.dateOverride = new DateOverrideInfo(dateOverride);
 236  0
         }
 237  
 
 238  
         @Override
 239  
         public MilestoneOverride getMilestoneOverride() {
 240  0
             return milestoneOverride;
 241  
         }
 242  
 
 243  
         public void setMilestoneOverride(MilestoneOverride milestoneOverride) {
 244  0
             this.milestoneOverride = new MilestoneOverrideInfo(milestoneOverride);
 245  0
         }
 246  
 
 247  
         @Override
 248  
         public StatementOverride getStatementOverride() {
 249  0
             return statementOverride;
 250  
         }
 251  
 
 252  
         public void setStatementOverride(StatementOverride statementOverride) {
 253  0
             this.statementOverride = new StatementOverrideInfo(statementOverride);
 254  0
         }
 255  
 
 256  
         @Override
 257  
         public HoldOverride getHoldOverride() {
 258  0
             return holdOverride;
 259  
         }
 260  
 
 261  
         public void setHoldOverride(HoldOverride holdOverride) {
 262  0
             this.holdOverride = new HoldOverrideInfo(holdOverride);
 263  0
         }
 264  
 
 265  
         @Override
 266  
         public LearningResultOverride getLearningResultOverride() {
 267  0
             return learningResultOverride;
 268  
         }
 269  
 
 270  
         public void setLearningResultOverride(LearningResultOverride learningResultOverride) {
 271  0
             this.learningResultOverride = new LearningResultOverrideInfo(learningResultOverride);
 272  0
         }
 273  
 }