001/** 002 * Copyright 2005-2018 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.rice.kns.kim.role; 017 018import org.apache.commons.lang.StringUtils; 019import org.kuali.rice.core.api.exception.RiceIllegalArgumentException; 020import org.kuali.rice.kim.api.role.RoleMembership; 021 022import java.util.Collections; 023import java.util.List; 024import java.util.Map; 025 026/** 027 * This is the base class for all derived role type services 028 * 029 * @author Kuali Rice Team (rice.collab@kuali.org) 030 * 031 * @deprecated A krad integrated type service base class will be provided in the future. 032 */ 033@Deprecated 034public class DerivedRoleTypeServiceBase extends RoleTypeServiceBase { 035 036 @Override 037 public List<RoleMembership> getRoleMembersFromDerivedRole(String namespaceCode, String roleName, Map<String, String> qualification) { 038 if (StringUtils.isBlank(namespaceCode)) { 039 throw new RiceIllegalArgumentException("namespaceCode was null or blank"); 040 } 041 042 if (roleName == null) { 043 throw new RiceIllegalArgumentException("roleName was null"); 044 } 045 046 return Collections.emptyList(); 047 } 048 049 /** 050 * @see RoleTypeServiceBase#isDerivedRoleType() 051 */ 052 @Override 053 public boolean isDerivedRoleType() { 054 return true; 055 } 056 057}