View Javadoc

1   /**
2    * Copyright 2004-2013 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.hr.time.graceperiod.rule;
17  
18  import java.math.BigDecimal;
19  
20  import org.kuali.hr.core.KPMEConstants;
21  import org.kuali.hr.time.HrBusinessObject;
22  
23  public class GracePeriodRule extends HrBusinessObject {
24  
25  	private static final long serialVersionUID = 2756221187837436165L;
26  
27  	public static final String CACHE_NAME = KPMEConstants.APPLICATION_NAMESPACE_CODE + "/" + "GracePeriodRule";
28  
29  	private String tkGracePeriodRuleId;
30  	private BigDecimal hourFactor;
31  	private String userPrincipalId;
32      private String history;
33  
34  	public BigDecimal getHourFactor() {
35  	    return hourFactor;
36  	}
37  
38  	public void setHourFactor(BigDecimal hourFactor) {
39  	    this.hourFactor = hourFactor;
40  	}
41  
42  	public String getUserPrincipalId() {
43  	    return userPrincipalId;
44  	}
45  
46  	public void setUserPrincipalId(String userPrincipalId) {
47  	    this.userPrincipalId = userPrincipalId;
48  	}
49  
50  	public String getTkGracePeriodRuleId() {
51  		return tkGracePeriodRuleId;
52  	}
53  
54  	public void setTkGracePeriodRuleId(String tkGracePeriodRuleId) {
55  		this.tkGracePeriodRuleId = tkGracePeriodRuleId;
56  	}
57  
58  	@Override
59  	public String getUniqueKey() {
60  		return hourFactor + "";
61  	}
62  
63  	@Override
64  	public String getId() {
65  		return getTkGracePeriodRuleId();
66  	}
67  
68  	@Override
69  	public void setId(String id) {
70  		setTkGracePeriodRuleId(id);
71  	}
72  
73      public String getHistory() {
74          return history;
75      }
76  
77      public void setHistory(String history) {
78          this.history = history;
79      }
80  
81  }