View Javadoc

1   /**
2    * Copyright 2004-2012 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.util.ArrayList;
19  import java.util.HashMap;
20  import java.util.List;
21  import java.util.Map;
22  
23  import org.kuali.hr.job.Job;
24  import org.kuali.hr.time.assignment.Assignment;
25  import org.kuali.hr.time.roles.TkRole;
26  import org.kuali.rice.kim.api.identity.Person;
27  
28  public class PersonInfoActionForm extends TkForm {
29  
30      private static final long serialVersionUID = 2258434545502362548L;
31      
32      private String principalId;
33      private String principalName;
34      private String name;
35      //KPME-1441
36      private String serviceDate;
37      private String totalFTE;
38      
39         
40      //KPME-1441
41      private List<Job> jobs = new ArrayList<Job>();
42      private Map<Long,List<Assignment>> jobNumberToListAssignments = new HashMap<Long,List<Assignment>>();
43  	
44      private List<Long> approverWorkAreas = new ArrayList<Long>();
45      private List<Long> reviewerWorkAreas = new ArrayList<Long>();
46      private List<String> deptAdminDepts = new ArrayList<String>();
47      private List<String> locationAdminDepts = new ArrayList<String>();
48      private Boolean systemAdmin = Boolean.FALSE;
49      private Boolean globalViewOnlyRoles = Boolean.FALSE;
50      private List<String> deptViewOnlyDepts = new ArrayList<String>();
51      
52      private Map<Long,List<TkRole>> workAreaToApprover = new HashMap<Long,List<TkRole>>();
53  	private Map<String,List<TkRole>> deptToOrgAdmin = new HashMap<String,List<TkRole>>();
54  	private Map<String,Person> principalIdToPerson = new HashMap<String,Person>();
55  	private Map<Long,List<Person>> workAreaToApproverPerson = new HashMap<Long, List<Person>>();
56      private Map<String,List<Person>> deptToDeptAdminPerson = new HashMap<String, List<Person>>();
57  
58  	public String getName() {
59  		return name;
60  	}
61  
62  	public void setName(String name) {
63  		this.name = name;
64  	}
65  	
66  	public String getServiceDate() {
67  		return serviceDate;
68  	}
69  
70  	public void setServiceDate(String serviceDate) {
71  		this.serviceDate = serviceDate;
72  	}
73  
74  	public Map<Long, List<Assignment>> getJobNumberToListAssignments() {
75  		return jobNumberToListAssignments;
76  	}
77  
78  	public void setJobNumberToListAssignments(
79  			Map<Long, List<Assignment>> jobNumberToListAssignments) {
80  		this.jobNumberToListAssignments = jobNumberToListAssignments;
81  	}
82  
83  	public Map<Long, List<TkRole>> getWorkAreaToApprover() {
84  		return workAreaToApprover;
85  	}
86  
87  	public void setWorkAreaToApprover(Map<Long, List<TkRole>> workAreaToApprover) {
88  		this.workAreaToApprover = workAreaToApprover;
89  	}
90  
91  	public Map<String, List<TkRole>> getDeptToOrgAdmin() {
92  		return deptToOrgAdmin;
93  	}
94  
95  	public void setDeptToOrgAdmin(Map<String, List<TkRole>> deptToOrgAdmin) {
96  		this.deptToOrgAdmin = deptToOrgAdmin;
97  	}
98  
99  	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 }