Coverage Report - org.kuali.rice.kim.framework.identity.employment.EntityEmploymentStatusEbo
 
Classes in this File Line Coverage Branch Coverage Complexity
EntityEmploymentStatusEbo
0%
0/11
0%
0/8
0
 
 1  
 /**
 2  
  * Copyright 2005-2011 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl2.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 implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.rice.kim.framework.identity.employment
 17  
 
 18  
 import javax.persistence.Column
 19  
 import javax.persistence.Entity
 20  
 import javax.persistence.Id
 21  
 import javax.persistence.Table
 22  
 import org.kuali.rice.kim.api.identity.CodedAttribute
 23  
 import org.kuali.rice.kim.api.identity.CodedAttributeContract
 24  
 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase
 25  
 
 26  
 public class EntityEmploymentStatusEbo extends PersistableBusinessObjectBase implements CodedAttributeContract {
 27  
     String code;
 28  
     String name;
 29  
     boolean active;
 30  
     String sortCode;
 31  
 
 32  
 
 33  
     /**
 34  
    * Converts a mutable EmploymentStatusEbo to an immutable EmploymentStatus representation.
 35  
    * @param bo
 36  
    * @return an immutable EmploymentStatus
 37  
    */
 38  
   static CodedAttribute to(EntityEmploymentStatusEbo bo) {
 39  0
     if (bo == null) { return null }
 40  0
     return CodedAttribute.Builder.create(bo).build()
 41  
   }
 42  
 
 43  
   /**
 44  
    * Creates a EmploymentStatus business object from an immutable representation of a EmploymentStatus.
 45  
    * @param an immutable EmploymentStatus
 46  
    * @return a EmploymentStatusBo
 47  
    */
 48  
   static EntityEmploymentStatusEbo from(CodedAttribute immutable) {
 49  0
     if (immutable == null) {return null}
 50  
 
 51  0
     EntityEmploymentStatusEbo bo = new EntityEmploymentStatusEbo()
 52  0
     bo.code = immutable.code
 53  0
     bo.name = immutable.name
 54  0
     bo.sortCode = immutable.sortCode
 55  0
     bo.active = immutable.active
 56  0
     bo.versionNumber = immutable.versionNumber
 57  0
     bo.objectId = immutable.objectId
 58  
 
 59  0
     return bo;
 60  
   }
 61  
 
 62  
   void refresh() { }
 63  
 }