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.time.base.web; 017 018 import java.util.ArrayList; 019 import java.util.HashMap; 020 import java.util.List; 021 import java.util.Map; 022 023 import org.kuali.hr.job.Job; 024 import org.kuali.hr.time.assignment.Assignment; 025 import org.kuali.hr.time.roles.TkRole; 026 import org.kuali.rice.kim.api.identity.Person; 027 028 public class PersonInfoActionForm extends TkForm { 029 030 private static final long serialVersionUID = 2258434545502362548L; 031 032 private String principalId; 033 private String principalName; 034 private String name; 035 //KPME-1441 036 private String serviceDate; 037 private String totalFTE; 038 039 040 //KPME-1441 041 private List<Job> jobs = new ArrayList<Job>(); 042 private Map<Long,List<Assignment>> jobNumberToListAssignments = new HashMap<Long,List<Assignment>>(); 043 044 private List<Long> approverWorkAreas = new ArrayList<Long>(); 045 private List<Long> reviewerWorkAreas = new ArrayList<Long>(); 046 private List<String> deptAdminDepts = new ArrayList<String>(); 047 private List<String> locationAdminDepts = new ArrayList<String>(); 048 private Boolean systemAdmin = Boolean.FALSE; 049 private Boolean globalViewOnlyRoles = Boolean.FALSE; 050 private List<String> deptViewOnlyDepts = new ArrayList<String>(); 051 052 private Map<Long,List<TkRole>> workAreaToApprover = new HashMap<Long,List<TkRole>>(); 053 private Map<String,List<TkRole>> deptToOrgAdmin = new HashMap<String,List<TkRole>>(); 054 private Map<String,Person> principalIdToPerson = new HashMap<String,Person>(); 055 private Map<Long,List<Person>> workAreaToApproverPerson = new HashMap<Long, List<Person>>(); 056 private Map<String,List<Person>> deptToDeptAdminPerson = new HashMap<String, List<Person>>(); 057 058 public String getName() { 059 return name; 060 } 061 062 public void setName(String name) { 063 this.name = name; 064 } 065 066 public String getServiceDate() { 067 return serviceDate; 068 } 069 070 public void setServiceDate(String serviceDate) { 071 this.serviceDate = serviceDate; 072 } 073 074 public Map<Long, List<Assignment>> getJobNumberToListAssignments() { 075 return jobNumberToListAssignments; 076 } 077 078 public void setJobNumberToListAssignments( 079 Map<Long, List<Assignment>> jobNumberToListAssignments) { 080 this.jobNumberToListAssignments = jobNumberToListAssignments; 081 } 082 083 public Map<Long, List<TkRole>> getWorkAreaToApprover() { 084 return workAreaToApprover; 085 } 086 087 public void setWorkAreaToApprover(Map<Long, List<TkRole>> workAreaToApprover) { 088 this.workAreaToApprover = workAreaToApprover; 089 } 090 091 public Map<String, List<TkRole>> getDeptToOrgAdmin() { 092 return deptToOrgAdmin; 093 } 094 095 public void setDeptToOrgAdmin(Map<String, List<TkRole>> deptToOrgAdmin) { 096 this.deptToOrgAdmin = deptToOrgAdmin; 097 } 098 099 public Map<String, Person> getPrincipalIdToPerson() { 100 return principalIdToPerson; 101 } 102 103 public void setPrincipalIdToPerson(Map<String, Person> principalIdToPerson) { 104 this.principalIdToPerson = principalIdToPerson; 105 } 106 107 public Map<Long,List<Person>> getWorkAreaToApproverPerson() { 108 return workAreaToApproverPerson; 109 } 110 111 public void setWorkAreaToApproverPerson(Map<Long,List<Person>> workAreaToApproverPerson) { 112 this.workAreaToApproverPerson = workAreaToApproverPerson; 113 } 114 115 public List<Job> getJobs() { 116 return jobs; 117 } 118 119 public void setJobs(List<Job> jobs) { 120 this.jobs = jobs; 121 } 122 123 public String getPrincipalId() { 124 return principalId; 125 } 126 127 public void setPrincipalId(String principalId) { 128 this.principalId = principalId; 129 } 130 131 public String getPrincipalName() { 132 return principalName; 133 } 134 135 public void setPrincipalName(String principalName) { 136 this.principalName = principalName; 137 } 138 139 public List<Long> getApproverWorkAreas() { 140 return approverWorkAreas; 141 } 142 143 public void setApproverWorkAreas(List<Long> approverWorkAreas) { 144 this.approverWorkAreas = approverWorkAreas; 145 } 146 147 public List<Long> getReviewerWorkAreas() { 148 return reviewerWorkAreas; 149 } 150 151 public void setReviewerWorkAreas(List<Long> reviewerWorkAreas) { 152 this.reviewerWorkAreas = reviewerWorkAreas; 153 } 154 155 public List<String> getDeptAdminDepts() { 156 return deptAdminDepts; 157 } 158 159 public void setDeptAdminDepts(List<String> deptAdminDepts) { 160 this.deptAdminDepts = deptAdminDepts; 161 } 162 163 public List<String> getLocationAdminDepts() { 164 return locationAdminDepts; 165 } 166 167 public void setLocationAdminDepts(List<String> locationAdminDepts) { 168 this.locationAdminDepts = locationAdminDepts; 169 } 170 171 public Boolean getSystemAdmin() { 172 return systemAdmin; 173 } 174 175 public void setSystemAdmin(Boolean systemAdmin) { 176 this.systemAdmin = systemAdmin; 177 } 178 179 public Boolean getGlobalViewOnlyRoles() { 180 return globalViewOnlyRoles; 181 } 182 183 public void setGlobalViewOnlyRoles(Boolean globalViewOnlyRoles) { 184 this.globalViewOnlyRoles = globalViewOnlyRoles; 185 } 186 187 public List<String> getDeptViewOnlyDepts() { 188 return deptViewOnlyDepts; 189 } 190 191 public void setDeptViewOnlyDepts(List<String> deptViewOnlyDepts) { 192 this.deptViewOnlyDepts = deptViewOnlyDepts; 193 } 194 195 public Map<String, List<Person>> getDeptToDeptAdminPerson() { 196 return deptToDeptAdminPerson; 197 } 198 199 public void setDeptToDeptAdminPerson(Map<String, List<Person>> deptToDeptAdminPerson) { 200 this.deptToDeptAdminPerson = deptToDeptAdminPerson; 201 } 202 203 public String getTotalFTE() { 204 return totalFTE; 205 } 206 207 public void setTotalFTE(String totalFTE) { 208 this.totalFTE = totalFTE; 209 } 210 }