1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.kpme.tklm.time.rules.lunch.sys;
17
18 import org.kuali.kpme.tklm.api.time.rules.lunch.sys.SystemLunchRuleContract;
19 import org.kuali.kpme.tklm.api.common.TkConstants;
20 import org.kuali.kpme.tklm.time.rules.TkRule;
21
22 import com.google.common.collect.ImmutableMap;
23
24 public class SystemLunchRule extends TkRule implements SystemLunchRuleContract {
25 public static final String CACHE_NAME = TkConstants.Namespace.NAMESPACE_PREFIX + "SystemLunchRule";
26
27
28
29 private static final long serialVersionUID = 1L;
30 private String tkSystemLunchRuleId;
31 private Boolean showLunchButton = false;
32 private boolean history;
33
34
35 @Override
36 public ImmutableMap<String, Object> getBusinessKeyValuesMap() {
37 return new ImmutableMap.Builder<String, Object>()
38 .build();
39 }
40
41
42 public String getTkSystemLunchRuleId() {
43 return tkSystemLunchRuleId;
44 }
45
46 public void setTkSystemLunchRuleId(String tkSystemLunchRuleId) {
47 this.tkSystemLunchRuleId = tkSystemLunchRuleId;
48 }
49
50 public boolean isHistory() {
51 return history;
52 }
53
54
55 public void setHistory(boolean history) {
56 this.history = history;
57 }
58
59 public Boolean getShowLunchButton() {
60 return showLunchButton;
61 }
62
63
64 public void setShowLunchButton(Boolean showLunchButton) {
65 this.showLunchButton = showLunchButton;
66 }
67
68
69 @Override
70 public String getUniqueKey() {
71 return "";
72 }
73
74 @Override
75 public String getId() {
76 return getTkSystemLunchRuleId();
77 }
78
79 @Override
80 public void setId(String id) {
81 setTkSystemLunchRuleId(id);
82 }
83
84 }