1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.lum.ui.requirements.util;
17
18 import org.kuali.student.r1.common.dictionary.dto.ObjectStructureDefinition;
19 import org.kuali.student.r1.core.statement.dto.*;
20 import org.kuali.student.r1.core.statement.service.StatementService;
21 import org.kuali.student.r2.common.dto.ContextInfo;
22 import org.kuali.student.r2.common.dto.ValidationResultInfo;
23 import org.kuali.student.r2.common.exceptions.*;
24 import org.kuali.student.r2.core.search.dto.SearchRequestInfo;
25 import org.kuali.student.r2.core.search.dto.SearchResultInfo;
26 import org.kuali.student.r2.core.class1.type.dto.TypeInfo;
27
28 import javax.jws.WebParam;
29 import java.util.HashMap;
30 import java.util.List;
31 import java.util.Map;
32
33 public class StatementServiceMock implements StatementService {
34
35 private Map<String, Object> map = new HashMap<String, Object>();
36
37 public void addObject(String key, Object value) {
38 this.map.put(key, value);
39 }
40
41 public void addAll(Map<String, Object> map) {
42 this.map.putAll(map);
43 }
44
45 public void clear() {
46 this.map.clear();
47 }
48
49 @Override
50 public List<String> getObjectTypes() {
51
52 return null;
53 }
54
55 @Override
56 public ObjectStructureDefinition getObjectStructure(String objectTypeKey) {
57
58 return null;
59 }
60
61 @Override
62 public List<String> getRefObjectTypes() throws OperationFailedException {
63
64 return null;
65 }
66
67 @Override
68 public List<String> getRefObjectSubTypes(String objectTypeKey)
69 throws DoesNotExistException, InvalidParameterException,
70 MissingParameterException, OperationFailedException {
71
72 return null;
73 }
74
75 @Override
76 public List<NlUsageTypeInfo> getNlUsageTypes()
77 throws OperationFailedException {
78
79 return null;
80 }
81
82 @Override
83 public NlUsageTypeInfo getNlUsageType(String nlUsageTypeKey)
84 throws DoesNotExistException, InvalidParameterException,
85 MissingParameterException, OperationFailedException {
86
87 return null;
88 }
89
90 @Override
91 public RefStatementRelationInfo createRefStatementRelation(
92 RefStatementRelationInfo refStatementRelationInfo)
93 throws AlreadyExistsException, DoesNotExistException,
94 InvalidParameterException, MissingParameterException,
95 OperationFailedException, PermissionDeniedException {
96
97 return null;
98 }
99
100 @Override
101 public RefStatementRelationInfo updateRefStatementRelation(
102 String refStatementRelationId,
103 RefStatementRelationInfo refStatementRelationInfo)
104 throws DataValidationErrorException, DoesNotExistException,
105 InvalidParameterException, MissingParameterException,
106 OperationFailedException, PermissionDeniedException,
107 VersionMismatchException {
108
109 return null;
110 }
111
112 @Override
113 public org.kuali.student.r1.common.dto.StatusInfo deleteRefStatementRelation(
114 String refStatementRelationId) throws DoesNotExistException,
115 InvalidParameterException, MissingParameterException,
116 OperationFailedException, PermissionDeniedException {
117
118 return null;
119 }
120
121 @Override
122 public List<ValidationResultInfo> validateRefStatementRelation(
123 String validationType,
124 RefStatementRelationInfo refStatementRelationInfo)
125 throws DoesNotExistException, InvalidParameterException,
126 MissingParameterException, OperationFailedException {
127
128 return null;
129 }
130
131 @Override
132 public RefStatementRelationInfo getRefStatementRelation(
133 String refStatementRelationId) throws DoesNotExistException,
134 InvalidParameterException, MissingParameterException,
135 OperationFailedException {
136
137 return null;
138 }
139
140 @Override
141 public List<RefStatementRelationInfo> getRefStatementRelationsByRef(
142 String refObjectTypeKey, String refObjectId)
143 throws DoesNotExistException, InvalidParameterException,
144 MissingParameterException, OperationFailedException {
145
146 return null;
147 }
148
149 @Override
150 public List<RefStatementRelationInfo> getRefStatementRelationsByStatement(
151 String statementId) throws DoesNotExistException,
152 InvalidParameterException, MissingParameterException,
153 OperationFailedException {
154
155 return null;
156 }
157
158 @Override
159 public String getNaturalLanguageForStatement(String statementId,
160 String nlUsageTypeKey, String language)
161 throws DoesNotExistException, InvalidParameterException,
162 MissingParameterException, OperationFailedException {
163
164 return null;
165 }
166
167 @Override
168 public String getNaturalLanguageForRefStatementRelation(
169 String refStatementRelationId, String nlUsageTypeKey,
170 String language) throws DoesNotExistException,
171 InvalidParameterException, MissingParameterException,
172 OperationFailedException {
173
174 return null;
175 }
176
177 @Override
178 public String getNaturalLanguageForReqComponent(String reqComponentId,
179 String nlUsageTypeKey, String language)
180 throws DoesNotExistException, InvalidParameterException,
181 MissingParameterException, OperationFailedException {
182
183 return null;
184 }
185
186 @Override
187 public String translateStatementTreeViewToNL(
188 StatementTreeViewInfo statementTreeViewInfo, String nlUsageTypeKey,
189 String language) throws InvalidParameterException,
190 MissingParameterException, OperationFailedException {
191
192 return null;
193 }
194
195 @Override
196 public String translateReqComponentToNL(ReqComponentInfo reqComponentInfo,
197 String nlUsageTypeKey, String language)
198 throws InvalidParameterException, MissingParameterException,
199 OperationFailedException {
200
201 return null;
202 }
203
204 @Override
205 public List<ValidationResultInfo> validateReqComponent(
206 String validationType, ReqComponentInfo reqComponentInfo)
207 throws DoesNotExistException, InvalidParameterException,
208 MissingParameterException, OperationFailedException {
209
210 return null;
211 }
212
213 @Override
214 public List<ValidationResultInfo> validateStatement(
215 String validationType, StatementInfo statementInfo)
216 throws DoesNotExistException, InvalidParameterException,
217 MissingParameterException, OperationFailedException {
218
219 return null;
220 }
221
222 @Override
223 public StatementInfo getStatement(String statementId)
224 throws DoesNotExistException, InvalidParameterException,
225 MissingParameterException, OperationFailedException {
226
227 return null;
228 }
229
230 @Override
231 public List<StatementInfo> getStatementsByType(String statementTypeKey)
232 throws DoesNotExistException, InvalidParameterException,
233 MissingParameterException, OperationFailedException {
234
235 return null;
236 }
237
238 @Override
239 public ReqComponentInfo getReqComponent(String reqComponentId)
240 throws DoesNotExistException, InvalidParameterException,
241 MissingParameterException, OperationFailedException {
242
243 return null;
244 }
245
246 @Override
247 public List<ReqComponentInfo> getReqComponentsByType(
248 String reqComponentTypeKey) throws DoesNotExistException,
249 InvalidParameterException, MissingParameterException,
250 OperationFailedException {
251
252 return null;
253 }
254
255 @Override
256 public List<StatementInfo> getStatementsUsingReqComponent(
257 String reqComponentId) throws DoesNotExistException,
258 InvalidParameterException, MissingParameterException,
259 OperationFailedException {
260
261 return null;
262 }
263
264 @Override
265 public List<StatementInfo> getStatementsUsingStatement(String statementId)
266 throws DoesNotExistException, InvalidParameterException,
267 MissingParameterException, OperationFailedException {
268
269 return null;
270 }
271
272 @Override
273 public ReqComponentInfo createReqComponent(String reqComponentType,
274 ReqComponentInfo reqComponentInfo) throws AlreadyExistsException,
275 DataValidationErrorException, DoesNotExistException,
276 InvalidParameterException, MissingParameterException,
277 OperationFailedException, PermissionDeniedException {
278
279 return null;
280 }
281
282 @Override
283 public org.kuali.student.r1.common.dto.StatusInfo deleteReqComponent(
284 String reqComponentId) throws DoesNotExistException,
285 InvalidParameterException, MissingParameterException,
286 OperationFailedException, PermissionDeniedException {
287
288 return null;
289 }
290
291 @Override
292 public StatementInfo createStatement(String statementType,
293 StatementInfo statementInfo) throws AlreadyExistsException,
294 DataValidationErrorException, DoesNotExistException,
295 InvalidParameterException, MissingParameterException,
296 OperationFailedException, PermissionDeniedException {
297
298 return null;
299 }
300
301 @Override
302 public StatementInfo updateStatement(String statementId,
303 StatementInfo statementInfo) throws CircularReferenceException,
304 DataValidationErrorException, DoesNotExistException,
305 InvalidParameterException, MissingParameterException,
306 OperationFailedException, PermissionDeniedException,
307 VersionMismatchException {
308
309 return null;
310 }
311
312 @Override
313 public org.kuali.student.r1.common.dto.StatusInfo deleteStatement(
314 String statementId) throws DoesNotExistException,
315 InvalidParameterException, MissingParameterException,
316 OperationFailedException, PermissionDeniedException {
317
318 return null;
319 }
320
321 @Override
322 public StatementTypeInfo getStatementType(String statementTypeKey)
323 throws DoesNotExistException, InvalidParameterException,
324 MissingParameterException, OperationFailedException {
325
326 return null;
327 }
328
329 @Override
330 public List<StatementTypeInfo> getStatementTypes()
331 throws OperationFailedException {
332
333 return null;
334 }
335
336 @Override
337 public List<String> getStatementTypesForStatementType(
338 String statementTypeKey) throws DoesNotExistException,
339 InvalidParameterException, MissingParameterException,
340 OperationFailedException {
341
342 return null;
343 }
344
345 @Override
346 public List<ReqComponentTypeInfo> getReqComponentTypes()
347 throws OperationFailedException {
348
349 return null;
350 }
351
352 @Override
353 public ReqComponentTypeInfo getReqComponentType(String reqComponentTypeKey)
354 throws DoesNotExistException, InvalidParameterException,
355 MissingParameterException, OperationFailedException {
356
357 return null;
358 }
359
360 @Override
361 public List<ReqComponentTypeInfo> getReqComponentTypesForStatementType(
362 String statementTypeKey) throws DoesNotExistException,
363 InvalidParameterException, MissingParameterException,
364 OperationFailedException {
365
366 return null;
367 }
368
369 @Override
370 public List<RefStatementRelationTypeInfo> getRefStatementRelationTypes()
371 throws OperationFailedException {
372
373 return null;
374 }
375
376 @Override
377 public RefStatementRelationTypeInfo getRefStatementRelationType(
378 String refStatementRelationTypeKey) throws DoesNotExistException,
379 InvalidParameterException, MissingParameterException,
380 OperationFailedException {
381
382 return null;
383 }
384
385 @Override
386 public List<String> getStatementTypesForRefStatementRelationType(
387 String refStatementRelationTypeKey) throws DoesNotExistException,
388 InvalidParameterException, MissingParameterException,
389 OperationFailedException {
390
391 return null;
392 }
393
394 @Override
395 public List<String> getRefStatementRelationTypesForRefObjectSubType(
396 String refSubTypeKey) throws DoesNotExistException,
397 InvalidParameterException, MissingParameterException,
398 OperationFailedException {
399
400 return null;
401 }
402
403 @Override
404 public ReqComponentInfo updateReqComponent(String reqComponentId,
405 ReqComponentInfo reqComponentInfo)
406 throws DataValidationErrorException, DoesNotExistException,
407 InvalidParameterException, MissingParameterException,
408 OperationFailedException, PermissionDeniedException,
409 VersionMismatchException {
410
411 return null;
412 }
413
414 @Override
415 public StatementTreeViewInfo getStatementTreeView(String statementId)
416 throws DoesNotExistException, InvalidParameterException,
417 MissingParameterException, OperationFailedException {
418
419 return null;
420 }
421
422 @Override
423 public StatementTreeViewInfo getStatementTreeViewForNlUsageType(
424 String statementId, String nlUsageTypeKey, String language)
425 throws DoesNotExistException, InvalidParameterException,
426 MissingParameterException, OperationFailedException {
427
428 return null;
429 }
430
431 @Override
432 public StatementTreeViewInfo updateStatementTreeView(String statementId,
433 StatementTreeViewInfo statementTreeViewInfo)
434 throws CircularReferenceException, DataValidationErrorException,
435 DoesNotExistException, InvalidParameterException,
436 MissingParameterException, OperationFailedException,
437 PermissionDeniedException, VersionMismatchException {
438
439 return null;
440 }
441
442 @Override
443 public StatementTreeViewInfo createStatementTreeView(
444 StatementTreeViewInfo statementTreeViewInfo)
445 throws CircularReferenceException, AlreadyExistsException,
446 DataValidationErrorException, DoesNotExistException,
447 InvalidParameterException, MissingParameterException,
448 OperationFailedException, PermissionDeniedException {
449
450 return null;
451 }
452
453 @Override
454 public org.kuali.student.r1.common.dto.StatusInfo deleteStatementTreeView(
455 String statementId) throws DoesNotExistException,
456 InvalidParameterException, MissingParameterException,
457 OperationFailedException, PermissionDeniedException {
458
459 return null;
460 }
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486 @Override
487 public List<TypeInfo> getSearchTypes(@WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException {
488 return null;
489 }
490
491 @Override
492 public TypeInfo getSearchType(@WebParam(name = "searchTypeKey") String searchTypeKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
493 return null;
494 }
495
496
497 @Override
498 public SearchResultInfo search(SearchRequestInfo searchRequestInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws MissingParameterException, OperationFailedException, PermissionDeniedException {
499 return null;
500 }
501 }