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.common.TkConstants;
20 import org.kuali.kpme.tklm.time.rules.TkRule;
21
22 public class SystemLunchRule extends TkRule implements SystemLunchRuleContract {
23 public static final String CACHE_NAME = TkConstants.CacheNamespace.NAMESPACE_PREFIX + "SystemLunchRule";
24
25
26
27 private static final long serialVersionUID = 1L;
28 private String tkSystemLunchRuleId;
29 private Boolean showLunchButton = false;
30 private boolean history;
31 private String userPrincipalId;
32
33
34 public String getTkSystemLunchRuleId() {
35 return tkSystemLunchRuleId;
36 }
37
38 public void setTkSystemLunchRuleId(String tkSystemLunchRuleId) {
39 this.tkSystemLunchRuleId = tkSystemLunchRuleId;
40 }
41
42 public boolean isHistory() {
43 return history;
44 }
45
46
47 public void setHistory(boolean history) {
48 this.history = history;
49 }
50
51 public String getUserPrincipalId() {
52 return userPrincipalId;
53 }
54
55 public void setUserPrincipalId(String userPrincipalId) {
56 this.userPrincipalId = userPrincipalId;
57 }
58
59
60 public Boolean getShowLunchButton() {
61 return showLunchButton;
62 }
63
64
65 public void setShowLunchButton(Boolean showLunchButton) {
66 this.showLunchButton = showLunchButton;
67 }
68
69
70 @Override
71 public String getUniqueKey() {
72 return "";
73 }
74
75 @Override
76 public String getId() {
77 return getTkSystemLunchRuleId();
78 }
79
80 @Override
81 public void setId(String id) {
82 setTkSystemLunchRuleId(id);
83 }
84
85 }