Coverage Report - org.kuali.rice.kim.impl.responsibility.ReviewResponsibilityBo
 
Classes in this File Line Coverage Branch Coverage Complexity
ReviewResponsibilityBo
0%
0/12
N/A
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  
 import org.kuali.rice.kns.bo.BusinessObject
 22  
 
 23  
 class ReviewResponsibilityBo implements BusinessObject {
 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 responsibilityId
 30  
     String namespaceCode
 31  
     String name
 32  
     String description
 33  
     boolean active
 34  
 
 35  
     String documentTypeName
 36  
     String routeNodeName
 37  
     boolean actionDetailsAtRoleMemberLevel
 38  
     boolean required
 39  
     String qualifierResolverProvidedIdentifier
 40  
 
 41  
     public ReviewResponsibilityBo() {
 42  
     }
 43  
 
 44  
     public ReviewResponsibilityBo(ResponsibilityBo resp) {
 45  0
         loadFromKimResponsibility(resp)
 46  
     }
 47  
 
 48  
     public void loadFromKimResponsibility(ResponsibilityBo resp) {
 49  0
         setResponsibilityId(resp.getId())
 50  0
         setNamespaceCode(resp.getNamespaceCode())
 51  0
         setName(resp.getName())
 52  0
         setDescription(resp.getDescription())
 53  0
         setActive(resp.isActive())
 54  0
         Attributes respDetails = resp.getAttributes()
 55  0
         setDocumentTypeName(respDetails.get(KimConstants.AttributeConstants.DOCUMENT_TYPE_NAME))
 56  0
         setRouteNodeName(respDetails.get(KimConstants.AttributeConstants.ROUTE_NODE_NAME))
 57  0
         setActionDetailsAtRoleMemberLevel(Boolean.valueOf(respDetails.get(KimConstants.AttributeConstants.ACTION_DETAILS_AT_ROLE_MEMBER_LEVEL)))
 58  0
         setRequired(Boolean.valueOf(respDetails.get(KimConstants.AttributeConstants.REQUIRED)))
 59  0
         setQualifierResolverProvidedIdentifier(respDetails.get(KimConstants.AttributeConstants.QUALIFIER_RESOLVER_PROVIDED_IDENTIFIER))
 60  
     }
 61  
 
 62  
     public void refresh() {
 63  
     }
 64  
 }