Coverage Report - org.kuali.student.r2.lum.clu.dto.CluSetTreeViewInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
CluSetTreeViewInfo
0%
0/37
0%
0/10
1.312
 
 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  
 
 16  
 package org.kuali.student.r2.lum.clu.dto;
 17  
 
 18  
 import org.kuali.student.r2.common.dto.IdEntityInfo;
 19  
 import org.kuali.student.r2.lum.clu.infc.Clu;
 20  
 import org.kuali.student.r2.lum.clu.infc.CluSetTreeView;
 21  
 
 22  
 import javax.xml.bind.Element;
 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.ArrayList;
 30  
 import java.util.Date;
 31  
 import java.util.List;
 32  
 
 33  
 @XmlAccessorType(XmlAccessType.FIELD)
 34  
 @XmlType(name = "CluSetTreeViewInfo", propOrder = {"id", "descr", "stateKey", "typeKey", "name", "adminOrg", "isReusable", "isReferenceable", "cluSets", "clus",
 35  
         "effectiveDate", "expirationDate", "meta", "attributes", "_futureElements"})
 36  
 public class CluSetTreeViewInfo extends IdEntityInfo implements CluSetTreeView, Serializable {
 37  
 
 38  
     private static final long serialVersionUID = 1L;
 39  
 
 40  
     @XmlElement
 41  
     private String adminOrg;
 42  
 
 43  
     @XmlElement
 44  
     private Boolean isReusable;
 45  
 
 46  
     @XmlElement
 47  
     private Boolean isReferenceable;
 48  
 
 49  
     @XmlElement
 50  
     private List<CluSetTreeViewInfo> cluSets;
 51  
 
 52  
     @XmlElement
 53  
     private List<CluInfo> clus;
 54  
 
 55  
     @XmlElement
 56  
     private Date effectiveDate;
 57  
 
 58  
     @XmlElement
 59  
     private Date expirationDate;
 60  
 
 61  
     @XmlAnyElement
 62  
     private List<Element> _futureElements;
 63  
 
 64  0
     public CluSetTreeViewInfo() {
 65  
 
 66  0
     }
 67  
 
 68  
     public CluSetTreeViewInfo(CluSetTreeView cluSetTreeView) {
 69  0
         super(cluSetTreeView);
 70  0
         if (null != cluSetTreeView) {
 71  0
             this.adminOrg = cluSetTreeView.getAdminOrg();
 72  0
             this.isReusable = cluSetTreeView.getIsReusable();
 73  0
             this.isReferenceable = cluSetTreeView.getIsReferenceable();
 74  0
             this.cluSets = new ArrayList<CluSetTreeViewInfo>();
 75  0
             for (CluSetTreeView cluSetTreeView1 : cluSetTreeView.getCluSets()) {
 76  0
                 this.cluSets.add(new CluSetTreeViewInfo(cluSetTreeView1));
 77  
             }
 78  0
             this.clus = new ArrayList<CluInfo>();
 79  0
             for (Clu clu : cluSetTreeView.getClus()) {
 80  0
                 this.clus.add(new CluInfo(clu));
 81  
             }
 82  0
             this.effectiveDate = (null != cluSetTreeView.getEffectiveDate()) ? new Date(cluSetTreeView.getEffectiveDate().getTime()) : null;
 83  0
             this.expirationDate = (null != cluSetTreeView.getExpirationDate()) ? new Date(cluSetTreeView.getExpirationDate().getTime()) : null;
 84  
         }
 85  0
     }
 86  
 
 87  
     @Override
 88  
     public String getAdminOrg() {
 89  0
         return adminOrg;
 90  
     }
 91  
 
 92  
     public void setAdminOrg(String adminOrg) {
 93  0
         this.adminOrg = adminOrg;
 94  0
     }
 95  
 
 96  
     @Override
 97  
     public Boolean getIsReusable() {
 98  0
         return isReusable;
 99  
     }
 100  
 
 101  
     public void setIsReusable(Boolean isReusable) {
 102  0
         this.isReusable = isReusable;
 103  0
     }
 104  
 
 105  
     @Override
 106  
     public Boolean getIsReferenceable() {
 107  0
         return isReferenceable;
 108  
     }
 109  
 
 110  
     public void setIsReferenceable(Boolean isReferenceable) {
 111  0
         this.isReferenceable = isReferenceable;
 112  0
     }
 113  
 
 114  
     @Override
 115  
     public List<CluSetTreeViewInfo> getCluSets() {
 116  0
         return cluSets;
 117  
     }
 118  
 
 119  
     public void setCluSets(List<CluSetTreeViewInfo> cluSets) {
 120  0
         this.cluSets = cluSets;
 121  0
     }
 122  
 
 123  
     @Override
 124  
     public List<CluInfo> getClus() {
 125  0
         return clus;
 126  
     }
 127  
 
 128  
     public void setClus(List<CluInfo> clus) {
 129  0
         this.clus = clus;
 130  0
     }
 131  
 
 132  
     @Override
 133  
     public Date getEffectiveDate() {
 134  0
         return effectiveDate;
 135  
     }
 136  
 
 137  
     public void setEffectiveDate(Date effectiveDate) {
 138  0
         this.effectiveDate = effectiveDate;
 139  0
     }
 140  
 
 141  
     @Override
 142  
     public Date getExpirationDate() {
 143  0
         return expirationDate;
 144  
     }
 145  
 
 146  
     public void setExpirationDate(Date expirationDate) {
 147  0
         this.expirationDate = expirationDate;
 148  0
     }
 149  
 }