| 1 |  |  package org.kuali.rice.kim.impl.responsibility | 
  | 2 |  |   | 
  | 3 |  |   | 
  | 4 |  |   | 
  | 5 |  |   | 
  | 6 |  |   | 
  | 7 |  |   | 
  | 8 |  |   | 
  | 9 |  |   | 
  | 10 |  |   | 
  | 11 |  |   | 
  | 12 |  |   | 
  | 13 |  |   | 
  | 14 |  |   | 
  | 15 |  |   | 
  | 16 |  |   | 
  | 17 |  |   | 
  | 18 |  |   | 
  | 19 |  |  import org.kuali.rice.kim.util.KimConstants | 
  | 20 |  |   | 
  | 21 |  |   | 
  | 22 |  |  class ReviewResponsibilityBo extends ResponsibilityBo { | 
  | 23 |  |   | 
  | 24 |  |      private static final long serialVersionUID = 1L | 
  | 25 |  |   | 
  | 26 |  |      public static final String ACTION_DETAILS_AT_ROLE_MEMBER_LEVEL_FIELD_NAME = "actionDetailsAtRoleMemberLevel" | 
  | 27 |  |   | 
  | 28 |  |      String documentTypeName | 
  | 29 |  |      String routeNodeName | 
  | 30 |  |      boolean actionDetailsAtRoleMemberLevel | 
  | 31 |  |      boolean required | 
  | 32 |  |      String qualifierResolverProvidedIdentifier | 
  | 33 |  |   | 
  | 34 |  |      public ReviewResponsibilityBo() { | 
  | 35 |  |      } | 
  | 36 |  |   | 
  | 37 |  |      public ReviewResponsibilityBo(ResponsibilityBo resp) { | 
  | 38 | 0 |          loadFromKimResponsibility(resp) | 
  | 39 |  |      } | 
  | 40 |  |   | 
  | 41 |  |      public void loadFromKimResponsibility(ResponsibilityBo resp) { | 
  | 42 | 0 |          resp.metaClass.properties.each { | 
  | 43 | 0 |              if (this.metaClass.respondsTo(this, MetaProperty.getSetterName(it.name))) { | 
  | 44 | 0 |                  this.setProperty(it.name, resp.getProperty(it.name)) | 
  | 45 |  |              } | 
  | 46 |  |          } | 
  | 47 |  |   | 
  | 48 | 0 |          Map<String,String> respDetails = resp.getAttributes() | 
  | 49 | 0 |          documentTypeName = respDetails.get(KimConstants.AttributeConstants.DOCUMENT_TYPE_NAME) | 
  | 50 | 0 |          routeNodeName = respDetails.get(KimConstants.AttributeConstants.ROUTE_NODE_NAME) | 
  | 51 | 0 |          actionDetailsAtRoleMemberLevel = Boolean.valueOf(respDetails.get(KimConstants.AttributeConstants.ACTION_DETAILS_AT_ROLE_MEMBER_LEVEL)) | 
  | 52 | 0 |          required = Boolean.valueOf(respDetails.get(KimConstants.AttributeConstants.REQUIRED)) | 
  | 53 | 0 |          qualifierResolverProvidedIdentifier = respDetails.get(KimConstants.AttributeConstants.QUALIFIER_RESOLVER_PROVIDED_IDENTIFIER) | 
  | 54 |  |      } | 
  | 55 |  |  } |