View Javadoc

1   /**
2    * Copyright 2004-2014 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.positionresponsibility;
17  
18  import java.math.BigDecimal;
19  
20  import org.kuali.kpme.core.bo.HrBusinessObject;
21  import org.kuali.kpme.pm.api.positionresponsibility.PositionResponsibilityContract;
22  import org.kuali.rice.location.impl.campus.CampusBo;
23  
24  
25  public class PositionResponsibility extends HrBusinessObject implements PositionResponsibilityContract {
26  
27  	/**
28  	 * 
29  	 */
30  	private static final long serialVersionUID = -1631206606795253956L;
31  	
32  	private String positionResponsibilityId;
33  	private String institution;
34  	private String location;
35  	private String positionResponsibilityOption;
36  	private BigDecimal percentTime;
37  	private String hrPositionId;
38  	private CampusBo campusObj;
39  
40  	public String getPositionResponsibilityId() {
41  		return positionResponsibilityId;
42  	}
43  
44  	public void setPositionResponsibilityId(String positionResponsibilityId) {
45  		this.positionResponsibilityId = positionResponsibilityId;
46  	}
47  
48  	public String getInstitution() {
49  		return institution;
50  	}
51  
52  	public void setInstitution(String institution) {
53  		this.institution = institution;
54  	}
55  
56  	public String getPositionResponsibilityOption() {
57  		return positionResponsibilityOption;
58  	}
59  
60  	public void setPositionResponsibilityOption(String positionResponsibilityOption) {
61  		this.positionResponsibilityOption = positionResponsibilityOption;
62  	}
63  
64  	
65  	public BigDecimal getPercentTime() {
66  		return percentTime;
67  	}
68  
69  	public void setPercentTime(BigDecimal percentTime) {
70  		this.percentTime = percentTime;
71  	}
72  
73  	@Override
74  	protected String getUniqueKey() {
75  		return this.getInstitution() + "_" + this.getLocation();
76  	}
77  	
78  	public CampusBo getCampusObj() {
79  		return campusObj;
80  	}
81  
82  	public void setCampusObj(CampusBo campusObj) {
83  		this.campusObj = campusObj;
84  	}
85  
86  	public String getHrPositionId() {
87  		return hrPositionId;
88  	}
89  
90  	public void setHrPositionId(String hrPositionId) {
91  		this.hrPositionId = hrPositionId;
92  	}
93  
94  	@Override
95  	public String getId() {
96  		return this.getPositionResponsibilityId();
97  	}
98  
99  	@Override
100 	public void setId(String id) {
101 		this.setPositionResponsibilityId(id);
102 		
103 	}
104 
105 	public String getLocation() {
106 		return location;
107 	}
108 
109 	public void setLocation(String location) {
110 		this.location = location;
111 	}
112 
113 	
114 	
115 	
116 }