View Javadoc
1   /**
2    * Copyright 2005-2015 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.rice.krad.uif.util;
17  
18  import java.util.List;
19  import java.util.Map;
20  
21  import org.kuali.rice.core.api.util.type.KualiDecimal;
22  import org.kuali.rice.kim.api.identity.Person;
23  
24  /**
25   * Mock person implementation.
26   */
27  public class MockPerson implements Person {
28  
29      private static final long serialVersionUID = 5330488987382249417L;
30  
31      private final String id;
32  
33      public MockPerson() {
34          id = null;
35      }
36      
37      MockPerson(String id) {
38          this.id = id;
39      }
40  
41      @Override
42      public void refresh() {}
43  
44      @Override
45      public String getPrincipalId() {
46          return id;
47      }
48  
49      @Override
50      public String getPrincipalName() {
51          return id;
52      }
53  
54      @Override
55      public String getEntityId() {
56          return id;
57      }
58  
59      @Override
60      public String getEntityTypeCode() {
61          return null;
62      }
63  
64      @Override
65      public String getFirstName() {
66          return "Test";
67      }
68  
69      @Override
70      public String getFirstNameUnmasked() {
71          return "Test";
72      }
73  
74      @Override
75      public String getMiddleName() {
76          return "User";
77      }
78  
79      @Override
80      public String getMiddleNameUnmasked() {
81          return "User";
82      }
83  
84      @Override
85      public String getLastName() {
86          return id;
87      }
88  
89      @Override
90      public String getLastNameUnmasked() {
91          return id;
92      }
93  
94      @Override
95      public String getName() {
96          return "Test User " + id;
97      }
98  
99      @Override
100     public String getNameUnmasked() {
101         return "Test User " + id;
102     }
103 
104     @Override
105     public String getEmailAddress() {
106         return null;
107     }
108 
109     @Override
110     public String getEmailAddressUnmasked() {
111         return null;
112     }
113 
114     @Override
115     public String getAddressLine1() {
116         return null;
117     }
118 
119     @Override
120     public String getAddressLine1Unmasked() {
121         return null;
122     }
123 
124     @Override
125     public String getAddressLine2() {
126         return null;
127     }
128 
129     @Override
130     public String getAddressLine2Unmasked() {
131         return null;
132     }
133 
134     @Override
135     public String getAddressLine3() {
136         return null;
137     }
138 
139     @Override
140     public String getAddressLine3Unmasked() {
141         return null;
142     }
143 
144     @Override
145     public String getAddressCity() {
146         return null;
147     }
148 
149     @Override
150     public String getAddressCityUnmasked() {
151         return null;
152     }
153 
154     @Override
155     public String getAddressStateProvinceCode() {
156         return null;
157     }
158 
159     @Override
160     public String getAddressStateProvinceCodeUnmasked() {
161         return null;
162     }
163 
164     @Override
165     public String getAddressPostalCode() {
166         return null;
167     }
168 
169     @Override
170     public String getAddressPostalCodeUnmasked() {
171         return null;
172     }
173 
174     @Override
175     public String getAddressCountryCode() {
176         return null;
177     }
178 
179     @Override
180     public String getAddressCountryCodeUnmasked() {
181         return null;
182     }
183 
184     @Override
185     public String getPhoneNumber() {
186         return null;
187     }
188 
189     @Override
190     public String getPhoneNumberUnmasked() {
191         return null;
192     }
193 
194     @Override
195     public String getCampusCode() {
196         return null;
197     }
198 
199     @Override
200     public Map<String, String> getExternalIdentifiers() {
201         return null;
202     }
203 
204     @Override
205     public boolean hasAffiliationOfType(String affiliationTypeCode) {
206         return false;
207     }
208 
209     @Override
210     public List<String> getCampusCodesForAffiliationOfType(String affiliationTypeCode) {
211         return null;
212     }
213 
214     @Override
215     public String getEmployeeStatusCode() {
216         return null;
217     }
218 
219     @Override
220     public String getEmployeeTypeCode() {
221         return null;
222     }
223 
224     @Override
225     public KualiDecimal getBaseSalaryAmount() {
226         return null;
227     }
228 
229     @Override
230     public String getExternalId(String externalIdentifierTypeCode) {
231         return null;
232     }
233 
234     @Override
235     public String getPrimaryDepartmentCode() {
236         return null;
237     }
238 
239     @Override
240     public String getEmployeeId() {
241         return null;
242     }
243 
244     @Override
245     public boolean isActive() {
246         return true;
247     }
248 
249 }