001 /**
002 * Copyright 2004-2013 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016 package org.kuali.hr.time.syslunch.rule;
017
018 import org.kuali.hr.core.KPMEConstants;
019 import org.kuali.hr.time.rule.TkRule;
020
021 public class SystemLunchRule extends TkRule {
022 public static final String CACHE_NAME = KPMEConstants.APPLICATION_NAMESPACE_CODE + "/" + "SystemLunchRule";
023 /**
024 *
025 */
026 private static final long serialVersionUID = 1L;
027 private String tkSystemLunchRuleId;
028 private Boolean showLunchButton = false;
029 private boolean history;
030 private String userPrincipalId;
031
032
033 public String getTkSystemLunchRuleId() {
034 return tkSystemLunchRuleId;
035 }
036
037 public void setTkSystemLunchRuleId(String tkSystemLunchRuleId) {
038 this.tkSystemLunchRuleId = tkSystemLunchRuleId;
039 }
040
041 public boolean isHistory() {
042 return history;
043 }
044
045
046 public void setHistory(boolean history) {
047 this.history = history;
048 }
049
050 public String getUserPrincipalId() {
051 return userPrincipalId;
052 }
053
054 public void setUserPrincipalId(String userPrincipalId) {
055 this.userPrincipalId = userPrincipalId;
056 }
057
058
059 public Boolean getShowLunchButton() {
060 return showLunchButton;
061 }
062
063
064 public void setShowLunchButton(Boolean showLunchButton) {
065 this.showLunchButton = showLunchButton;
066 }
067
068
069 @Override
070 public String getUniqueKey() {
071 return "";
072 }
073
074 @Override
075 public String getId() {
076 return getTkSystemLunchRuleId();
077 }
078
079 @Override
080 public void setId(String id) {
081 setTkSystemLunchRuleId(id);
082 }
083
084 }