View Javadoc

1   /**
2    * Copyright 2010 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  
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  		// TODO Auto-generated method stub
52  		return null;
53  	}
54  
55  	@Override
56  	public ObjectStructureDefinition getObjectStructure(String objectTypeKey) {
57  		// TODO Auto-generated method stub
58  		return null;
59  	}
60  
61  	@Override
62  	public List<String> getRefObjectTypes() throws OperationFailedException {
63  		// TODO Auto-generated method stub
64  		return null;
65  	}
66  
67  	@Override
68  	public List<String> getRefObjectSubTypes(String objectTypeKey)
69  			throws DoesNotExistException, InvalidParameterException,
70  			MissingParameterException, OperationFailedException {
71  		// TODO Auto-generated method stub
72  		return null;
73  	}
74  
75  	@Override
76  	public List<NlUsageTypeInfo> getNlUsageTypes()
77  			throws OperationFailedException {
78  		// TODO Auto-generated method stub
79  		return null;
80  	}
81  
82  	@Override
83  	public NlUsageTypeInfo getNlUsageType(String nlUsageTypeKey)
84  			throws DoesNotExistException, InvalidParameterException,
85  			MissingParameterException, OperationFailedException {
86  		// TODO Auto-generated method stub
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  		// TODO Auto-generated method stub
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 		// TODO Auto-generated method stub
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 		// TODO Auto-generated method stub
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 		// TODO Auto-generated method stub
128 		return null;
129 	}
130 
131 	@Override
132 	public RefStatementRelationInfo getRefStatementRelation(
133 			String refStatementRelationId) throws DoesNotExistException,
134 			InvalidParameterException, MissingParameterException,
135 			OperationFailedException {
136 		// TODO Auto-generated method stub
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 		// TODO Auto-generated method stub
146 		return null;
147 	}
148 
149 	@Override
150 	public List<RefStatementRelationInfo> getRefStatementRelationsByStatement(
151 			String statementId) throws DoesNotExistException,
152 			InvalidParameterException, MissingParameterException,
153 			OperationFailedException {
154 		// TODO Auto-generated method stub
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 		// TODO Auto-generated method stub
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 		// TODO Auto-generated method stub
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 		// TODO Auto-generated method stub
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 		// TODO Auto-generated method stub
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 		// TODO Auto-generated method stub
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 		// TODO Auto-generated method stub
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 		// TODO Auto-generated method stub
219 		return null;
220 	}
221 
222 	@Override
223 	public StatementInfo getStatement(String statementId)
224 			throws DoesNotExistException, InvalidParameterException,
225 			MissingParameterException, OperationFailedException {
226 		// TODO Auto-generated method stub
227 		return null;
228 	}
229 
230 	@Override
231 	public List<StatementInfo> getStatementsByType(String statementTypeKey)
232 			throws DoesNotExistException, InvalidParameterException,
233 			MissingParameterException, OperationFailedException {
234 		// TODO Auto-generated method stub
235 		return null;
236 	}
237 
238 	@Override
239 	public ReqComponentInfo getReqComponent(String reqComponentId)
240 			throws DoesNotExistException, InvalidParameterException,
241 			MissingParameterException, OperationFailedException {
242 		// TODO Auto-generated method stub
243 		return null;
244 	}
245 
246 	@Override
247 	public List<ReqComponentInfo> getReqComponentsByType(
248 			String reqComponentTypeKey) throws DoesNotExistException,
249 			InvalidParameterException, MissingParameterException,
250 			OperationFailedException {
251 		// TODO Auto-generated method stub
252 		return null;
253 	}
254 
255 	@Override
256 	public List<StatementInfo> getStatementsUsingReqComponent(
257 			String reqComponentId) throws DoesNotExistException,
258 			InvalidParameterException, MissingParameterException,
259 			OperationFailedException {
260 		// TODO Auto-generated method stub
261 		return null;
262 	}
263 
264 	@Override
265 	public List<StatementInfo> getStatementsUsingStatement(String statementId)
266 			throws DoesNotExistException, InvalidParameterException,
267 			MissingParameterException, OperationFailedException {
268 		// TODO Auto-generated method stub
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 		// TODO Auto-generated method stub
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 		// TODO Auto-generated method stub
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 		// TODO Auto-generated method stub
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 		// TODO Auto-generated method stub
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 		// TODO Auto-generated method stub
318 		return null;
319 	}
320 
321 	@Override
322 	public StatementTypeInfo getStatementType(String statementTypeKey)
323 			throws DoesNotExistException, InvalidParameterException,
324 			MissingParameterException, OperationFailedException {
325 		// TODO Auto-generated method stub
326 		return null;
327 	}
328 
329 	@Override
330 	public List<StatementTypeInfo> getStatementTypes()
331 			throws OperationFailedException {
332 		// TODO Auto-generated method stub
333 		return null;
334 	}
335 
336 	@Override
337 	public List<String> getStatementTypesForStatementType(
338 			String statementTypeKey) throws DoesNotExistException,
339 			InvalidParameterException, MissingParameterException,
340 			OperationFailedException {
341 		// TODO Auto-generated method stub
342 		return null;
343 	}
344 
345 	@Override
346 	public List<ReqComponentTypeInfo> getReqComponentTypes()
347 			throws OperationFailedException {
348 		// TODO Auto-generated method stub
349 		return null;
350 	}
351 
352 	@Override
353 	public ReqComponentTypeInfo getReqComponentType(String reqComponentTypeKey)
354 			throws DoesNotExistException, InvalidParameterException,
355 			MissingParameterException, OperationFailedException {
356 		// TODO Auto-generated method stub
357 		return null;
358 	}
359 
360 	@Override
361 	public List<ReqComponentTypeInfo> getReqComponentTypesForStatementType(
362 			String statementTypeKey) throws DoesNotExistException,
363 			InvalidParameterException, MissingParameterException,
364 			OperationFailedException {
365 		// TODO Auto-generated method stub
366 		return null;
367 	}
368 
369 	@Override
370 	public List<RefStatementRelationTypeInfo> getRefStatementRelationTypes()
371 			throws OperationFailedException {
372 		// TODO Auto-generated method stub
373 		return null;
374 	}
375 
376 	@Override
377 	public RefStatementRelationTypeInfo getRefStatementRelationType(
378 			String refStatementRelationTypeKey) throws DoesNotExistException,
379 			InvalidParameterException, MissingParameterException,
380 			OperationFailedException {
381 		// TODO Auto-generated method stub
382 		return null;
383 	}
384 
385 	@Override
386 	public List<String> getStatementTypesForRefStatementRelationType(
387 			String refStatementRelationTypeKey) throws DoesNotExistException,
388 			InvalidParameterException, MissingParameterException,
389 			OperationFailedException {
390 		// TODO Auto-generated method stub
391 		return null;
392 	}
393 
394 	@Override
395 	public List<String> getRefStatementRelationTypesForRefObjectSubType(
396 			String refSubTypeKey) throws DoesNotExistException,
397 			InvalidParameterException, MissingParameterException,
398 			OperationFailedException {
399 		// TODO Auto-generated method stub
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 		// TODO Auto-generated method stub
411 		return null;
412 	}
413 
414 	@Override
415 	public StatementTreeViewInfo getStatementTreeView(String statementId)
416 			throws DoesNotExistException, InvalidParameterException,
417 			MissingParameterException, OperationFailedException {
418 		// TODO Auto-generated method stub
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 		// TODO Auto-generated method stub
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 		// TODO Auto-generated method stub
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 		// TODO Auto-generated method stub
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 		// TODO Auto-generated method stub
459 		return null;
460 	}
461 
462 
463     //from before the service contract change:
464 
465     // getLuStatement
466     // return (LuStatementInfo) map.get(luStatementId);
467 
468     // getLuStatements
469     /*
470      * List<LuStatementInfo> list = new ArrayList<LuStatementInfo>(); for(String id : luStatementIdList) { LuStatementInfo
471      * stmt = (LuStatementInfo) map.get(id); list.add(stmt); } return list;
472      */
473 
474     // getLuStatementType
475     // return (LuStatementTypeInfo) map.get(luStatementTypeKey);
476     
477     // getReqComponent
478     // return (ReqComponentInfo) map.get(reqComponentId);
479     
480     // getReqComponents
481     /*
482      * List<ReqComponentInfo> list = new ArrayList<ReqComponentInfo>(); for(String id : reqComponentIdList) {
483      * ReqComponentInfo req = (ReqComponentInfo) map.get(id); list.add(req); } return list;
484      */
485 
486     @Override
487     public List<TypeInfo> getSearchTypes(@WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException {
488         return null;  //To change body of implemented methods use File | Settings | File Templates.
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;  //To change body of implemented methods use File | Settings | File Templates.
494     }
495 
496 
497     @Override
498     public SearchResultInfo search(SearchRequestInfo searchRequestInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws MissingParameterException, OperationFailedException, PermissionDeniedException {
499         return null;  //To change body of implemented methods use File | Settings | File Templates.
500     }
501 }