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  
 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.apache.commons.lang.StringUtils
 20  
 import org.kuali.rice.kim.bo.Person
 21  
 import org.kuali.rice.kim.impl.group.GroupBo
 22  
 import org.kuali.rice.kim.util.KimConstants
 23  
 import org.springframework.util.AutoPopulatingList
 24  
 
 25  
 import org.kuali.rice.kim.impl.role.RoleBo
 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