1 /**
2 * Copyright 2005-2014 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.inquiry;
17
18 import java.util.HashMap;
19 import java.util.Map;
20
21 import org.kuali.rice.kim.bo.impl.KimAttributes;
22 import org.kuali.rice.kim.impl.role.RoleBo;
23 import org.kuali.rice.kns.inquiry.KualiInquirableImpl;
24 import org.kuali.rice.kns.service.KNSServiceLocator;
25 import org.kuali.rice.krad.service.BusinessObjectService;
26 import org.kuali.rice.krad.service.KRADServiceLocatorWeb;
27
28 /**
29 * This is a description of what this class does - bhargavp don't forget to fill this in.
30 *
31 * @author Kuali Rice Team (rice.collab@kuali.org)
32 *
33 */
34 public class RoleMemberInquirableImpl extends KualiInquirableImpl {
35
36 protected final String ROLE_ID = "id";
37
38 private BusinessObjectService businessObjectService;
39
40 // protected RoleBo getRoleImpl(String roleId){
41 // Map<String, String> criteria = new HashMap<String, String>();
42 // criteria.put("id", roleId);
43 // return getBusinessObjectService().findByPrimaryKey(RoleBo.class, criteria);
44 // }
45 //
46
47 public BusinessObjectService getBusinessObjectService() {
48 if(businessObjectService == null){
49 return KNSServiceLocator.getBusinessObjectService();
50 }
51 return businessObjectService;
52 }
53
54 public void setBusinessObjectService(BusinessObjectService businessObjectService) {
55 this.businessObjectService = businessObjectService;
56 }
57
58 }