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