Coverage Report - org.kuali.rice.kim.framework.role.RoleEbo
 
Classes in this File Line Coverage Branch Coverage Complexity
RoleEbo
0%
0/5
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.role
 17  
 
 18  
 import org.kuali.rice.kim.api.role.Role
 19  
 import org.kuali.rice.kim.api.role.RoleContract
 20  
 import org.kuali.rice.krad.bo.ExternalizableBusinessObject
 21  
 
 22  
 class RoleEbo implements RoleContract, ExternalizableBusinessObject {
 23  
     private static final long serialVersionUID = 1L;
 24  
 
 25  
     String id;
 26  
     String name;
 27  
     String description;
 28  
     boolean active;
 29  
     String kimTypeId;
 30  
     String namespaceCode;
 31  
     Long versionNumber
 32  
     String objectId
 33  
 
 34  
     static Role to(RoleEbo ebo) {
 35  0
         if (ebo == null) { return null}
 36  0
         return Role.Builder.create(ebo).build();
 37  
     }
 38  
 
 39  
     static RoleEbo from(Role im) {
 40  0
         if (im == null) {return null}
 41  0
         RoleEbo ebo = new RoleEbo(
 42  
                 id: im.id,
 43  
                 name: im.name,
 44  
                 description: im.description,
 45  
                 active : im.active,
 46  
                 kimTypeId : im.kimTypeId,
 47  
                 namespaceCode : im.namespaceCode,
 48  
                 versionNumber : im.versionNumber,
 49  
                 objectId : im.objectId
 50  
         )
 51  0
         return ebo;
 52  
     }
 53  
 
 54  
     void refresh() {}
 55  
 }