Coverage Report - org.kuali.rice.kim.bo.impl.ResponsibilityImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
ResponsibilityImpl
0%
0/43
0%
0/2
1.038
 
 1  
 /*
 2  
  * Copyright 2007-2009 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.bo.impl;
 17  
 
 18  
 import java.util.List;
 19  
 
 20  
 import org.apache.commons.lang.StringUtils;
 21  
 import org.kuali.rice.kim.bo.Person;
 22  
 import org.kuali.rice.kim.bo.role.impl.KimResponsibilityImpl;
 23  
 import org.kuali.rice.kim.util.KimConstants;
 24  
 import org.kuali.rice.kns.util.TypedArrayList;
 25  
 
 26  
 /**
 27  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 28  
  */
 29  0
 public class ResponsibilityImpl extends KimResponsibilityImpl {
 30  
 
 31  
         private static final long serialVersionUID = 1L;
 32  
         
 33  0
         List<RoleImpl> assignedToRoles = new TypedArrayList(RoleImpl.class);
 34  
         
 35  
         protected String assignedToRoleNamespaceForLookup;
 36  
         protected String assignedToRoleNameForLookup;
 37  
         protected RoleImpl assignedToRole;
 38  
         protected String assignedToPrincipalNameForLookup;
 39  
         protected Person assignedToPrincipal;
 40  
         protected String assignedToGroupNamespaceForLookup;
 41  
         protected String assignedToGroupNameForLookup;
 42  
         protected GroupImpl assignedToGroup;
 43  
         protected String attributeName;
 44  
         protected String attributeValue;
 45  
         protected String detailCriteria;
 46  
         
 47  
         /**
 48  
          * @return the assignedToRoles
 49  
          */
 50  
         public String getAssignedToRolesToDisplay() {
 51  0
                 StringBuffer assignedToRolesToDisplay = new StringBuffer();
 52  0
                 for(RoleImpl roleImpl: assignedToRoles){
 53  0
                         assignedToRolesToDisplay.append(getRoleDetailsToDisplay(roleImpl));
 54  
                 }
 55  0
                 return StringUtils.chomp( assignedToRolesToDisplay.toString(), KimConstants.KimUIConstants.COMMA_SEPARATOR);
 56  
         }
 57  
 
 58  
         public String getRoleDetailsToDisplay(RoleImpl roleImpl){
 59  0
                 return roleImpl.getNamespaceCode().trim()+" "+roleImpl.getRoleName().trim()+KimConstants.KimUIConstants.COMMA_SEPARATOR;
 60  
         }
 61  
         
 62  
         /**
 63  
          * @return the assignedToGroupNameForLookup
 64  
          */
 65  
         public String getAssignedToGroupNameForLookup() {
 66  0
                 return this.assignedToGroupNameForLookup;
 67  
         }
 68  
 
 69  
         /**
 70  
          * @param assignedToGroupNameForLookup the assignedToGroupNameForLookup to set
 71  
          */
 72  
         public void setAssignedToGroupNameForLookup(String assignedToGroupNameForLookup) {
 73  0
                 this.assignedToGroupNameForLookup = assignedToGroupNameForLookup;
 74  0
         }
 75  
 
 76  
         /**
 77  
          * @return the assignedToGroupNamespaceForLookup
 78  
          */
 79  
         public String getAssignedToGroupNamespaceForLookup() {
 80  0
                 return this.assignedToGroupNamespaceForLookup;
 81  
         }
 82  
 
 83  
         /**
 84  
          * @param assignedToGroupNamespaceForLookup the assignedToGroupNamespaceForLookup to set
 85  
          */
 86  
         public void setAssignedToGroupNamespaceForLookup(
 87  
                         String assignedToGroupNamespaceForLookup) {
 88  0
                 this.assignedToGroupNamespaceForLookup = assignedToGroupNamespaceForLookup;
 89  0
         }
 90  
 
 91  
         /**
 92  
          * @return the assignedToPrincipalNameForLookup
 93  
          */
 94  
         public String getAssignedToPrincipalNameForLookup() {
 95  0
                 return this.assignedToPrincipalNameForLookup;
 96  
         }
 97  
 
 98  
         /**
 99  
          * @param assignedToPrincipalNameForLookup the assignedToPrincipalNameForLookup to set
 100  
          */
 101  
         public void setAssignedToPrincipalNameForLookup(
 102  
                         String assignedToPrincipalNameForLookup) {
 103  0
                 this.assignedToPrincipalNameForLookup = assignedToPrincipalNameForLookup;
 104  0
         }
 105  
 
 106  
         /**
 107  
          * @return the assignedToRoleNameForLookup
 108  
          */
 109  
         public String getAssignedToRoleNameForLookup() {
 110  0
                 return this.assignedToRoleNameForLookup;
 111  
         }
 112  
 
 113  
         /**
 114  
          * @param assignedToRoleNameForLookup the assignedToRoleNameForLookup to set
 115  
          */
 116  
         public void setAssignedToRoleNameForLookup(String assignedToRoleNameForLookup) {
 117  0
                 this.assignedToRoleNameForLookup = assignedToRoleNameForLookup;
 118  0
         }
 119  
 
 120  
         /**
 121  
          * @return the assignedToRoleNamespaceForLookup
 122  
          */
 123  
         public String getAssignedToRoleNamespaceForLookup() {
 124  0
                 return this.assignedToRoleNamespaceForLookup;
 125  
         }
 126  
 
 127  
         /**
 128  
          * @param assignedToRoleNamespaceForLookup the assignedToRoleNamespaceForLookup to set
 129  
          */
 130  
         public void setAssignedToRoleNamespaceForLookup(
 131  
                         String assignedToRoleNamespaceForLookup) {
 132  0
                 this.assignedToRoleNamespaceForLookup = assignedToRoleNamespaceForLookup;
 133  0
         }
 134  
 
 135  
         /**
 136  
          * @return the attributeValue
 137  
          */
 138  
         public String getAttributeValue() {
 139  0
                 return this.attributeValue;
 140  
         }
 141  
 
 142  
         /**
 143  
          * @param attributeValue the attributeValue to set
 144  
          */
 145  
         public void setAttributeValue(String attributeValue) {
 146  0
                 this.attributeValue = attributeValue;
 147  0
         }
 148  
 
 149  
         /**
 150  
          * @return the assignedToRoles
 151  
          */
 152  
         public List<RoleImpl> getAssignedToRoles() {
 153  0
                 return this.assignedToRoles;
 154  
         }
 155  
 
 156  
         /**
 157  
          * @param assignedToRoles the assignedToRoles to set
 158  
          */
 159  
         public void setAssignedToRoles(List<RoleImpl> assignedToRoles) {
 160  0
                 this.assignedToRoles = assignedToRoles;
 161  0
         }
 162  
 
 163  
         /**
 164  
          * @return the assignedToGroup
 165  
          */
 166  
         public GroupImpl getAssignedToGroup() {
 167  0
                 return this.assignedToGroup;
 168  
         }
 169  
 
 170  
         /**
 171  
          * @param assignedToGroup the assignedToGroup to set
 172  
          */
 173  
         public void setAssignedToGroup(GroupImpl assignedToGroup) {
 174  0
                 this.assignedToGroup = assignedToGroup;
 175  0
         }
 176  
 
 177  
         /**
 178  
          * @return the assignedToPrincipal
 179  
          */
 180  
         public Person getAssignedToPrincipal() {
 181  0
                 return this.assignedToPrincipal;
 182  
         }
 183  
 
 184  
         /**
 185  
          * @param assignedToPrincipal the assignedToPrincipal to set
 186  
          */
 187  
         public void setAssignedToPrincipal(Person assignedToPrincipal) {
 188  0
                 this.assignedToPrincipal = assignedToPrincipal;
 189  0
         }
 190  
 
 191  
         /**
 192  
          * @return the assignedToRole
 193  
          */
 194  
         public RoleImpl getAssignedToRole() {
 195  0
                 return this.assignedToRole;
 196  
         }
 197  
 
 198  
         /**
 199  
          * @param assignedToRole the assignedToRole to set
 200  
          */
 201  
         public void setAssignedToRole(RoleImpl assignedToRole) {
 202  0
                 this.assignedToRole = assignedToRole;
 203  0
         }
 204  
 
 205  
         /**
 206  
          * @return the detailCriteria
 207  
          */
 208  
         public String getDetailCriteria() {
 209  0
                 return this.detailCriteria;
 210  
         }
 211  
 
 212  
         /**
 213  
          * @param detailCriteria the detailCriteria to set
 214  
          */
 215  
         public void setDetailCriteria(String detailCriteria) {
 216  0
                 this.detailCriteria = detailCriteria;
 217  0
         }
 218  
 
 219  
         /**
 220  
          * @return the attributeName
 221  
          */
 222  
         public String getAttributeName() {
 223  0
                 return this.attributeName;
 224  
         }
 225  
 
 226  
         /**
 227  
          * @param attributeName the attributeName to set
 228  
          */
 229  
         public void setAttributeName(String attributeName) {
 230  0
                 this.attributeName = attributeName;
 231  0
         }
 232  
 
 233  
 }