|  1 |     | 
     | 
  |  2 |     | 
     | 
  |  3 |     | 
     | 
  |  4 |     | 
     | 
  |  5 |     | 
     | 
  |  6 |     | 
     | 
  |  7 |     | 
     | 
  |  8 |     | 
     | 
  |  9 |     | 
     | 
  |  10 |     | 
     | 
  |  11 |     | 
     | 
  |  12 |     | 
     | 
  |  13 |     | 
     | 
  |  14 |     | 
     | 
  |  15 |     | 
     | 
  |  16 |     | 
     | 
  |  17 |     | 
   package org.kuali.rice.core.framework.component  | 
  |  18 |     | 
     | 
  |  19 |     | 
   import org.kuali.rice.core.api.component.Component  | 
  |  20 |     | 
   import org.kuali.rice.core.api.component.ComponentContract  | 
  |  21 |     | 
   import org.kuali.rice.kns.bo.ExternalizableBusinessObject  | 
  |  22 |     | 
   import org.kuali.rice.kns.bo.Inactivateable  | 
  |  23 |     | 
     | 
  |  24 |     | 
   class ComponentEbo implements ComponentContract, Inactivateable, ExternalizableBusinessObject { | 
  |  25 |     | 
     | 
  |  26 |     | 
       private static final long serialVersionUID = 1L;  | 
  |  27 |     | 
     | 
  |  28 |     | 
       def String namespaceCode  | 
  |  29 |     | 
           def String code  | 
  |  30 |     | 
           def String name  | 
  |  31 |     | 
           def boolean active = true  | 
  |  32 |     | 
           def boolean virtual  | 
  |  33 |     | 
       def Long versionNumber  | 
  |  34 |     | 
           def String objectId  | 
  |  35 |     | 
     | 
  |  36 |     | 
         | 
  |  37 |     | 
     | 
  |  38 |     | 
     | 
  |  39 |     | 
     | 
  |  40 |     | 
     | 
  |  41 |     | 
       static Component to(ComponentEbo bo) { | 
  |  42 |    0 |            if (bo == null) { | 
  |  43 |    0 |                return null  | 
  |  44 |     | 
           }  | 
  |  45 |     | 
     | 
  |  46 |    0 |            return Component.Builder.create(bo).build();  | 
  |  47 |     | 
       }  | 
  |  48 |     | 
     | 
  |  49 |     | 
         | 
  |  50 |     | 
     | 
  |  51 |     | 
     | 
  |  52 |     | 
     | 
  |  53 |     | 
     | 
  |  54 |     | 
       static ComponentEbo from(Component im) { | 
  |  55 |    0 |            if (im == null) { | 
  |  56 |    0 |                return null  | 
  |  57 |     | 
           }  | 
  |  58 |     | 
     | 
  |  59 |    0 |            ComponentEbo bo = new ComponentEbo()  | 
  |  60 |    0 |            bo.code = im.code  | 
  |  61 |    0 |            bo.name = im.name  | 
  |  62 |    0 |            bo.active = im.active  | 
  |  63 |    0 |            bo.namespaceCode = im.namespaceCode  | 
  |  64 |    0 |            bo.virtual = im.virtual  | 
  |  65 |    0 |                    bo.objectId = im.objectId  | 
  |  66 |    0 |            return bo;  | 
  |  67 |     | 
       }  | 
  |  68 |     | 
     | 
  |  69 |     | 
       @Override  | 
  |  70 |     | 
       void refresh() { } | 
  |  71 |     | 
   }  |