001    /**
002     * Copyright 2004-2014 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.pm.classification.qual;
017    
018    
019    import org.apache.commons.lang.StringUtils;
020    import org.kuali.kpme.pm.api.classification.qual.ClassificationQualificationContract;
021    import org.kuali.kpme.pm.pstnqlfrtype.PstnQlfrType;
022    import org.kuali.kpme.pm.service.base.PmServiceLocator;
023    import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
024    
025    public class ClassificationQualification extends PersistableBusinessObjectBase implements ClassificationQualificationContract {
026            private static final long serialVersionUID = 1L;
027            
028            private String pmClassificationQualificationId;
029            private String qualificationType;
030            private String typeValue;               // for GUI only
031            private String qualifier;
032            private String qualificationValue;
033            private String pmPositionClassId;
034            private String displayOrder;
035                    
036            public String getQualificationType() {
037                    return qualificationType;
038            }
039    
040            public void setQualificationType(String qualificationType) {
041                    this.qualificationType = qualificationType;
042            }
043    
044            public String getQualifier() {
045                    return qualifier;
046            }
047    
048            public void setQualifier(String qualifier) {
049                    this.qualifier = qualifier;
050            }
051    
052            public String getQualificationValue() {
053                    return qualificationValue;
054            }
055    
056            public void setQualificationValue(String qualificationValue) {
057                    this.qualificationValue = qualificationValue;
058            }
059    
060            public String getPmPositionClassId() {
061                    return pmPositionClassId;
062            }
063    
064            public void setPmPositionClassId(String pmPositionClassId) {
065                    this.pmPositionClassId = pmPositionClassId;
066            }
067    
068            public String getDisplayOrder() {
069                    return displayOrder;
070            }
071    
072            public void setDisplayOrder(String displayOrder) {
073                    this.displayOrder = displayOrder;
074            }
075    
076            public String getPmClassificationQualificationId() {
077                    return pmClassificationQualificationId;
078            }
079    
080            public void setPmClassificationQualificationId(
081                            String pmClassificationQualificationId) {
082                    this.pmClassificationQualificationId = pmClassificationQualificationId;
083            }
084    
085            public String getTypeValue() {
086                    if(StringUtils.isNotEmpty(this.getQualificationType())) {
087                            PstnQlfrType aTypeObj = PmServiceLocator.getPstnQlfrTypeService().getPstnQlfrTypeById(this.getQualificationType());
088                            if(aTypeObj != null) {
089                                    return aTypeObj.getTypeValue();
090                            }
091                    }
092                    return "";
093            }
094    
095            public void setTypeValue(String typeValue) {
096                    this.typeValue = typeValue;
097            }
098    
099    }