001 /*
002 * Copyright 2011 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.kfs.module.ld.businessobject;
017
018 import java.math.BigDecimal;
019 import java.sql.Date;
020 import java.util.LinkedHashMap;
021 import org.kuali.kfs.gl.Constant;
022 import org.kuali.kfs.gl.businessobject.TransientBalanceInquiryAttributes;
023 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
024
025 /**
026 * Labor business object for PositionData
027 */
028 public class PositionData extends PersistableBusinessObjectBase {
029 private String positionNumber;
030 private String jobCode;
031 private Date effectiveDate;
032 private String positionEffectiveStatus;
033 private String description;
034 private String shortDescription;
035 private String businessUnit;
036 private String departmentId;
037 private String positionStatus;
038 private Date statusDate;
039 private String budgetedPosition;
040 private BigDecimal standardHoursDefault;
041 private String standardHoursFrequency;
042 private String positionRegularTemporary;
043 private BigDecimal positionFullTimeEquivalency;
044 private String positionSalaryPlanDefault;
045 private String positionGradeDefault;
046 private TransientBalanceInquiryAttributes dummyBusinessObject;
047
048 /**
049 * Default constructor.
050 */
051 public PositionData() {
052 super();
053 this.dummyBusinessObject = new TransientBalanceInquiryAttributes();
054 this.dummyBusinessObject.setLinkButtonOption(Constant.LOOKUP_BUTTON_VALUE);
055 }
056
057 /**
058 * Gets the positionNumber
059 *
060 * @return Returns the positionNumber
061 */
062 public String getPositionNumber() {
063 return positionNumber;
064 }
065
066 /**
067 * Sets the positionNumber
068 *
069 * @param positionNumber The positionNumber to set.
070 */
071 public void setPositionNumber(String positionNumber) {
072 this.positionNumber = positionNumber;
073 }
074
075 /**
076 * Gets the jobCode
077 *
078 * @return Returns the jobCode
079 */
080 public String getJobCode() {
081 return jobCode;
082 }
083
084 /**
085 * Sets the jobCode
086 *
087 * @param jobCode The jobCode to set.
088 */
089 public void setJobCode(String jobCode) {
090 this.jobCode = jobCode;
091 }
092
093 /**
094 * Gets the effectiveDate
095 *
096 * @return Returns the effectiveDate
097 */
098 public Date getEffectiveDate() {
099 return effectiveDate;
100 }
101
102 /**
103 * Sets the effectiveDate
104 *
105 * @param effectiveDate The effectiveDate to set.
106 */
107 public void setEffectiveDate(Date effectiveDate) {
108 this.effectiveDate = effectiveDate;
109 }
110
111 /**
112 * Gets the positionEffectiveStatus
113 *
114 * @return Returns the positionEffectiveStatus
115 */
116 public String getPositionEffectiveStatus() {
117 return positionEffectiveStatus;
118 }
119
120 /**
121 * Sets the positionEffectiveStatus
122 *
123 * @param positionEffectiveStatus The positionEffectiveStatus to set.
124 */
125 public void setPositionEffectiveStatus(String positionEffectiveStatus) {
126 this.positionEffectiveStatus = positionEffectiveStatus;
127 }
128
129 /**
130 * Gets the description
131 *
132 * @return Returns the description
133 */
134 public String getDescription() {
135 return description;
136 }
137
138 /**
139 * Sets the description
140 *
141 * @param description The description to set.
142 */
143 public void setDescription(String description) {
144 this.description = description;
145 }
146
147 /**
148 * Gets the shortDescription
149 *
150 * @return Returns the shortDescription
151 */
152 public String getShortDescription() {
153 return shortDescription;
154 }
155
156 /**
157 * Sets the shortDescription
158 *
159 * @param shortDescription The shortDescription to set.
160 */
161 public void setShortDescription(String shortDescription) {
162 this.shortDescription = shortDescription;
163 }
164
165 /**
166 * Gets the businessUnit
167 *
168 * @return Returns the businessUnit
169 */
170 public String getBusinessUnit() {
171 return businessUnit;
172 }
173
174 /**
175 * Sets the businessUnit
176 *
177 * @param businessUnit The businessUnit to set.
178 */
179 public void setBusinessUnit(String businessUnit) {
180 this.businessUnit = businessUnit;
181 }
182
183 /**
184 * Gets the departmentId
185 *
186 * @return Returns the departmentId
187 */
188 public String getDepartmentId() {
189 return departmentId;
190 }
191
192 /**
193 * Sets the departmentId
194 *
195 * @param departmentId The departmentId to set.
196 */
197 public void setDepartmentId(String departmentId) {
198 this.departmentId = departmentId;
199 }
200
201 /**
202 * Gets the positionStatus
203 *
204 * @return Returns the positionStatus
205 */
206 public String getPositionStatus() {
207 return positionStatus;
208 }
209
210 /**
211 * Sets the positionStatus
212 *
213 * @param positionStatus The positionStatus to set.
214 */
215 public void setPositionStatus(String positionStatus) {
216 this.positionStatus = positionStatus;
217 }
218
219 /**
220 * Gets the statusDate
221 *
222 * @return Returns the statusDate
223 */
224 public Date getStatusDate() {
225 return statusDate;
226 }
227
228 /**
229 * Sets the statusDate
230 *
231 * @param statusDate The statusDate to set.
232 */
233 public void setStatusDate(Date statusDate) {
234 this.statusDate = statusDate;
235 }
236
237 /**
238 * Gets the budgetedPosition
239 *
240 * @return Returns the budgetedPosition
241 */
242 public String getBudgetedPosition() {
243 return budgetedPosition;
244 }
245
246 /**
247 * Sets the budgetedPosition
248 *
249 * @param budgetedPosition The budgetedPosition to set.
250 */
251 public void setBudgetedPosition(String budgetedPosition) {
252 this.budgetedPosition = budgetedPosition;
253 }
254
255 /**
256 * Gets the standardHoursDefault
257 *
258 * @return Returns the standardHoursDefault
259 */
260 public BigDecimal getStandardHoursDefault() {
261 return standardHoursDefault;
262 }
263
264 /**
265 * Sets the standardHoursDefault
266 *
267 * @param standardHoursDefault The standardHoursDefault to set.
268 */
269 public void setStandardHoursDefault(BigDecimal standardHoursDefault) {
270 this.standardHoursDefault = standardHoursDefault;
271 }
272
273 /**
274 * Gets the standardHoursFrequency
275 *
276 * @return Returns the standardHoursFrequency
277 */
278 public String getStandardHoursFrequency() {
279 return standardHoursFrequency;
280 }
281
282 /**
283 * Sets the standardHoursFrequency
284 *
285 * @param standardHoursFrequency The standardHoursFrequency to set.
286 */
287 public void setStandardHoursFrequency(String standardHoursFrequency) {
288 this.standardHoursFrequency = standardHoursFrequency;
289 }
290
291 /**
292 * Gets the positionRegularTemporary
293 *
294 * @return Returns the positionRegularTemporary
295 */
296 public String getPositionRegularTemporary() {
297 return positionRegularTemporary;
298 }
299
300 /**
301 * Sets the positionRegularTemporary
302 *
303 * @param positionRegularTemporary The positionRegularTemporary to set.
304 */
305 public void setPositionRegularTemporary(String positionRegularTemporary) {
306 this.positionRegularTemporary = positionRegularTemporary;
307 }
308
309 /**
310 * Gets the positionFullTimeEquivalency
311 *
312 * @return Returns the positionFullTimeEquivalency
313 */
314 public BigDecimal getPositionFullTimeEquivalency() {
315 return positionFullTimeEquivalency;
316 }
317
318 /**
319 * Sets the positionFullTimeEquivalency
320 *
321 * @param positionFullTimeEquivalency The positionFullTimeEquivalency to set.
322 */
323 public void setPositionFullTimeEquivalency(BigDecimal positionFullTimeEquivalency) {
324 this.positionFullTimeEquivalency = positionFullTimeEquivalency;
325 }
326
327 /**
328 * Gets the positionSalaryPlanDefault
329 *
330 * @return Returns the positionSalaryPlanDefault
331 */
332 public String getPositionSalaryPlanDefault() {
333 return positionSalaryPlanDefault;
334 }
335
336 /**
337 * Sets the positionSalaryPlanDefault
338 *
339 * @param positionSalaryPlanDefault The positionSalaryPlanDefault to set.
340 */
341 public void setPositionSalaryPlanDefault(String positionSalaryPlanDefault) {
342 this.positionSalaryPlanDefault = positionSalaryPlanDefault;
343 }
344
345 /**
346 * Gets the positionGradeDefault
347 *
348 * @return Returns the positionGradeDefault
349 */
350 public String getPositionGradeDefault() {
351 return positionGradeDefault;
352 }
353
354 /**
355 * Sets the positionGradeDefault
356 *
357 * @param positionGradeDefault The positionGradeDefault to set.
358 */
359 public void setPositionGradeDefault(String positionGradeDefault) {
360 this.positionGradeDefault = positionGradeDefault;
361 }
362
363 /**
364 * construct the key list of the business object.
365 *
366 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
367 */
368 protected LinkedHashMap toStringMapper() {
369 LinkedHashMap m = new LinkedHashMap();
370 m.put("positionNumber", this.positionNumber);
371 if (this.effectiveDate != null) {
372 m.put("effectiveDate", this.effectiveDate.toString());
373 }
374
375 return m;
376 }
377
378 /**
379 * Gets the dummyBusinessObject
380 *
381 * @return Returns the dummyBusinessObject.
382 */
383 public TransientBalanceInquiryAttributes getDummyBusinessObject() {
384 return dummyBusinessObject;
385 }
386
387 /**
388 * Sets the dummyBusinessObject
389 *
390 * @param dummyBusinessObject The dummyBusinessObject to set.
391 */
392 public void setDummyBusinessObject(TransientBalanceInquiryAttributes dummyBusinessObject) {
393 this.dummyBusinessObject = dummyBusinessObject;
394 }
395 }