View Javadoc

1   /*
2    * Copyright 2007-2009 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.rice.kim.bo.entity.dto;
17  
18  import org.kuali.rice.core.util.type.KualiDecimal;
19  import org.kuali.rice.kim.bo.entity.KimEntityEmploymentInformation;
20  
21  /**
22   * @author Kuali Rice Team (rice.collab@kuali.org)
23   */
24  public class KimEntityEmploymentInformationInfo extends KimInactivatableInfo implements KimEntityEmploymentInformation {
25  
26  	private static final long serialVersionUID = 1L;
27  
28  	protected String entityEmploymentId;
29  	protected String employeeId;
30  	protected String employmentRecordId;
31  	protected String entityAffiliationId;
32  	protected String employeeStatusCode;
33  	protected String employeeTypeCode;
34  	protected String primaryDepartmentCode;
35  	protected KualiDecimal baseSalaryAmount;
36  	protected boolean primary = true;
37  
38  	/**
39  	 * 
40  	 */
41  	public KimEntityEmploymentInformationInfo() {
42  		super();
43  		active = true;
44  	}
45  	
46  	/**
47  	 * 
48  	 */
49  	public KimEntityEmploymentInformationInfo( KimEntityEmploymentInformation eei ) {
50  		this();
51  		if ( eei != null ) {
52  			entityEmploymentId = eei.getEntityEmploymentId();
53  			employeeId = eei.getEmployeeId();
54  			employmentRecordId = eei.getEmploymentRecordId();
55  			entityAffiliationId = eei.getEntityAffiliationId();
56  			employeeStatusCode = eei.getEmployeeStatusCode();
57  			employeeTypeCode = eei.getEmployeeTypeCode();
58  			primaryDepartmentCode = eei.getPrimaryDepartmentCode();
59  			baseSalaryAmount = eei.getBaseSalaryAmount();
60  			primary = eei.isPrimary();
61  			active = eei.isActive();
62  		}
63  	}
64  
65  	/**
66  	 * {@inheritDoc} 
67  	 * @see org.kuali.rice.kim.bo.entity.KimEntityEmploymentInformation#getEntityEmploymentId()
68  	 */
69  	public String getEntityEmploymentId() {
70  		return entityEmploymentId;
71  	}
72  
73  	/**
74  	 * @param entityEmploymentId the entityEmploymentId to set
75  	 */
76  	public void setEntityEmploymentId(String entityEmploymentId) {
77  		this.entityEmploymentId = entityEmploymentId;
78  	}
79  
80  	/**
81  	 * {@inheritDoc} 
82  	 * @see org.kuali.rice.kim.bo.entity.KimEntityEmploymentInformation#getEmployeeId()
83  	 */
84  	public String getEmployeeId() {
85  		return employeeId;
86  	}
87  
88  	/**
89  	 * @param employeeId the employeeId to set
90  	 */
91  	public void setEmployeeId(String employeeId) {
92  		this.employeeId = employeeId;
93  	}
94  
95  	/**
96  	 * {@inheritDoc} 
97  	 * @see org.kuali.rice.kim.bo.entity.KimEntityEmploymentInformation#getEmploymentRecordId()
98  	 */
99  	public String getEmploymentRecordId() {
100 		return employmentRecordId;
101 	}
102 
103 	/**
104 	 * @param employmentRecordId the employmentRecordId to set
105 	 */
106 	public void setEmploymentRecordId(String employmentRecordId) {
107 		this.employmentRecordId = employmentRecordId;
108 	}
109 
110 	/**
111 	 * {@inheritDoc} 
112 	 * @see org.kuali.rice.kim.bo.entity.KimEntityEmploymentInformation#getEntityAffiliationId()
113 	 */
114 	public String getEntityAffiliationId() {
115 		return entityAffiliationId;
116 	}
117 
118 	/**
119 	 * @param entityAffiliationId the entityAffiliationId to set
120 	 */
121 	public void setEntityAffiliationId(String entityAffiliationId) {
122 		this.entityAffiliationId = entityAffiliationId;
123 	}
124 
125 	/**
126 	 * {@inheritDoc} 
127 	 * @see org.kuali.rice.kim.bo.entity.KimEntityEmploymentInformation#getEmployeeStatusCode()
128 	 */
129 	public String getEmployeeStatusCode() {
130 		return employeeStatusCode;
131 	}
132 
133 	/**
134 	 * @param employeeStatusCode the employeeStatusCode to set
135 	 */
136 	public void setEmployeeStatusCode(String employeeStatusCode) {
137 		this.employeeStatusCode = employeeStatusCode;
138 	}
139 
140 	/**
141 	 * {@inheritDoc} 
142 	 * @see org.kuali.rice.kim.bo.entity.KimEntityEmploymentInformation#getEmployeeTypeCode()
143 	 */
144 	public String getEmployeeTypeCode() {
145 		return employeeTypeCode;
146 	}
147 
148 	/**
149 	 * @param employeeTypeCode the employeeTypeCode to set
150 	 */
151 	public void setEmployeeTypeCode(String employeeTypeCode) {
152 		this.employeeTypeCode = employeeTypeCode;
153 	}
154 
155 	/**
156 	 * {@inheritDoc} 
157 	 * @see org.kuali.rice.kim.bo.entity.KimEntityEmploymentInformation#getPrimaryDepartmentCode()
158 	 */
159 	public String getPrimaryDepartmentCode() {
160 		return primaryDepartmentCode;
161 	}
162 
163 	/**
164 	 * @param primaryDepartmentCode the primaryDepartmentCode to set
165 	 */
166 	public void setPrimaryDepartmentCode(String primaryDepartmentCode) {
167 		this.primaryDepartmentCode = primaryDepartmentCode;
168 	}
169 
170 	/**
171 	 * {@inheritDoc} 
172 	 * @see org.kuali.rice.kim.bo.entity.KimEntityEmploymentInformation#getBaseSalaryAmount()
173 	 */
174 	public KualiDecimal getBaseSalaryAmount() {
175 		return baseSalaryAmount;
176 	}
177 
178 	/**
179 	 * @param baseSalaryAmount the baseSalaryAmount to set
180 	 */
181 	public void setBaseSalaryAmount(KualiDecimal baseSalaryAmount) {
182 		this.baseSalaryAmount = baseSalaryAmount;
183 	}
184 
185 	/**
186 	 * @return the primary
187 	 */
188 	public boolean isPrimary() {
189 		return this.primary;
190 	}
191 
192 	/**
193 	 * @param primary the primary to set
194 	 */
195 	public void setPrimary(boolean primary) {
196 		this.primary = primary;
197 	}
198 	
199 }