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.core.api.mo.common.Attributes
 20  
 import org.kuali.rice.kim.util.KimConstants
 21  
 
 22  
 //strange - hacky non-PBO
 23  
 class ReviewResponsibilityBo extends ResponsibilityBo {
 24  
 
 25  
     private static final long serialVersionUID = 1L
 26  
 
 27  
     public static final String ACTION_DETAILS_AT_ROLE_MEMBER_LEVEL_FIELD_NAME = "actionDetailsAtRoleMemberLevel"
 28  
 
 29  
     String documentTypeName
 30  
     String routeNodeName
 31  
     boolean actionDetailsAtRoleMemberLevel
 32  
     boolean required
 33  
     String qualifierResolverProvidedIdentifier
 34  
 
 35  
     public ReviewResponsibilityBo() {
 36  
     }
 37  
 
 38  
     public ReviewResponsibilityBo(ResponsibilityBo resp) {
 39  0
         loadFromKimResponsibility(resp)
 40  
     }
 41  
 
 42  
     public void loadFromKimResponsibility(ResponsibilityBo resp) {
 43  0
         resp.metaClass.properties.each {
 44  0
             if (this.metaClass.respondsTo(this, MetaProperty.getSetterName(it.name))) {
 45  0
                 this.setProperty(it.name, resp.getProperty(it.name))
 46  
             }
 47  
         }
 48  
 
 49  0
         Attributes respDetails = resp.getAttributes()
 50  0
         documentTypeName = respDetails.get(KimConstants.AttributeConstants.DOCUMENT_TYPE_NAME)
 51  0
         routeNodeName = respDetails.get(KimConstants.AttributeConstants.ROUTE_NODE_NAME)
 52  0
         actionDetailsAtRoleMemberLevel = Boolean.valueOf(respDetails.get(KimConstants.AttributeConstants.ACTION_DETAILS_AT_ROLE_MEMBER_LEVEL))
 53  0
         required = Boolean.valueOf(respDetails.get(KimConstants.AttributeConstants.REQUIRED))
 54  0
         qualifierResolverProvidedIdentifier = respDetails.get(KimConstants.AttributeConstants.QUALIFIER_RESOLVER_PROVIDED_IDENTIFIER)
 55  
     }
 56  
 }