001 /*
002 * Copyright 2007-2009 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.rice.kim.bo.entity.dto;
017
018 import org.kuali.rice.kim.bo.entity.KimEntityEmploymentInformation;
019 import org.kuali.rice.kns.util.KualiDecimal;
020
021 /**
022 * @author Kuali Rice Team (rice.collab@kuali.org)
023 */
024 public class KimEntityEmploymentInformationInfo extends KimInactivatableInfo implements KimEntityEmploymentInformation {
025
026 private static final long serialVersionUID = 1L;
027
028 protected String entityEmploymentId;
029 protected String employeeId;
030 protected String employmentRecordId;
031 protected String entityAffiliationId;
032 protected String employeeStatusCode;
033 protected String employeeTypeCode;
034 protected String primaryDepartmentCode;
035 protected KualiDecimal baseSalaryAmount;
036 protected boolean primary = true;
037
038 /**
039 *
040 */
041 public KimEntityEmploymentInformationInfo() {
042 super();
043 active = true;
044 }
045
046 /**
047 *
048 */
049 public KimEntityEmploymentInformationInfo( KimEntityEmploymentInformation eei ) {
050 this();
051 if ( eei != null ) {
052 entityEmploymentId = eei.getEntityEmploymentId();
053 employeeId = eei.getEmployeeId();
054 employmentRecordId = eei.getEmploymentRecordId();
055 entityAffiliationId = eei.getEntityAffiliationId();
056 employeeStatusCode = eei.getEmployeeStatusCode();
057 employeeTypeCode = eei.getEmployeeTypeCode();
058 primaryDepartmentCode = eei.getPrimaryDepartmentCode();
059 baseSalaryAmount = eei.getBaseSalaryAmount();
060 primary = eei.isPrimary();
061 active = eei.isActive();
062 }
063 }
064
065 /**
066 * {@inheritDoc}
067 * @see org.kuali.rice.kim.bo.entity.KimEntityEmploymentInformation#getEntityEmploymentId()
068 */
069 public String getEntityEmploymentId() {
070 return entityEmploymentId;
071 }
072
073 /**
074 * @param entityEmploymentId the entityEmploymentId to set
075 */
076 public void setEntityEmploymentId(String entityEmploymentId) {
077 this.entityEmploymentId = entityEmploymentId;
078 }
079
080 /**
081 * {@inheritDoc}
082 * @see org.kuali.rice.kim.bo.entity.KimEntityEmploymentInformation#getEmployeeId()
083 */
084 public String getEmployeeId() {
085 return employeeId;
086 }
087
088 /**
089 * @param employeeId the employeeId to set
090 */
091 public void setEmployeeId(String employeeId) {
092 this.employeeId = employeeId;
093 }
094
095 /**
096 * {@inheritDoc}
097 * @see org.kuali.rice.kim.bo.entity.KimEntityEmploymentInformation#getEmploymentRecordId()
098 */
099 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 }