001 /**
002 * Copyright 2004-2012 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.hr.time.position;
017
018 import java.sql.Timestamp;
019
020 import org.kuali.hr.core.KPMEConstants;
021 import org.kuali.hr.time.HrBusinessObject;
022 import org.kuali.hr.time.workarea.WorkArea;
023
024 public class Position extends HrBusinessObject {
025 public static final String CACHE_NAME = KPMEConstants.APPLICATION_NAMESPACE_CODE + "/" + "Position";
026 /**
027 *
028 */
029 private static final long serialVersionUID = 1L;
030
031 private String hrPositionId;
032 private String positionNumber;
033 private String description;
034 private String history;
035 private Long workArea;
036 private WorkArea workAreaObj;
037
038 public String getHrPositionId() {
039 return hrPositionId;
040 }
041
042 public void setHrPositionId(String hrPositionId) {
043 this.hrPositionId = hrPositionId;
044 }
045
046 public String getPositionNumber() {
047 return positionNumber;
048 }
049
050 public void setPositionNumber(String positionNumber) {
051 this.positionNumber = positionNumber;
052 }
053
054 public String getDescription() {
055 return description;
056 }
057
058 public void setDescription(String description) {
059 this.description = description;
060 }
061
062 public boolean isActive() {
063 return active;
064 }
065
066 public void setActive(boolean active) {
067 this.active = active;
068 }
069
070 public Timestamp getTimestamp() {
071 return timestamp;
072 }
073
074 public void setTimestamp(Timestamp timestamp) {
075 this.timestamp = timestamp;
076 }
077
078 @Override
079 public String getUniqueKey() {
080 return positionNumber + "";
081 }
082
083 public String getHistory() {
084 return history;
085 }
086
087 public void setHistory(String history) {
088 this.history = history;
089 }
090
091 @Override
092 public String getId() {
093 return getHrPositionId();
094 }
095
096 @Override
097 public void setId(String id) {
098 setHrPositionId(id);
099 }
100
101
102 public WorkArea getWorkAreaObj() {
103 return workAreaObj;
104 }
105
106 public void setWorkAreaObj(WorkArea workAreaObj) {
107 this.workAreaObj = workAreaObj;
108 }
109
110 public Long getWorkArea() {
111 return workArea;
112 }
113
114 public void setWorkArea(Long workArea) {
115 this.workArea = workArea;
116 }
117
118 }