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.position;
17  
18  import org.kuali.hr.core.KPMEConstants;
19  import org.kuali.hr.time.HrBusinessObject;
20  import org.kuali.hr.time.workarea.WorkArea;
21  
22  public class Position extends HrBusinessObject {
23  
24  	private static final long serialVersionUID = 7608620912959269845L;
25  
26  	public static final String CACHE_NAME = KPMEConstants.APPLICATION_NAMESPACE_CODE + "/" + "Position";
27  	
28  	private String hrPositionId;
29  	private String positionNumber;
30  	private String description;
31  	private String history;
32  	private Long workArea;
33  	private WorkArea workAreaObj;
34  
35  	public String getHrPositionId() {
36  		return hrPositionId;
37  	}
38  
39  	public void setHrPositionId(String hrPositionId) {
40  		this.hrPositionId = hrPositionId;
41  	}
42  
43  	public String getPositionNumber() {
44  		return positionNumber;
45  	}
46  
47  	public void setPositionNumber(String positionNumber) {
48  		this.positionNumber = positionNumber;
49  	}
50  
51  	public String getDescription() {
52  		return description;
53  	}
54  
55  	public void setDescription(String description) {
56  		this.description = description;
57  	}
58  
59  	@Override
60  	public String getUniqueKey() {
61  		return positionNumber + "";
62  	}
63  
64  	public String getHistory() {
65  		return history;
66  	}
67  
68  	public void setHistory(String history) {
69  		this.history = history;
70  	}
71  
72  	@Override
73  	public String getId() {
74  		return getHrPositionId();
75  	}
76  
77  	@Override
78  	public void setId(String id) {
79  		setHrPositionId(id);
80  	}
81  
82  	
83  	public WorkArea getWorkAreaObj() {
84  		return workAreaObj;
85  	}
86  
87  	public void setWorkAreaObj(WorkArea workAreaObj) {
88  		this.workAreaObj = workAreaObj;
89  	}
90  
91  	public Long getWorkArea() {
92  		return workArea;
93  	}
94  
95  	public void setWorkArea(Long workArea) {
96  		this.workArea = workArea;
97  	}
98  	
99  }