Coverage Report - org.kuali.student.enrollment.courseofferingset.dto.SocRolloverResultInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
SocRolloverResultInfo
0%
0/50
0%
0/6
1.182
 
 1  
 /*
 2  
  * Copyright 2011 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 1.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.opensource.org/licenses/ecl1.php
 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  
 package org.kuali.student.enrollment.courseofferingset.dto;
 17  
 
 18  
 import java.util.ArrayList;
 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.courseofferingset.infc.SocRolloverResult;
 28  
 import org.kuali.student.r2.common.dto.IdNamelessEntityInfo;
 29  
 import org.kuali.student.r2.common.dto.RichTextInfo;
 30  
 import org.w3c.dom.Element;
 31  
 
 32  0
 @XmlAccessorType(XmlAccessType.FIELD)
 33  
 @XmlType(name = "SocRolloverResultInfo", propOrder = {"id",
 34  
     "typeKey",
 35  
     "stateKey",
 36  
     "sourceSocId",
 37  
     "targetSocId",
 38  
     "targetTermId",
 39  
     "optionKeys",
 40  
     "itemsProcessed",
 41  
     "itemsExpected",
 42  
     "itemsCreated",
 43  
     "itemsSkipped",
 44  
     "sourceTermId",
 45  
     "message",
 46  
     "meta",
 47  
     "attributes",
 48  
     "_futureElements"})
 49  
 public class SocRolloverResultInfo
 50  
         extends IdNamelessEntityInfo
 51  
         implements SocRolloverResult {
 52  
 
 53  
     private static final long serialVersionUID = 1L;
 54  
     @XmlElement
 55  
     private String sourceSocId;
 56  
     @XmlElement
 57  
     private String targetSocId;
 58  
     @XmlElement
 59  
     private String targetTermId;
 60  
     @XmlElement
 61  
     private List<String> optionKeys;
 62  
     @XmlElement
 63  
     private Integer itemsProcessed;
 64  
     @XmlElement
 65  
     private Integer itemsExpected;
 66  
     @XmlElement
 67  
     private Integer itemsCreated;
 68  
     @XmlElement
 69  
     private Integer itemsSkipped;
 70  
     @XmlElement
 71  
     private String sourceTermId;
 72  
     @XmlElement
 73  
     private RichTextInfo message;
 74  
     @XmlAnyElement
 75  
     private List<Element> _futureElements;
 76  
 
 77  0
     public SocRolloverResultInfo() {
 78  0
     }
 79  
 
 80  
     /**
 81  
      * Copies Soc rollover results
 82  
      *
 83  
      * @param 
 84  
      */
 85  
     public SocRolloverResultInfo(SocRolloverResult orig) {
 86  
 
 87  0
         super(orig);
 88  
 
 89  0
         if (orig == null) {
 90  0
             return;
 91  
         }
 92  
 
 93  0
         this.sourceSocId = orig.getSourceSocId();
 94  0
         this.targetSocId = orig.getTargetSocId();
 95  0
         this.targetTermId = orig.getTargetTermId();
 96  0
         this.optionKeys = new ArrayList<String>(orig.getOptionKeys());
 97  0
         this.itemsProcessed = orig.getItemsProcessed();
 98  0
         this.itemsExpected = orig.getItemsExpected();
 99  0
         this.itemsCreated = orig.getItemsCreated();
 100  0
         this.itemsSkipped = orig.getItemsSkipped();
 101  0
         this.sourceTermId = orig.getSourceTermId();
 102  0
         if (orig.getMessage() != null) {
 103  0
             this.message = new RichTextInfo (orig.getMessage());
 104  
         }
 105  0
     }
 106  
 
 107  
     @Override
 108  
     public List<String> getOptionKeys() {
 109  0
         if (this.optionKeys == null) {
 110  0
             this.optionKeys = new ArrayList<String>();
 111  
         }
 112  0
         return optionKeys;
 113  
     }
 114  
 
 115  
     public void setOptionKeys(List<String> optionKeys) {
 116  0
         this.optionKeys = optionKeys;
 117  0
     }
 118  
 
 119  
     @Override
 120  
     public String getSourceSocId() {
 121  0
         return sourceSocId;
 122  
     }
 123  
 
 124  
     public void setSourceSocId(String sourceSocId) {
 125  0
         this.sourceSocId = sourceSocId;
 126  0
     }
 127  
 
 128  
     @Override
 129  
     public String getTargetSocId() {
 130  0
         return targetSocId;
 131  
     }
 132  
 
 133  
     public void setTargetSocId(String targetSocId) {
 134  0
         this.targetSocId = targetSocId;
 135  0
     }
 136  
 
 137  
     @Override
 138  
     public String getTargetTermId() {
 139  0
         return targetTermId;
 140  
     }
 141  
 
 142  
     public void setTargetTermId(String targetTermId) {
 143  0
         this.targetTermId = targetTermId;
 144  0
     }
 145  
 
 146  
     @Override
 147  
     public Integer getItemsProcessed() {
 148  0
         return itemsProcessed;
 149  
     }
 150  
 
 151  
     public void setItemsProcessed(Integer itemsProcessed) {
 152  0
         this.itemsProcessed = itemsProcessed;
 153  0
     }
 154  
 
 155  
     @Override
 156  
     public Integer getItemsExpected() {
 157  0
         return itemsExpected;
 158  
     }
 159  
 
 160  
     public void setItemsExpected(Integer itemsExpected) {
 161  0
         this.itemsExpected = itemsExpected;
 162  0
     }
 163  
 
 164  
     @Override
 165  
     public RichTextInfo getMessage() {
 166  0
         return message;
 167  
     }
 168  
 
 169  
     public void setMessage(RichTextInfo message) {
 170  0
         this.message = message;
 171  0
     }
 172  
 
 173  
     @Override
 174  
     public Integer getItemsCreated() {
 175  0
         return itemsCreated;
 176  
     }
 177  
 
 178  
     public void setItemsCreated(Integer itemsCreated) {
 179  0
         this.itemsCreated = itemsCreated;
 180  0
     }
 181  
 
 182  
     @Override
 183  
     public Integer getItemsSkipped() {
 184  0
         return itemsSkipped;
 185  
     }
 186  
 
 187  
     public void setItemsSkipped(Integer itemsSkipped) {
 188  0
         this.itemsSkipped = itemsSkipped;
 189  0
     }
 190  
 
 191  
     @Override
 192  
     public String getSourceTermId() {
 193  0
         return sourceTermId;
 194  
     }
 195  
 
 196  
     public void setSourceTermId(String sourceTermId) {
 197  0
         this.sourceTermId = sourceTermId;
 198  0
     }
 199  
 
 200  
     
 201  
 }