001    /**
002     * Copyright 2004-2013 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.time.base.web;
017    
018    import java.math.BigDecimal;
019    import java.util.ArrayList;
020    import java.util.HashMap;
021    import java.util.List;
022    import java.util.Map;
023    
024    import org.kuali.hr.job.Job;
025    import org.kuali.hr.lm.accrual.AccrualCategory;
026    import org.kuali.hr.time.assignment.Assignment;
027    import org.kuali.hr.time.roles.TkRole;
028    import org.kuali.rice.kim.api.identity.Person;
029    
030    public class PersonInfoActionForm extends TkForm {
031    
032        private static final long serialVersionUID = 2258434545502362548L;
033        
034        private String principalId;
035        private String principalName;
036        private String name;
037        //KPME-1441
038        private String serviceDate;
039        private String totalFTE;
040        
041        private List<AccrualCategory> accrualCategories = new ArrayList<AccrualCategory>();
042        private Map<String, BigDecimal> accrualCategoryRates = new HashMap<String, BigDecimal>();
043        private Map<String, String> accrualEarnIntervals = new HashMap<String, String>();
044        private Map<String, String> unitOfTime = new HashMap<String, String>();
045        
046        //KPME-1441
047        private List<Job> jobs = new ArrayList<Job>();
048        private Map<Long,List<Assignment>> jobNumberToListAssignments = new HashMap<Long,List<Assignment>>();
049            
050        private List<Long> approverWorkAreas = new ArrayList<Long>();
051        private List<Long> reviewerWorkAreas = new ArrayList<Long>();
052        private List<String> deptAdminDepts = new ArrayList<String>();
053        private List<String> locationAdminDepts = new ArrayList<String>();
054        private Boolean systemAdmin = Boolean.FALSE;
055        private Boolean globalViewOnlyRoles = Boolean.FALSE;
056        private List<String> deptViewOnlyDepts = new ArrayList<String>();
057        
058        private Map<Long,List<TkRole>> workAreaToApprover = new HashMap<Long,List<TkRole>>();
059            private Map<String,List<TkRole>> deptToOrgAdmin = new HashMap<String,List<TkRole>>();
060            private Map<String,Person> principalIdToPerson = new HashMap<String,Person>();
061            private Map<Long,List<Person>> workAreaToApproverPerson = new HashMap<Long, List<Person>>();
062        private Map<String,List<Person>> deptToDeptAdminPerson = new HashMap<String, List<Person>>();
063    
064            public String getName() {
065                    return name;
066            }
067    
068            public void setName(String name) {
069                    this.name = name;
070            }
071            
072            public String getServiceDate() {
073                    return serviceDate;
074            }
075    
076            public void setServiceDate(String serviceDate) {
077                    this.serviceDate = serviceDate;
078            }
079            
080    
081            public Map<Long, List<Assignment>> getJobNumberToListAssignments() {
082                    return jobNumberToListAssignments;
083            }
084    
085            public void setJobNumberToListAssignments(
086                            Map<Long, List<Assignment>> jobNumberToListAssignments) {
087                    this.jobNumberToListAssignments = jobNumberToListAssignments;
088            }
089    
090            public Map<Long, List<TkRole>> getWorkAreaToApprover() {
091                    return workAreaToApprover;
092            }
093    
094            public void setWorkAreaToApprover(Map<Long, List<TkRole>> workAreaToApprover) {
095                    this.workAreaToApprover = workAreaToApprover;
096            }
097    
098            public Map<String, List<TkRole>> getDeptToOrgAdmin() {
099                    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    }