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.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  	// TODO returning an empty map for the time-being, until the BK is finalized
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  }