1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.coa.service.impl;
17
18 import java.util.HashMap;
19 import java.util.Map;
20
21 import org.kuali.ole.coa.businessobject.ObjectLevel;
22 import org.kuali.ole.coa.service.ObjectLevelService;
23 import org.kuali.ole.sys.OLEPropertyConstants;
24 import org.kuali.ole.sys.context.SpringContext;
25 import org.kuali.ole.sys.service.NonTransactional;
26 import org.kuali.rice.krad.service.BusinessObjectService;
27
28
29
30
31
32 @NonTransactional
33 public class ObjectLevelServiceImpl implements ObjectLevelService {
34
35
36
37
38 public ObjectLevel getByPrimaryId(String chartOfAccountsCode, String objectLevelCode) {
39 Map<String, Object> keys = new HashMap<String, Object>();
40 keys.put(OLEPropertyConstants.CHART_OF_ACCOUNTS_CODE, chartOfAccountsCode);
41 keys.put(OLEPropertyConstants.FINANCIAL_OBJECT_LEVEL_CODE, objectLevelCode);
42 return (ObjectLevel)SpringContext.getBean(BusinessObjectService.class).findByPrimaryKey(ObjectLevel.class, keys);
43 }
44
45 }