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.kpme.pm.position;
17  
18  import org.apache.commons.lang.StringUtils;
19  import org.kuali.kpme.pm.api.position.PositionQualificationContract;
20  import org.kuali.kpme.pm.pstnqlfrtype.PstnQlfrType;
21  import org.kuali.kpme.pm.service.base.PmServiceLocator;
22  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
23  
24  public class PositionQualification extends PersistableBusinessObjectBase implements PositionQualificationContract {
25  	private static final long serialVersionUID = 1L;
26  	
27  	private String pmQualificationId;
28  	private String qualificationType;
29  	private String typeValue;		// for GUI only
30  	private String qualifier;
31  	private String qualificationValue;
32  	private String hrPositionId;
33  		
34  	public String getQualificationType() {
35  		return qualificationType;
36  	}
37  
38  	public void setQualificationType(String qualificationType) {
39  		this.qualificationType = qualificationType;
40  	}
41  
42  	public String getQualifier() {
43  		return qualifier;
44  	}
45  
46  	public void setQualifier(String qualifier) {
47  		this.qualifier = qualifier;
48  	}
49  
50  	public String getQualificationValue() {
51  		return qualificationValue;
52  	}
53  
54  	public void setQualificationValue(String qualificationValue) {
55  		this.qualificationValue = qualificationValue;
56  	}
57  
58  	public String getTypeValue() {
59  		if(StringUtils.isNotEmpty(this.getQualificationType())) {
60  			PstnQlfrType aTypeObj = PmServiceLocator.getPstnQlfrTypeService().getPstnQlfrTypeById(this.getQualificationType());
61  			if(aTypeObj != null) {
62  				return aTypeObj.getTypeValue();
63  			}
64  		}
65  		return "";
66  	}
67  
68  	public void setTypeValue(String typeValue) {
69  		this.typeValue = typeValue;
70  	}
71  
72  	public String getPmQualificationId() {
73  		return pmQualificationId;
74  	}
75  
76  	public void setPmQualificationId(String pmQualificationId) {
77  		this.pmQualificationId = pmQualificationId;
78  	}
79  
80  	public String getHrPositionId() {
81  		return hrPositionId;
82  	}
83  
84  	public void setHrPositionId(String hrPositionId) {
85  		this.hrPositionId = hrPositionId;
86  	}
87  
88  }