001/** 002 * Copyright 2005-2017 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.kim.inquiry; 017 018import java.util.HashMap; 019import java.util.Map; 020 021import org.kuali.rice.kim.bo.impl.KimAttributes; 022import org.kuali.rice.kim.impl.role.RoleBo; 023import org.kuali.rice.kns.inquiry.KualiInquirableImpl; 024import org.kuali.rice.kns.service.KNSServiceLocator; 025import org.kuali.rice.krad.service.BusinessObjectService; 026import org.kuali.rice.krad.service.KRADServiceLocatorWeb; 027 028/** 029 * This is a description of what this class does - bhargavp don't forget to fill this in. 030 * 031 * @author Kuali Rice Team (rice.collab@kuali.org) 032 * 033 */ 034public class RoleMemberInquirableImpl extends KualiInquirableImpl { 035 036 protected final String ROLE_ID = "id"; 037 038 private BusinessObjectService businessObjectService; 039 040// protected RoleBo getRoleImpl(String roleId){ 041// Map<String, String> criteria = new HashMap<String, String>(); 042// criteria.put("id", roleId); 043// return getBusinessObjectService().findByPrimaryKey(RoleBo.class, criteria); 044// } 045// 046 047 public BusinessObjectService getBusinessObjectService() { 048 if(businessObjectService == null){ 049 return KNSServiceLocator.getBusinessObjectService(); 050 } 051 return businessObjectService; 052 } 053 054 public void setBusinessObjectService(BusinessObjectService businessObjectService) { 055 this.businessObjectService = businessObjectService; 056 } 057 058}