Coverage Report - org.kuali.student.r2.core.organization.dto.OrgHierarchyInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
OrgHierarchyInfo
0%
0/15
0%
0/2
1.125
 
 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  
 package org.kuali.student.r2.core.organization.dto;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.Date;
 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.core.organization.infc.OrgHierarchy;
 29  
 import org.kuali.student.r2.common.dto.IdEntityInfo;
 30  
 import org.w3c.dom.Element;
 31  
 
 32  
 /**
 33  
  * Information for an organization hierarchy.
 34  
  *
 35  
  * @author tom
 36  
  */
 37  
 @XmlAccessorType(XmlAccessType.FIELD)
 38  
 @XmlType(name = "OrgHierarchyInfo", propOrder = {
 39  
     "id", "typeKey", "stateKey", "name", "descr",
 40  
     "rootOrgId",
 41  
     "effectiveDate",
 42  
     "expirationDate",
 43  
     "meta", "attributes", "_futureElements"})
 44  
 public class OrgHierarchyInfo
 45  
         extends IdEntityInfo
 46  
         implements OrgHierarchy, Serializable {
 47  
 
 48  
     private static final long serialVersionUID = 1L;
 49  
     @XmlElement
 50  
     private String rootOrgId;
 51  
     @XmlElement
 52  
     private Date effectiveDate;
 53  
     @XmlElement
 54  
     private Date expirationDate;
 55  
     @XmlAnyElement
 56  
     private List<Element> _futureElements;
 57  
 
 58  
     /**
 59  
      * Constructs a new OrgHierarchyInfo.
 60  
      */
 61  0
     public OrgHierarchyInfo() {
 62  0
     }
 63  
 
 64  
     /**
 65  
      * Constructs a new OrgHierarchyInfo from an OrgHierarchy.
 66  
      *
 67  
      * @param orgHierarchy the OrgHierarchy to copy
 68  
      */
 69  
     public OrgHierarchyInfo(OrgHierarchy orgHierarchy) {
 70  0
         super(orgHierarchy);
 71  
 
 72  0
         if (orgHierarchy != null) {
 73  0
             this.rootOrgId = orgHierarchy.getRootOrgId();
 74  
         }
 75  0
     }
 76  
 
 77  
     @Override
 78  
     public String getRootOrgId() {
 79  0
         return rootOrgId;
 80  
     }
 81  
 
 82  
     public void setRootOrgId(String rootOrgId) {
 83  0
         this.rootOrgId = rootOrgId;
 84  0
     }
 85  
 
 86  
     @Override
 87  
     public Date getEffectiveDate() {
 88  0
         return effectiveDate;
 89  
     }
 90  
 
 91  
     public void setEffectiveDate(Date effectiveDate) {
 92  0
         this.effectiveDate = effectiveDate;
 93  0
     }
 94  
 
 95  
     @Override
 96  
     public Date getExpirationDate() {
 97  0
         return expirationDate;
 98  
     }
 99  
 
 100  
     public void setExpirationDate(Date expirationDate) {
 101  0
         this.expirationDate = expirationDate;
 102  0
     }
 103  
 }