View Javadoc
1   /**
2    * Copyright 2004-2014 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.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  }