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.hr.earncodesec;
17  
18  import java.sql.Date;
19  import java.sql.Timestamp;
20  
21  import org.kuali.hr.core.KPMEConstants;
22  import org.kuali.hr.job.Job;
23  import org.kuali.hr.location.Location;
24  import org.kuali.hr.time.HrBusinessObject;
25  import org.kuali.hr.time.department.Department;
26  import org.kuali.hr.time.earncode.EarnCode;
27  import org.kuali.hr.time.salgroup.SalGroup;
28  
29  public class EarnCodeSecurity extends HrBusinessObject {
30      public static final String CACHE_NAME = KPMEConstants.APPLICATION_NAMESPACE_CODE + "/" + "EarnCodeSecurity";
31  	/**
32  	 *
33  	 */
34  	private static final long serialVersionUID = 1L;
35  	private String hrEarnCodeSecurityId;
36  	private String dept;
37  	private String hrSalGroup;
38  	private String earnCode;
39  	private boolean employee;
40  	private boolean approver;
41  	private String location;
42  	private String earnCodeType;
43  	
44  	private String hrDeptId;
45  	private String hrSalGroupId;
46  	private String hrEarnCodeId;
47  	private String hrLocationId;
48  
49  	private SalGroup  salGroupObj;
50  	private Department departmentObj;
51  	private EarnCode earnCodeObj;
52      private Job jobObj;
53      private Location locationObj;
54      private String history;
55  
56  	public String getHrEarnCodeSecurityId() {
57  		return hrEarnCodeSecurityId;
58  	}
59  
60  	public void setHrEarnCodeSecurityId(String hrEarnCodeSecurityId) {
61  		this.hrEarnCodeSecurityId = hrEarnCodeSecurityId;
62  	}
63  
64  	public String getEarnCodeType() {
65  		return earnCodeType;
66  	}
67  
68  	public void setEarnCodeType(String earnCodeType) {
69  		this.earnCodeType = earnCodeType;
70  	}
71  
72  	public SalGroup getSalGroupObj() {
73  		return salGroupObj;
74  	}
75  
76  
77  	public void setSalGroupObj(SalGroup salGroupObj) {
78  		this.salGroupObj = salGroupObj;
79  	}
80  
81  
82  	public Department getDepartmentObj() {
83  		return departmentObj;
84  	}
85  
86  
87  	public void setDepartmentObj(Department departmentObj) {
88  		this.departmentObj = departmentObj;
89  	}
90  	
91  	public boolean isEmployee() {
92  		return employee;
93  	}
94  
95  
96  	public void setEmployee(boolean employee) {
97  		this.employee = employee;
98  	}
99  
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 }