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.kpme.core.position;
017    
018    import org.kuali.kpme.core.api.position.PositionBaseContract;
019    import org.kuali.kpme.core.bo.HrBusinessObject;
020    import org.kuali.kpme.core.util.HrConstants;
021    
022    import com.google.common.collect.ImmutableList;
023    
024    public class PositionBase extends HrBusinessObject implements PositionBaseContract {
025    
026            private static final long serialVersionUID = -3258249005786874634L;
027            //KPME-2273/1965 Primary Business Keys List.    
028            public static final ImmutableList<String> EQUAL_TO_FIELDS = new ImmutableList.Builder<String>()
029                .add("positionNumber")
030                .build();
031    
032            public static final String CACHE_NAME = HrConstants.CacheNamespace.NAMESPACE_PREFIX + "PositionBase";
033            
034            private String hrPositionId;
035            private String positionNumber;
036            private String description;
037            private String history;
038            
039    
040            @Override
041            public String getId() {
042                    return getHrPositionId();
043            }
044    
045            @Override
046            public void setId(String id) {
047                    setHrPositionId(id);
048            }
049            
050            @Override
051            public String getUniqueKey() {
052                    return positionNumber;
053            }
054    
055            public String getHrPositionId() {
056                    return hrPositionId;
057            }
058    
059            public void setHrPositionId(String hrPositionId) {
060                    this.hrPositionId = hrPositionId;
061            }
062    
063            public String getPositionNumber() {
064                    return positionNumber;
065            }
066    
067            public void setPositionNumber(String positionNumber) {
068                    this.positionNumber = positionNumber;
069            }
070    
071            public String getDescription() {
072                    return description;
073            }
074    
075            public void setDescription(String description) {
076                    this.description = description;
077            }
078    
079            public String getHistory() {
080                    return history;
081            }
082    
083            public void setHistory(String history) {
084                    this.history = history;
085            }
086    
087    }