Coverage Report - org.kuali.rice.kim.impl.responsibility.UberResponsibilityBo
 
Classes in this File Line Coverage Branch Coverage Complexity
UberResponsibilityBo
0%
0/6
0%
0/2
0
 
 1  
 /**
 2  
  * Copyright 2005-2011 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl2.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.rice.kim.impl.responsibility
 17  
 
 18  
 
 19  
 
 20  
 import org.apache.commons.lang.StringUtils
 21  
 import org.kuali.rice.kim.api.KimConstants
 22  
 import org.kuali.rice.kim.api.identity.Person
 23  
 import org.kuali.rice.kim.impl.group.GroupBo
 24  
 import org.kuali.rice.kim.impl.role.RoleBo
 25  
 import org.springframework.util.AutoPopulatingList
 26  
 
 27  
 //strange - hacky non-PBO
 28  
 class UberResponsibilityBo extends ResponsibilityBo {
 29  
 
 30  
     private static final long serialVersionUID = 1L
 31  
 
 32  0
     List<RoleBo> assignedToRoles = new AutoPopulatingList(RoleBo.class)
 33  
     String assignedToRoleNamespaceForLookup
 34  
     String assignedToRoleNameForLookup
 35  
     RoleBo assignedToRole
 36  
     String assignedToPrincipalNameForLookup
 37  
     Person assignedToPrincipal
 38  
     String assignedToGroupNamespaceForLookup
 39  
     String assignedToGroupNameForLookup
 40  
     GroupBo assignedToGroup
 41  
     String attributeName
 42  
     String attributeValue
 43  
     String detailCriteria
 44  
 
 45  
     public String getAssignedToRolesToDisplay() {
 46  0
         StringBuffer assignedToRolesToDisplay = new StringBuffer()
 47  0
         for (RoleBo roleImpl: assignedToRoles) {
 48  0
             assignedToRolesToDisplay.append(getRoleDetailsToDisplay(roleImpl))
 49  
         }
 50  0
         return StringUtils.chomp(assignedToRolesToDisplay.toString(), KimConstants.KimUIConstants.COMMA_SEPARATOR)
 51  
     }
 52  
 
 53  
     public String getRoleDetailsToDisplay(RoleBo roleImpl) {
 54  0
         return roleImpl.getNamespaceCode().trim() + " " + roleImpl.getName().trim() + KimConstants.KimUIConstants.COMMA_SEPARATOR
 55  
     }
 56  
 }
 57