Coverage Report - org.kuali.rice.kns.kim.role.DerivedRoleTypeServiceBase
 
Classes in this File Line Coverage Branch Coverage Complexity
DerivedRoleTypeServiceBase
0%
0/7
0%
0/4
3
 
 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.kns.kim.role;
 17  
 
 18  
 import org.apache.commons.lang.StringUtils;
 19  
 import org.kuali.rice.core.api.exception.RiceIllegalArgumentException;
 20  
 import org.kuali.rice.kim.api.role.RoleMembership;
 21  
 
 22  
 import java.util.Collections;
 23  
 import java.util.List;
 24  
 import java.util.Map;
 25  
 
 26  
 /**
 27  
  * This is the base class for all derived role type services 
 28  
  * 
 29  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 30  
  *
 31  
  * @deprecated A krad integrated type service base class will be provided in the future.
 32  
  */
 33  
 @Deprecated
 34  0
 public class DerivedRoleTypeServiceBase extends RoleTypeServiceBase {
 35  
 
 36  
         @Override
 37  
         public List<RoleMembership> getRoleMembersFromApplicationRole(String namespaceCode, String roleName, Map<String, String> qualification) {
 38  0
         if (StringUtils.isBlank(namespaceCode)) {
 39  0
             throw new RiceIllegalArgumentException("namespaceCode was null or blank");
 40  
         }
 41  
 
 42  0
         if (roleName == null) {
 43  0
             throw new RiceIllegalArgumentException("roleName was null");
 44  
         }
 45  
 
 46  0
         return Collections.emptyList();
 47  
         }
 48  
 
 49  
         /**
 50  
          * @see RoleTypeServiceBase#isApplicationRoleType()
 51  
          */
 52  
         @Override
 53  
         public boolean isApplicationRoleType() {
 54  0
                 return true;
 55  
         }
 56  
 
 57  
 }