View Javadoc

1   /**
2    * Copyright 2012 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10   * software distributed under the License is distributed on an "AS IS"
11   * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12   * or implied. See the License for the specific language governing
13   * permissions and limitations under the License.
14   *
15   * Created by Daniel on 7/9/12
16   */
17  package org.kuali.student.enrollment.class2.courseoffering.service.impl;
18  
19  import org.kuali.rice.core.api.util.type.KualiDecimal;
20  import org.kuali.rice.kim.api.identity.Person;
21  import org.kuali.rice.kim.api.identity.PersonService;
22  import org.kuali.rice.kim.api.identity.entity.EntityDefault;
23  import org.kuali.rice.krad.bo.BusinessObject;
24  import org.kuali.student.r1.core.personsearch.service.impl.KsPerson;
25  
26  import java.util.ArrayList;
27  import java.util.List;
28  import java.util.Map;
29  
30  /**
31   * This class //TODO ...
32   *
33   * @author Kuali Student Team
34   */
35  public class PersonServiceMockImpl implements PersonService {
36      @Override
37      public Person getPerson(final String s) {
38          return new Person(){
39  
40              @Override
41              public String getPrincipalId() {
42                  return s;  //To change body of implemented methods use File | Settings | File Templates.
43              }
44  
45              @Override
46              public String getPrincipalName() {
47                  return null;  //To change body of implemented methods use File | Settings | File Templates.
48              }
49  
50              @Override
51              public String getEntityId() {
52                  return null;  //To change body of implemented methods use File | Settings | File Templates.
53              }
54  
55              @Override
56              public String getEntityTypeCode() {
57                  return null;  //To change body of implemented methods use File | Settings | File Templates.
58              }
59  
60              @Override
61              public String getFirstName() {
62                  return null;  //To change body of implemented methods use File | Settings | File Templates.
63              }
64  
65              @Override
66              public String getFirstNameUnmasked() {
67                  return null;  //To change body of implemented methods use File | Settings | File Templates.
68              }
69  
70              @Override
71              public String getMiddleName() {
72                  return null;  //To change body of implemented methods use File | Settings | File Templates.
73              }
74  
75              @Override
76              public String getMiddleNameUnmasked() {
77                  return null;  //To change body of implemented methods use File | Settings | File Templates.
78              }
79  
80              @Override
81              public String getLastName() {
82                  return null;  //To change body of implemented methods use File | Settings | File Templates.
83              }
84  
85              @Override
86              public String getLastNameUnmasked() {
87                  return null;  //To change body of implemented methods use File | Settings | File Templates.
88              }
89  
90              @Override
91              public String getName() {
92                  return null;  //To change body of implemented methods use File | Settings | File Templates.
93              }
94  
95              @Override
96              public String getNameUnmasked() {
97                  return null;  //To change body of implemented methods use File | Settings | File Templates.
98              }
99  
100             @Override
101             public String getEmailAddress() {
102                 return null;  //To change body of implemented methods use File | Settings | File Templates.
103             }
104 
105             @Override
106             public String getEmailAddressUnmasked() {
107                 return null;  //To change body of implemented methods use File | Settings | File Templates.
108             }
109 
110             @Override
111             public String getAddressLine1() {
112                 return null;  //To change body of implemented methods use File | Settings | File Templates.
113             }
114 
115             @Override
116             public String getAddressLine1Unmasked() {
117                 return null;  //To change body of implemented methods use File | Settings | File Templates.
118             }
119 
120             @Override
121             public String getAddressLine2() {
122                 return null;  //To change body of implemented methods use File | Settings | File Templates.
123             }
124 
125             @Override
126             public String getAddressLine2Unmasked() {
127                 return null;  //To change body of implemented methods use File | Settings | File Templates.
128             }
129 
130             @Override
131             public String getAddressLine3() {
132                 return null;  //To change body of implemented methods use File | Settings | File Templates.
133             }
134 
135             @Override
136             public String getAddressLine3Unmasked() {
137                 return null;  //To change body of implemented methods use File | Settings | File Templates.
138             }
139 
140             @Override
141             public String getAddressCity() {
142                 return null;  //To change body of implemented methods use File | Settings | File Templates.
143             }
144 
145             @Override
146             public String getAddressCityUnmasked() {
147                 return null;  //To change body of implemented methods use File | Settings | File Templates.
148             }
149 
150             @Override
151             public String getAddressStateProvinceCode() {
152                 return null;  //To change body of implemented methods use File | Settings | File Templates.
153             }
154 
155             @Override
156             public String getAddressStateProvinceCodeUnmasked() {
157                 return null;  //To change body of implemented methods use File | Settings | File Templates.
158             }
159 
160             @Override
161             public String getAddressPostalCode() {
162                 return null;  //To change body of implemented methods use File | Settings | File Templates.
163             }
164 
165             @Override
166             public String getAddressPostalCodeUnmasked() {
167                 return null;  //To change body of implemented methods use File | Settings | File Templates.
168             }
169 
170             @Override
171             public String getAddressCountryCode() {
172                 return null;  //To change body of implemented methods use File | Settings | File Templates.
173             }
174 
175             @Override
176             public String getAddressCountryCodeUnmasked() {
177                 return null;  //To change body of implemented methods use File | Settings | File Templates.
178             }
179 
180             @Override
181             public String getPhoneNumber() {
182                 return null;  //To change body of implemented methods use File | Settings | File Templates.
183             }
184 
185             @Override
186             public String getPhoneNumberUnmasked() {
187                 return null;  //To change body of implemented methods use File | Settings | File Templates.
188             }
189 
190             @Override
191             public String getCampusCode() {
192                 return null;  //To change body of implemented methods use File | Settings | File Templates.
193             }
194 
195             @Override
196             public Map<String, String> getExternalIdentifiers() {
197                 return null;  //To change body of implemented methods use File | Settings | File Templates.
198             }
199 
200             @Override
201             public boolean hasAffiliationOfType(String affiliationTypeCode) {
202                 return false;  //To change body of implemented methods use File | Settings | File Templates.
203             }
204 
205             @Override
206             public List<String> getCampusCodesForAffiliationOfType(String affiliationTypeCode) {
207                 return null;  //To change body of implemented methods use File | Settings | File Templates.
208             }
209 
210             @Override
211             public String getEmployeeStatusCode() {
212                 return null;  //To change body of implemented methods use File | Settings | File Templates.
213             }
214 
215             @Override
216             public String getEmployeeTypeCode() {
217                 return null;  //To change body of implemented methods use File | Settings | File Templates.
218             }
219 
220             @Override
221             public KualiDecimal getBaseSalaryAmount() {
222                 return null;  //To change body of implemented methods use File | Settings | File Templates.
223             }
224 
225             @Override
226             public String getExternalId(String externalIdentifierTypeCode) {
227                 return null;  //To change body of implemented methods use File | Settings | File Templates.
228             }
229 
230             @Override
231             public String getPrimaryDepartmentCode() {
232                 return null;  //To change body of implemented methods use File | Settings | File Templates.
233             }
234 
235             @Override
236             public String getEmployeeId() {
237                 return null;  //To change body of implemented methods use File | Settings | File Templates.
238             }
239 
240             @Override
241             public boolean isActive() {
242                 return false;  //To change body of implemented methods use File | Settings | File Templates.
243             }
244 
245             @Override
246             public void refresh() {
247                 //To change body of implemented methods use File | Settings | File Templates.
248             }
249         };
250     }
251 
252     @Override
253     public List<Person> getPersonByExternalIdentifier(String s, String s1) {
254         throw new UnsupportedOperationException("Not supported yet.");
255     }
256 
257     @Override
258     public Person getPersonByPrincipalName(String s) {
259         throw new UnsupportedOperationException("Not supported yet.");
260     }
261 
262     @Override
263     public Person getPersonByEmployeeId(String s) {
264         throw new UnsupportedOperationException("Not supported yet.");
265     }
266 
267     @Override
268     public List<Person> findPeople(Map<String, String> stringStringMap) {
269         // added a return of an empty list to avoid breaking services that may call this during testing
270         return new ArrayList<Person>(0);
271     }
272 
273     @Override
274     public List<Person> findPeople(Map<String, String> stringStringMap, boolean b) {
275         throw new UnsupportedOperationException("Not supported yet.");
276     }
277 
278     @Override
279     public Class<? extends Person> getPersonImplementationClass() {
280         throw new UnsupportedOperationException("Not supported yet.");
281     }
282 
283     @Override
284     public Map<String, String> resolvePrincipalNamesToPrincipalIds(BusinessObject businessObject, Map<String, String> stringStringMap) {
285         throw new UnsupportedOperationException("Not supported yet.");
286     }
287 
288     @Override
289     public Person updatePersonIfNecessary(String s, Person person) {
290         throw new UnsupportedOperationException("Not supported yet.");
291     }
292 }