View Javadoc

1   /**
2    * Copyright 2004-2013 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.hr.time.syslunch.rule;
17  
18  import org.kuali.hr.core.KPMEConstants;
19  import org.kuali.hr.time.rule.TkRule;
20  
21  public class SystemLunchRule extends TkRule {
22      public static final String CACHE_NAME = KPMEConstants.APPLICATION_NAMESPACE_CODE + "/" + "SystemLunchRule";
23  	/**
24  	 * 
25  	 */
26  	private static final long serialVersionUID = 1L;
27  	private String tkSystemLunchRuleId;
28  	private Boolean showLunchButton = false;
29  	private boolean history;
30  	private String userPrincipalId;
31  
32  
33  	public String getTkSystemLunchRuleId() {
34  		return tkSystemLunchRuleId;
35  	}
36  
37  	public void setTkSystemLunchRuleId(String tkSystemLunchRuleId) {
38  		this.tkSystemLunchRuleId = tkSystemLunchRuleId;
39  	}
40  
41  	public boolean isHistory() {
42  		return history;
43  	}
44  
45  
46  	public void setHistory(boolean history) {
47  		this.history = history;
48  	}
49  
50  	public String getUserPrincipalId() {
51  		return userPrincipalId;
52  	}
53  
54  	public void setUserPrincipalId(String userPrincipalId) {
55  		this.userPrincipalId = userPrincipalId;
56  	}
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  }