1 package org.kuali.ole.deliver.util;
2
3 import org.kuali.ole.deliver.service.CircDeskLocationResolver;
4 import org.kuali.rice.krad.service.BusinessObjectService;
5 import org.kuali.rice.krad.service.KRADServiceLocator;
6
7
8
9
10 public class OLEUtil {
11 private BusinessObjectService businessObjectService;
12 private CircDeskLocationResolver circDeskLocationResolver;
13
14
15 protected BusinessObjectService getBusinessObjectService() {
16 if (null == businessObjectService) {
17 businessObjectService = KRADServiceLocator.getBusinessObjectService();
18 }
19 return businessObjectService;
20 }
21
22
23 public void setBusinessObjectService(BusinessObjectService businessObjectService) {
24 this.businessObjectService = businessObjectService;
25 }
26
27 public CircDeskLocationResolver getCircDeskLocationResolver() {
28 if (circDeskLocationResolver == null) {
29 circDeskLocationResolver = new CircDeskLocationResolver();
30 }
31 return circDeskLocationResolver;
32 }
33
34 public void setCircDeskLocationResolver(CircDeskLocationResolver circDeskLocationResolver) {
35 this.circDeskLocationResolver = circDeskLocationResolver;
36 }
37 }