1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.kpme.core.calendar.web;
17
18 import org.apache.log4j.Logger;
19 import org.kuali.kpme.core.cache.CacheUtils;
20 import org.kuali.kpme.core.calendar.CalendarBo;
21 import org.kuali.kpme.core.calendar.entry.CalendarEntryBo;
22 import org.kuali.rice.kns.document.MaintenanceDocument;
23 import org.kuali.rice.kns.maintenance.KualiMaintainableImpl;
24
25 import java.util.Map;
26
27
28
29
30
31
32
33
34 public class CalendarMaintainableImpl extends KualiMaintainableImpl {
35
36
37
38
39 private static final long serialVersionUID = 1L;
40 private static final Logger LOG = Logger.getLogger(CalendarMaintainableImpl.class);
41
42 @Override
43 public void addNewLineToCollection(String collectionName) {
44 super.addNewLineToCollection(collectionName);
45 }
46
47 @Override
48 public Map<String, String> populateNewCollectionLines(Map<String, String> fieldValues, MaintenanceDocument maintenanceDocument, String methodToCall) {
49 return super.populateNewCollectionLines(fieldValues, maintenanceDocument, methodToCall);
50 }
51
52 @SuppressWarnings("unchecked")
53 @Override
54 public void processAfterAddLine(String colName, Class colClass) {
55 super.processAfterAddLine(colName, colClass);
56 }
57
58 @Override
59 public void saveBusinessObject() {
60 super.saveBusinessObject();
61 CalendarBo calendar = (CalendarBo) this.getBusinessObject();
62 LOG.info("Saved pay calendar: " + calendar.getHrCalendarId());
63 CacheUtils.flushCache(CalendarBo.CACHE_NAME);
64 CacheUtils.flushCache(CalendarEntryBo.CACHE_NAME);
65 }
66
67 }