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