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.time.base.web;
17  
18  import java.math.BigDecimal;
19  import java.util.ArrayList;
20  import java.util.HashMap;
21  import java.util.List;
22  import java.util.Map;
23  
24  import org.kuali.hr.job.Job;
25  import org.kuali.hr.lm.accrual.AccrualCategory;
26  import org.kuali.hr.time.assignment.Assignment;
27  import org.kuali.hr.time.roles.TkRole;
28  import org.kuali.rice.kim.api.identity.Person;
29  
30  public class PersonInfoActionForm extends TkForm {
31  
32      private static final long serialVersionUID = 2258434545502362548L;
33      
34      private String principalId;
35      private String principalName;
36      private String name;
37      //KPME-1441
38      private String serviceDate;
39      private String totalFTE;
40      
41      private List<AccrualCategory> accrualCategories = new ArrayList<AccrualCategory>();
42      private Map<String, BigDecimal> accrualCategoryRates = new HashMap<String, BigDecimal>();
43      private Map<String, String> accrualEarnIntervals = new HashMap<String, String>();
44      private Map<String, String> unitOfTime = new HashMap<String, String>();
45      
46      //KPME-1441
47      private List<Job> jobs = new ArrayList<Job>();
48      private Map<Long,List<Assignment>> jobNumberToListAssignments = new HashMap<Long,List<Assignment>>();
49  	
50      private List<Long> approverWorkAreas = new ArrayList<Long>();
51      private List<Long> reviewerWorkAreas = new ArrayList<Long>();
52      private List<String> deptAdminDepts = new ArrayList<String>();
53      private List<String> locationAdminDepts = new ArrayList<String>();
54      private Boolean systemAdmin = Boolean.FALSE;
55      private Boolean globalViewOnlyRoles = Boolean.FALSE;
56      private List<String> deptViewOnlyDepts = new ArrayList<String>();
57      
58      private Map<Long,List<TkRole>> workAreaToApprover = new HashMap<Long,List<TkRole>>();
59  	private Map<String,List<TkRole>> deptToOrgAdmin = new HashMap<String,List<TkRole>>();
60  	private Map<String,Person> principalIdToPerson = new HashMap<String,Person>();
61  	private Map<Long,List<Person>> workAreaToApproverPerson = new HashMap<Long, List<Person>>();
62      private Map<String,List<Person>> deptToDeptAdminPerson = new HashMap<String, List<Person>>();
63  
64  	public String getName() {
65  		return name;
66  	}
67  
68  	public void setName(String name) {
69  		this.name = name;
70  	}
71  	
72  	public String getServiceDate() {
73  		return serviceDate;
74  	}
75  
76  	public void setServiceDate(String serviceDate) {
77  		this.serviceDate = serviceDate;
78  	}
79  	
80  
81  	public Map<Long, List<Assignment>> getJobNumberToListAssignments() {
82  		return jobNumberToListAssignments;
83  	}
84  
85  	public void setJobNumberToListAssignments(
86  			Map<Long, List<Assignment>> jobNumberToListAssignments) {
87  		this.jobNumberToListAssignments = jobNumberToListAssignments;
88  	}
89  
90  	public Map<Long, List<TkRole>> getWorkAreaToApprover() {
91  		return workAreaToApprover;
92  	}
93  
94  	public void setWorkAreaToApprover(Map<Long, List<TkRole>> workAreaToApprover) {
95  		this.workAreaToApprover = workAreaToApprover;
96  	}
97  
98  	public Map<String, List<TkRole>> getDeptToOrgAdmin() {
99  		return deptToOrgAdmin;
100 	}
101 
102 	public void setDeptToOrgAdmin(Map<String, List<TkRole>> deptToOrgAdmin) {
103 		this.deptToOrgAdmin = deptToOrgAdmin;
104 	}
105 
106 	public Map<String, Person> getPrincipalIdToPerson() {
107 		return principalIdToPerson;
108 	}
109 
110 	public void setPrincipalIdToPerson(Map<String, Person> principalIdToPerson) {
111 		this.principalIdToPerson = principalIdToPerson;
112 	}
113 
114 	public Map<Long,List<Person>> getWorkAreaToApproverPerson() {
115 		return workAreaToApproverPerson;
116 	}
117 
118 	public void setWorkAreaToApproverPerson(Map<Long,List<Person>> workAreaToApproverPerson) {
119 		this.workAreaToApproverPerson = workAreaToApproverPerson;
120 	}
121 
122 	public List<AccrualCategory> getAccrualCategories() {
123 		return accrualCategories;
124 	}
125 
126 	public void setAccrualCategories(List<AccrualCategory> accrualCategories) {
127 		this.accrualCategories = accrualCategories;
128 	}
129 	
130 	public Map<String, BigDecimal> getAccrualCategoryRates() {
131 		return accrualCategoryRates;
132 	}
133 	
134 	public void setAccrualCategoryRates(Map<String, BigDecimal> accrualCategoryRates) {
135 		this.accrualCategoryRates = accrualCategoryRates;
136 	}
137 	
138 	public Map<String, String> getAccrualEarnIntervals() {
139 		return accrualEarnIntervals;
140 	}
141 
142 	public void setAccrualEarnIntervals(Map<String, String> accrualEarnIntervals) {
143 		this.accrualEarnIntervals = accrualEarnIntervals;
144 	}
145 
146 	public Map<String, String> getUnitOfTime() {
147 		return unitOfTime;
148 	}
149 
150 	public void setUnitOfTime(Map<String, String> unitOfTime) {
151 		this.unitOfTime = unitOfTime;
152 	}
153 
154 	public List<Job> getJobs() {
155 		return jobs;
156 	}
157 
158 	public void setJobs(List<Job> jobs) {
159 		this.jobs = jobs;
160 	}
161 
162 	public String getPrincipalId() {
163 		return principalId;
164 	}
165 
166 	public void setPrincipalId(String principalId) {
167 		this.principalId = principalId;
168 	}
169 
170 	public String getPrincipalName() {
171 		return principalName;
172 	}
173 
174 	public void setPrincipalName(String principalName) {
175 		this.principalName = principalName;
176 	}
177 
178 	public List<Long> getApproverWorkAreas() {
179 		return approverWorkAreas;
180 	}
181 
182 	public void setApproverWorkAreas(List<Long> approverWorkAreas) {
183 		this.approverWorkAreas = approverWorkAreas;
184 	}
185 
186 	public List<Long> getReviewerWorkAreas() {
187 		return reviewerWorkAreas;
188 	}
189 
190 	public void setReviewerWorkAreas(List<Long> reviewerWorkAreas) {
191 		this.reviewerWorkAreas = reviewerWorkAreas;
192 	}
193 
194 	public List<String> getDeptAdminDepts() {
195 		return deptAdminDepts;
196 	}
197 
198 	public void setDeptAdminDepts(List<String> deptAdminDepts) {
199 		this.deptAdminDepts = deptAdminDepts;
200 	}
201 
202 	public List<String> getLocationAdminDepts() {
203 		return locationAdminDepts;
204 	}
205 
206 	public void setLocationAdminDepts(List<String> locationAdminDepts) {
207 		this.locationAdminDepts = locationAdminDepts;
208 	}
209 
210 	public Boolean getSystemAdmin() {
211 		return systemAdmin;
212 	}
213 
214 	public void setSystemAdmin(Boolean systemAdmin) {
215 		this.systemAdmin = systemAdmin;
216 	}
217 
218 	public Boolean getGlobalViewOnlyRoles() {
219 		return globalViewOnlyRoles;
220 	}
221 
222 	public void setGlobalViewOnlyRoles(Boolean globalViewOnlyRoles) {
223 		this.globalViewOnlyRoles = globalViewOnlyRoles;
224 	}
225 
226 	public List<String> getDeptViewOnlyDepts() {
227 		return deptViewOnlyDepts;
228 	}
229 
230 	public void setDeptViewOnlyDepts(List<String> deptViewOnlyDepts) {
231 		this.deptViewOnlyDepts = deptViewOnlyDepts;
232 	}
233 
234     public Map<String, List<Person>> getDeptToDeptAdminPerson() {
235         return deptToDeptAdminPerson;
236     }
237 
238     public void setDeptToDeptAdminPerson(Map<String, List<Person>> deptToDeptAdminPerson) {
239         this.deptToDeptAdminPerson = deptToDeptAdminPerson;
240     }
241 
242 	public String getTotalFTE() {
243 		return totalFTE;
244 	}
245 
246 	public void setTotalFTE(String totalFTE) {
247 		this.totalFTE = totalFTE;
248 	} 
249 }