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