001 /**
002 * Copyright 2004-2012 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.hr.earncodesec;
017
018 import java.sql.Date;
019 import java.sql.Timestamp;
020
021 import org.kuali.hr.core.KPMEConstants;
022 import org.kuali.hr.job.Job;
023 import org.kuali.hr.location.Location;
024 import org.kuali.hr.time.HrBusinessObject;
025 import org.kuali.hr.time.department.Department;
026 import org.kuali.hr.time.earncode.EarnCode;
027 import org.kuali.hr.time.salgroup.SalGroup;
028
029 public class EarnCodeSecurity extends HrBusinessObject {
030 public static final String CACHE_NAME = KPMEConstants.APPLICATION_NAMESPACE_CODE + "/" + "EarnCodeSecurity";
031 /**
032 *
033 */
034 private static final long serialVersionUID = 1L;
035 private String hrEarnCodeSecurityId;
036 private String dept;
037 private String hrSalGroup;
038 private String earnCode;
039 private boolean employee;
040 private boolean approver;
041 private String location;
042 private String earnCodeType;
043
044 private String hrDeptId;
045 private String hrSalGroupId;
046 private String hrEarnCodeId;
047 private String hrLocationId;
048
049 private SalGroup salGroupObj;
050 private Department departmentObj;
051 private EarnCode earnCodeObj;
052 private Job jobObj;
053 private Location locationObj;
054 private String history;
055
056 public String getHrEarnCodeSecurityId() {
057 return hrEarnCodeSecurityId;
058 }
059
060 public void setHrEarnCodeSecurityId(String hrEarnCodeSecurityId) {
061 this.hrEarnCodeSecurityId = hrEarnCodeSecurityId;
062 }
063
064 public String getEarnCodeType() {
065 return earnCodeType;
066 }
067
068 public void setEarnCodeType(String earnCodeType) {
069 this.earnCodeType = earnCodeType;
070 }
071
072 public SalGroup getSalGroupObj() {
073 return salGroupObj;
074 }
075
076
077 public void setSalGroupObj(SalGroup salGroupObj) {
078 this.salGroupObj = salGroupObj;
079 }
080
081
082 public Department getDepartmentObj() {
083 return departmentObj;
084 }
085
086
087 public void setDepartmentObj(Department departmentObj) {
088 this.departmentObj = departmentObj;
089 }
090
091 public boolean isEmployee() {
092 return employee;
093 }
094
095
096 public void setEmployee(boolean employee) {
097 this.employee = employee;
098 }
099
100
101 public boolean isApprover() {
102 return approver;
103 }
104
105
106 public void setApprover(boolean approver) {
107 this.approver = approver;
108 }
109
110
111 public EarnCode getEarnCodeObj() {
112 return earnCodeObj;
113 }
114
115
116 public void setEarnCodeObj(EarnCode earnCodeObj) {
117 this.earnCodeObj = earnCodeObj;
118 }
119
120 public String getDept() {
121 return dept;
122 }
123 public void setDept(String dept) {
124 this.dept = dept;
125 }
126 public String getHrSalGroup() {
127 return hrSalGroup;
128 }
129 public void setHrSalGroup(String hrSalGroup) {
130 this.hrSalGroup = hrSalGroup;
131 }
132 public String getEarnCode() {
133 return earnCode;
134 }
135 public void setEarnCode(String earnCode) {
136 this.earnCode = earnCode;
137 }
138 public Date getEffectiveDate() {
139 return effectiveDate;
140 }
141 public void setEffectiveDate(Date effectiveDate) {
142 this.effectiveDate = effectiveDate;
143 }
144 public Timestamp getTimestamp() {
145 return timestamp;
146 }
147 public void setTimestamp(Timestamp timestamp) {
148 this.timestamp = timestamp;
149 }
150 public Boolean getActive() {
151 return active;
152 }
153 public void setActive(Boolean active) {
154 this.active = active;
155 }
156 public Job getJobObj() {
157 return jobObj;
158 }
159 public void setJobObj(Job jobObj) {
160 this.jobObj = jobObj;
161 }
162
163 public Location getLocationObj() {
164 return locationObj;
165 }
166 public void setLocationObj(Location locationObj) {
167 this.locationObj = locationObj;
168 }
169 public String getLocation() {
170 return location;
171 }
172 public void setLocation(String location) {
173 this.location = location;
174 }
175 public String getHrDeptId() {
176 return hrDeptId;
177 }
178 public void setHrDeptId(String hrDeptId) {
179 this.hrDeptId = hrDeptId;
180 }
181 public String getHrSalGroupId() {
182 return hrSalGroupId;
183 }
184 public void setHrSalGroupId(String hrSalGroupId) {
185 this.hrSalGroupId = hrSalGroupId;
186 }
187 public String getHrEarnCodeId() {
188 return hrEarnCodeId;
189 }
190 public void setHrEarnCodeId(String hrEarnCodeId) {
191 this.hrEarnCodeId = hrEarnCodeId;
192 }
193 public String getHrLocationId() {
194 return hrLocationId;
195 }
196 public void setHrLocationId(String hrLocationId) {
197 this.hrLocationId = hrLocationId;
198 }
199 @Override
200 public String getUniqueKey() {
201 return dept + "_" + hrSalGroup + "_" + earnCode;
202 }
203 public String getHistory() {
204 return history;
205 }
206 public void setHistory(String history) {
207 this.history = history;
208 }
209
210 @Override
211 public String getId() {
212 return getHrEarnCodeSecurityId();
213 }
214 @Override
215 public void setId(String id) {
216 setHrEarnCodeSecurityId(id);
217 }
218
219
220 }