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.lm.accrual;
17  
18  import java.math.BigDecimal;
19  import java.util.LinkedList;
20  import java.util.List;
21  
22  import org.kuali.hr.core.KPMEConstants;
23  import org.kuali.hr.lm.leaveplan.LeavePlan;
24  import org.kuali.hr.time.HrBusinessObject;
25  import org.kuali.hr.time.earncode.EarnCode;
26  
27  public class AccrualCategory extends HrBusinessObject {
28      public static final String CACHE_NAME = KPMEConstants.APPLICATION_NAMESPACE_CODE + "/" + "AccrualCategory";
29  	/**
30  	 * 
31  	 */
32  	private static final long serialVersionUID = 1L;
33  	private String lmAccrualCategoryId;
34  	private String leavePlan;
35  	private String accrualCategory;
36  	private String descr;
37  	private String accrualEarnInterval;
38  	private String proration;
39  	private String donation;
40  	private String showOnGrid;
41  	private String unitOfTime;
42  	private Boolean history;
43  	private String hasRules;
44  
45  	private LeavePlan leavePlanObj;
46  	private List<AccrualCategoryRule> accrualCategoryRules = new LinkedList<AccrualCategoryRule>();
47  
48  	private BigDecimal minPercentWorked;
49  	
50  	// KPME-1347 Kagata
51  	private String earnCode;
52  	private EarnCode earnCodeObj;
53  	
54  
55  	public String getHasRules() {
56  		return hasRules;
57  	}
58  
59  	public void setHasRules(String hasRules) {
60  		this.hasRules = hasRules;
61  	}
62  	
63  	public BigDecimal getMinPercentWorked() {
64  		return minPercentWorked;
65  	}
66  
67  	public void setMinPercentWorked(BigDecimal minPercentWorked) {
68  		this.minPercentWorked = minPercentWorked;
69  	}
70  
71  	public LeavePlan getLeavePlanObj() {
72  		return leavePlanObj;
73  	}
74  
75  	public void setLeavePlanObj(LeavePlan leavePlanObj) {
76  		this.leavePlanObj = leavePlanObj;
77  	}
78  
79  	public List<AccrualCategoryRule> getAccrualCategoryRules() {
80  		return accrualCategoryRules;
81  	}
82  
83  	public void setAccrualCategoryRules(
84  			List<AccrualCategoryRule> accrualCategoryRules) {
85  		this.accrualCategoryRules = accrualCategoryRules;
86  	}
87  
88  	public String getLmAccrualCategoryId() {
89  		return lmAccrualCategoryId;
90  	}
91  
92  	public void setLmAccrualCategoryId(String lmAccrualCategoryId) {
93  		this.lmAccrualCategoryId = lmAccrualCategoryId;
94  	}
95  
96  	public String getLeavePlan() {
97  		return leavePlan;
98  	}
99  
100 	public void setLeavePlan(String leavePlan) {
101 		this.leavePlan = leavePlan;
102 	}
103 
104 	public String getAccrualCategory() {
105 		return accrualCategory;
106 	}
107 
108 	public void setAccrualCategory(String accrualCategory) {
109 		this.accrualCategory = accrualCategory;
110 	}
111 
112 	public String getDescr() {
113 		return descr;
114 	}
115 
116 	public void setDescr(String descr) {
117 		this.descr = descr;
118 	}
119 
120 	public String getAccrualEarnInterval() {
121 		return accrualEarnInterval;
122 	}
123 
124 	public void setAccrualEarnInterval(String accrualEarnInterval) {
125 		this.accrualEarnInterval = accrualEarnInterval;
126 	}
127 
128 	public String getProration() {
129 		return proration;
130 	}
131 
132 	public void setProration(String proration) {
133 		this.proration = proration;
134 	}
135 
136 	public String getDonation() {
137 		return donation;
138 	}
139 
140 	public void setDonation(String donation) {
141 		this.donation = donation;
142 	}
143 
144 	public String getShowOnGrid() {
145 		return showOnGrid;
146 	}
147 
148 	public void setShowOnGrid(String showOnGrid) {
149 		this.showOnGrid = showOnGrid;
150 	}
151 
152 	public String getUnitOfTime() {
153 		return unitOfTime;
154 	}
155 
156 	public void setUnitOfTime(String unitOfTime) {
157 		this.unitOfTime = unitOfTime;
158 	}
159 
160 	@Override
161 	protected String getUniqueKey() {
162 		return lmAccrualCategoryId;
163 	}
164 
165 	public Boolean getHistory() {
166 		return history;
167 	}
168 
169 	public void setHistory(Boolean history) {
170 		this.history = history;
171 	}
172 
173 	public String getEarnCode() {
174 		return earnCode;
175 	}
176 
177 	public void setEarnCode(String earnCode) {
178 		this.earnCode = earnCode;
179 	}
180 
181 	public EarnCode getEarnCodeObj() {
182 		return earnCodeObj;
183 	}
184 
185 	public void setEarnCodeObj(EarnCode earnCodeObj) {
186 		this.earnCodeObj = earnCodeObj;
187 	}
188 
189 	@Override
190 	public void setId(String id) {
191 		setLmAccrualCategoryId(id);
192 	}
193 
194 	@Override
195 	public String getId() {
196 		return getLmAccrualCategoryId();
197 	}
198 	
199 }