Coverage Report - org.kuali.rice.kim.impl.responsibility.ReviewResponsibilityBo
 
Classes in this File Line Coverage Branch Coverage Complexity
ReviewResponsibilityBo
0%
0/8
N/A
0
ReviewResponsibilityBo$_loadFromKimResponsibility_closure1
0%
0/2
0%
0/2
0
 
 1  
 package org.kuali.rice.kim.impl.responsibility
 2  
 
 3  
 /*
 4  
  * Copyright 2007-2009 The Kuali Foundation
 5  
  *
 6  
  * Licensed under the Educational Community License, Version 2.0 (the "License")
 7  
  * you may not use this file except in compliance with the License.
 8  
  * You may obtain a copy of the License at
 9  
  *
 10  
  * http://www.opensource.org/licenses/ecl2.php
 11  
  *
 12  
  * Unless required by applicable law or agreed to in writing, software
 13  
  * distributed under the License is distributed on an "AS IS" BASIS,
 14  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 15  
  * See the License for the specific language governing permissions and
 16  
  * limitations under the License.
 17  
  */
 18  
 
 19  
 import org.kuali.rice.kim.util.KimConstants
 20  
 
 21  
 //strange - hacky non-PBO
 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  
 }