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    
033            public BigDecimal getHourFactor() {
034                return hourFactor;
035            }
036    
037            public void setHourFactor(BigDecimal hourFactor) {
038                this.hourFactor = hourFactor;
039            }
040    
041            public String getUserPrincipalId() {
042                return userPrincipalId;
043            }
044    
045            public void setUserPrincipalId(String userPrincipalId) {
046                this.userPrincipalId = userPrincipalId;
047            }
048    
049            public String getTkGracePeriodRuleId() {
050                    return tkGracePeriodRuleId;
051            }
052    
053            public void setTkGracePeriodRuleId(String tkGracePeriodRuleId) {
054                    this.tkGracePeriodRuleId = tkGracePeriodRuleId;
055            }
056    
057            @Override
058            public String getUniqueKey() {
059                    return hourFactor + "";
060            }
061    
062            @Override
063            public String getId() {
064                    return getTkGracePeriodRuleId();
065            }
066    
067            @Override
068            public void setId(String id) {
069                    setTkGracePeriodRuleId(id);
070            }
071    
072    }