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.graceperiod.rule;
017    
018    import java.math.BigDecimal;
019    
020    import org.kuali.hr.core.KPMEConstants;
021    import org.kuali.hr.time.HrBusinessObject;
022    
023    public class GracePeriodRule extends HrBusinessObject {
024    
025            private static final long serialVersionUID = 2756221187837436165L;
026    
027            public static final String CACHE_NAME = KPMEConstants.APPLICATION_NAMESPACE_CODE + "/" + "GracePeriodRule";
028    
029            private String tkGracePeriodRuleId;
030            private BigDecimal hourFactor;
031            private String userPrincipalId;
032        private String history;
033    
034            public BigDecimal getHourFactor() {
035                return hourFactor;
036            }
037    
038            public void setHourFactor(BigDecimal hourFactor) {
039                this.hourFactor = hourFactor;
040            }
041    
042            public String getUserPrincipalId() {
043                return userPrincipalId;
044            }
045    
046            public void setUserPrincipalId(String userPrincipalId) {
047                this.userPrincipalId = userPrincipalId;
048            }
049    
050            public String getTkGracePeriodRuleId() {
051                    return tkGracePeriodRuleId;
052            }
053    
054            public void setTkGracePeriodRuleId(String tkGracePeriodRuleId) {
055                    this.tkGracePeriodRuleId = tkGracePeriodRuleId;
056            }
057    
058            @Override
059            public String getUniqueKey() {
060                    return hourFactor + "";
061            }
062    
063            @Override
064            public String getId() {
065                    return getTkGracePeriodRuleId();
066            }
067    
068            @Override
069            public void setId(String id) {
070                    setTkGracePeriodRuleId(id);
071            }
072    
073        public String getHistory() {
074            return history;
075        }
076    
077        public void setHistory(String history) {
078            this.history = history;
079        }
080    
081    }