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.overtime.daily.rule;
17  
18  import java.math.BigDecimal;
19  
20  import org.kuali.hr.core.KPMEConstants;
21  import org.kuali.hr.location.Location;
22  import org.kuali.hr.time.department.Department;
23  import org.kuali.hr.time.earncode.EarnCode;
24  import org.kuali.hr.time.earncodegroup.EarnCodeGroup;
25  import org.kuali.hr.time.paytype.PayType;
26  import org.kuali.hr.time.rule.TkRule;
27  import org.kuali.hr.time.task.Task;
28  import org.kuali.hr.time.workarea.WorkArea;
29  
30  public class DailyOvertimeRule extends TkRule {
31  
32  	private static final long serialVersionUID = 2064326101630818390L;
33  
34  	public static final String CACHE_NAME = KPMEConstants.APPLICATION_NAMESPACE_CODE + "/" + "DailyOvertimeRule";
35  
36  	private String tkDailyOvertimeRuleId;
37  
38  	private String fromEarnGroup;
39  	private String earnCode;
40  
41  	private String location;
42  	private String paytype;
43  	private String dept;
44  	private Long workArea;
45  
46  	private BigDecimal maxGap;
47  	private BigDecimal minHours;
48  	private String userPrincipalId;
49  	private boolean history;
50  	private Boolean ovtEarnCode;
51  
52  	private String tkWorkAreaId;
53  	private String hrDeptId;
54  	private String hrLocationId;
55  	
56  	private Task taskObj;
57  	private WorkArea workAreaObj;
58  	private Department departmentObj;
59  	private PayType payTypeObj;
60  
61  	private EarnCodeGroup fromEarnGroupObj;
62  	private EarnCode earnCodeObj;
63  	private Location locationObj;
64  
65  	public String getTkDailyOvertimeRuleId() {
66  		return tkDailyOvertimeRuleId;
67  	}
68  
69  	public void setTkDailyOvertimeRuleId(String tkDailyOvertimeRuleId) {
70  		this.tkDailyOvertimeRuleId = tkDailyOvertimeRuleId;
71  	}
72  
73  	public String getLocation() {
74  		return location;
75  	}
76  
77  	public void setLocation(String location) {
78  		this.location = location;
79  	}
80  
81  	public BigDecimal getMaxGap() {
82  		return maxGap;
83  	}
84  
85  	public void setMaxGap(BigDecimal maxGap) {
86  		this.maxGap = maxGap;
87  	}
88  
89  	public String getUserPrincipalId() {
90  		return userPrincipalId;
91  	}
92  
93  	public void setUserPrincipalId(String userPrincipalId) {
94  		this.userPrincipalId = userPrincipalId;
95  	}
96  
97  	public Department getDepartmentObj() {
98  		return departmentObj;
99  	}
100 
101 	public void setDepartmentObj(Department departmentObj) {
102 		this.departmentObj = departmentObj;
103 	}
104 
105 	public String getPaytype() {
106 		return paytype;
107 	}
108 
109 	public void setPaytype(String paytype) {
110 		this.paytype = paytype;
111 	}
112 
113 	public String getDept() {
114 		return dept;
115 	}
116 
117 	public void setDept(String dept) {
118 		this.dept = dept;
119 	}
120 
121 	public Task getTaskObj() {
122 		return taskObj;
123 	}
124 
125 	public void setTaskObj(Task taskObj) {
126 		this.taskObj = taskObj;
127 	}
128 
129 	public WorkArea getWorkAreaObj() {
130 		return workAreaObj;
131 	}
132 
133 	public void setWorkAreaObj(WorkArea workAreaObj) {
134 		this.workAreaObj = workAreaObj;
135 	}
136 
137 	public void setWorkArea(Long workArea) {
138 		this.workArea = workArea;
139 	}
140 
141 	public Long getWorkArea() {
142 		return workArea;
143 	}
144 
145 	public PayType getPayTypeObj() {
146 		return payTypeObj;
147 	}
148 
149 	public void setPayTypeObj(PayType payTypeObj) {
150 		this.payTypeObj = payTypeObj;
151 	}
152 
153 	public String getFromEarnGroup() {
154 		return fromEarnGroup;
155 	}
156 
157 	public void setFromEarnGroup(String fromEarnGroup) {
158 		this.fromEarnGroup = fromEarnGroup;
159 	}
160 
161 	public String getEarnCode() {
162 		return earnCode;
163 	}
164 
165 	public void setEarnCode(String earnCode) {
166 		this.earnCode = earnCode;
167 	}
168 
169 	public BigDecimal getMinHours() {
170 		return minHours;
171 	}
172 
173 	public void setMinHours(BigDecimal minHours) {
174 		this.minHours = minHours;
175 	}
176 
177 	public EarnCodeGroup getFromEarnGroupObj() {
178 		return fromEarnGroupObj;
179 	}
180 
181 	public void setFromEarnGroupObj(EarnCodeGroup fromEarnGroupObj) {
182 		this.fromEarnGroupObj = fromEarnGroupObj;
183 	}
184 
185 	public EarnCode getEarnCodeObj() {
186 		return earnCodeObj;
187 	}
188 
189 	public void setEarnCodeObj(EarnCode earnCodeObj) {
190 		this.earnCodeObj = earnCodeObj;
191 	}
192 
193 	public Location getLocationObj() {
194 		return locationObj;
195 	}
196 
197 	public void setLocationObj(Location locationObj) {
198 		this.locationObj = locationObj;
199 	}
200 
201 	public boolean isHistory() {
202 		return history;
203 	}
204 
205 	public void setHistory(boolean history) {
206 		this.history = history;
207 	}
208 
209 	public Boolean getOvtEarnCode() {
210 		return ovtEarnCode;
211 	}
212 
213 	public void setOvtEarnCode(Boolean ovtEarnCode) {
214 		this.ovtEarnCode = ovtEarnCode;
215 	}
216 
217 	public String getTkWorkAreaId() {
218 		return tkWorkAreaId;
219 	}
220 
221 	public void setTkWorkAreaId(String tkWorkAreaId) {
222 		this.tkWorkAreaId = tkWorkAreaId;
223 	}
224 
225 	public String getHrDeptId() {
226 		return hrDeptId;
227 	}
228 
229 	public void setHrDeptId(String hrDeptId) {
230 		this.hrDeptId = hrDeptId;
231 	}
232 
233 	public String getHrLocationId() {
234 		return hrLocationId;
235 	}
236 
237 	public void setHrLocationId(String hrLocationId) {
238 		this.hrLocationId = hrLocationId;
239 	}
240 
241 	@Override
242 	public String getUniqueKey() {
243 		return location + "_" + dept + "_" + workArea + "_" + paytype;
244 	}
245 
246 	@Override
247 	public String getId() {
248 		return getTkDailyOvertimeRuleId();
249 	}
250 
251 	@Override
252 	public void setId(String id) {
253 		setTkDailyOvertimeRuleId(id);
254 	}
255 
256 }