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