1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.hr.time.position.service;
17
18 import org.kuali.hr.core.cache.CacheUtils;
19 import org.kuali.hr.time.HrBusinessObject;
20 import org.kuali.hr.time.position.Position;
21 import org.kuali.hr.time.service.base.TkServiceLocator;
22 import org.kuali.hr.time.util.HrBusinessObjectMaintainableImpl;
23 import org.kuali.rice.krad.service.KRADServiceLocator;
24
25 public class PositionMaintainableServiceImpl extends HrBusinessObjectMaintainableImpl {
26
27
28
29
30 private static final long serialVersionUID = 1L;
31
32
33 @Override
34 public HrBusinessObject getObjectById(String id) {
35 return TkServiceLocator.getPositionService().getPosition(id);
36 }
37
38 @Override
39 public void saveBusinessObject() {
40 Position position = (Position) this.getBusinessObject();
41
42
43
44 KRADServiceLocator.getBusinessObjectService().save(position);
45 CacheUtils.flushCache(Position.CACHE_NAME);
46 }
47 }