Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
LrcService |
|
| 1.0;1 |
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.lrc.service; | |
17 | ||
18 | import java.util.List; | |
19 | ||
20 | import javax.jws.WebParam; | |
21 | import javax.jws.WebService; | |
22 | import javax.jws.soap.SOAPBinding; | |
23 | ||
24 | import org.kuali.student.core.dto.StatusInfo; | |
25 | import org.kuali.student.core.exceptions.AlreadyExistsException; | |
26 | import org.kuali.student.core.exceptions.DataValidationErrorException; | |
27 | import org.kuali.student.core.exceptions.DoesNotExistException; | |
28 | import org.kuali.student.core.exceptions.InvalidParameterException; | |
29 | import org.kuali.student.core.exceptions.MissingParameterException; | |
30 | import org.kuali.student.core.exceptions.OperationFailedException; | |
31 | import org.kuali.student.core.exceptions.PermissionDeniedException; | |
32 | import org.kuali.student.core.exceptions.VersionMismatchException; | |
33 | import org.kuali.student.core.search.service.SearchService; | |
34 | import org.kuali.student.lum.lrc.dto.CredentialInfo; | |
35 | import org.kuali.student.lum.lrc.dto.CredentialTypeInfo; | |
36 | import org.kuali.student.lum.lrc.dto.CreditInfo; | |
37 | import org.kuali.student.lum.lrc.dto.CreditTypeInfo; | |
38 | import org.kuali.student.lum.lrc.dto.GradeInfo; | |
39 | import org.kuali.student.lum.lrc.dto.GradeTypeInfo; | |
40 | import org.kuali.student.lum.lrc.dto.ResultComponentInfo; | |
41 | import org.kuali.student.lum.lrc.dto.ResultComponentTypeInfo; | |
42 | import org.kuali.student.lum.lrc.dto.ScaleInfo; | |
43 | ||
44 | /** | |
45 | * | |
46 | * @Author KSContractMojo | |
47 | * @Author lindholm | |
48 | * @Since Tue Apr 21 14:09:46 PDT 2009 | |
49 | * @See <a href="https://test.kuali.org/confluence/display/KULSTU/Learning+Result+Catalog+Service">LrcService</> | |
50 | * | |
51 | */ | |
52 | @WebService(name = "LrcService", targetNamespace = "http://student.kuali.org/wsdl/lrc") | |
53 | @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) | |
54 | public interface LrcService extends SearchService { | |
55 | /** | |
56 | * Retrieves information on all credential types. | |
57 | * @return list of credential type information | |
58 | * @throws OperationFailedException unable to complete request | |
59 | */ | |
60 | public List<CredentialTypeInfo> getCredentialTypes() throws OperationFailedException; | |
61 | ||
62 | /** | |
63 | * Retrieves information on a specific credential type. | |
64 | * @param credentialTypeKey identifier for the credential type | |
65 | * @return information about a credential type | |
66 | * @throws DoesNotExistException credentialTypeKey not found | |
67 | * @throws InvalidParameterException invalid credentialTypeKey | |
68 | * @throws MissingParameterException missing credentialTypeKey | |
69 | * @throws OperationFailedException unable to complete request | |
70 | */ | |
71 | public CredentialTypeInfo getCredentialType(@WebParam(name="credentialTypeKey")String credentialTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException; | |
72 | ||
73 | /** | |
74 | * Retrieves information on all credit types. | |
75 | * @return list of credit type information | |
76 | * @throws OperationFailedException unable to complete request | |
77 | */ | |
78 | public List<CreditTypeInfo> getCreditTypes() throws OperationFailedException; | |
79 | ||
80 | /** | |
81 | * Retrieves information on a specific credit type. | |
82 | * @param creditTypeKey identifier for the credit type | |
83 | * @return information about a credit type | |
84 | * @throws DoesNotExistException creditTypeKey not found | |
85 | * @throws InvalidParameterException invalid creditTypeKey | |
86 | * @throws MissingParameterException missing creditTypeKey | |
87 | * @throws OperationFailedException unable to complete request | |
88 | */ | |
89 | public CreditTypeInfo getCreditType(@WebParam(name="creditTypeKey")String creditTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException; | |
90 | ||
91 | /** | |
92 | * Retrieves information on all grade types. | |
93 | * @return list of grade type information | |
94 | * @throws OperationFailedException unable to complete request | |
95 | */ | |
96 | public List<GradeTypeInfo> getGradeTypes() throws OperationFailedException; | |
97 | ||
98 | /** | |
99 | * Retrieves information on a specific grade type. | |
100 | * @param gradeTypeKey identifier for the grade type | |
101 | * @return information about a grade type | |
102 | * @throws DoesNotExistException gradeTypeKey not found | |
103 | * @throws InvalidParameterException invalid gradeTypeKey | |
104 | * @throws MissingParameterException missing gradeTypeKey | |
105 | * @throws OperationFailedException unable to complete request | |
106 | */ | |
107 | public GradeTypeInfo getGradeType(@WebParam(name="gradeTypeKey")String gradeTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException; | |
108 | ||
109 | /** | |
110 | * Retrieves information on all result component types. | |
111 | * @return list of result component type information | |
112 | * @throws OperationFailedException unable to complete request | |
113 | */ | |
114 | public List<ResultComponentTypeInfo> getResultComponentTypes() throws OperationFailedException; | |
115 | ||
116 | /** | |
117 | * Retrieves information on a specific result component type. | |
118 | * @param resultComponentTypeKey result component type key | |
119 | * @return information about a result component type | |
120 | * @throws DoesNotExistException resultComponentTypeKey not found | |
121 | * @throws InvalidParameterException invalid resultComponentTypeKey | |
122 | * @throws MissingParameterException missing resultComponentTypeKey | |
123 | * @throws OperationFailedException unable to complete request | |
124 | */ | |
125 | public ResultComponentTypeInfo getResultComponentType(@WebParam(name="resultComponentTypeKey")String resultComponentTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException; | |
126 | ||
127 | /** | |
128 | * Retrieves information on a specific credential by its identifier. | |
129 | * @param credentialKey credential identifier | |
130 | * @return information about a credential | |
131 | * @throws DoesNotExistException credentialKey not found | |
132 | * @throws InvalidParameterException invalid credentialKey | |
133 | * @throws MissingParameterException missing credentialKey | |
134 | * @throws OperationFailedException unable to complete request | |
135 | */ | |
136 | public CredentialInfo getCredential(@WebParam(name="credentialKey")String credentialKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException; | |
137 | ||
138 | /** | |
139 | * Retrieves a list of existing credentials by a list of identifiers. | |
140 | * @param credentialKeyList identifiers for credentials to be retrieved | |
141 | * @return details of the credentials for these ids | |
142 | * @throws DoesNotExistException credentialKey not found | |
143 | * @throws InvalidParameterException invalid credentialKeyList | |
144 | * @throws MissingParameterException invalid credentialKeyList | |
145 | * @throws OperationFailedException unable to complete request | |
146 | */ | |
147 | public List<CredentialInfo> getCredentialsByKeyList(@WebParam(name="credentialKeyList")List<String> credentialKeyList) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException; | |
148 | ||
149 | /** | |
150 | * Retrieves a list of credential identifiers for a specified credential type. | |
151 | * @param credentialTypeKey identifier for the credential type | |
152 | * @return list of credential identifiers | |
153 | * @throws DoesNotExistException credentialTypeKey not found | |
154 | * @throws InvalidParameterException invalid credentialTypeKey | |
155 | * @throws MissingParameterException missing credentialTypeKey | |
156 | * @throws OperationFailedException unable to complete request | |
157 | */ | |
158 | public List<String> getCredentialKeysByCredentialType(@WebParam(name="credentialTypeKey")String credentialTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException; | |
159 | ||
160 | /** | |
161 | * Retrieves information on a specific credit value by its identifier. | |
162 | * @param creditKey credit identifier | |
163 | * @return information about a credit value | |
164 | * @throws DoesNotExistException creditKey not found | |
165 | * @throws InvalidParameterException invalid creditKey | |
166 | * @throws MissingParameterException missing creditKey | |
167 | * @throws OperationFailedException unable to complete request | |
168 | */ | |
169 | public CreditInfo getCredit(@WebParam(name="creditKey")String creditKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException; | |
170 | ||
171 | /** | |
172 | * Retrieves a list of existing credit values by a list of identifiers. | |
173 | * @param creditKeyList identifiers for credit values to be retrieved | |
174 | * @return details of the credit values for these ids | |
175 | * @throws DoesNotExistException creditKey not found | |
176 | * @throws InvalidParameterException invalid creditKeyList | |
177 | * @throws MissingParameterException invalid creditKeyList | |
178 | * @throws OperationFailedException unable to complete request | |
179 | */ | |
180 | public List<CreditInfo> getCreditsByKeyList(@WebParam(name="creditKeyList")List<String> creditKeyList) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException; | |
181 | ||
182 | /** | |
183 | * Retrieves a list of credit identifiers for a specified credit type. | |
184 | * @param creditTypeKey identifier for the credit type | |
185 | * @return list of credit identifiers | |
186 | * @throws DoesNotExistException creditTypeKey not found | |
187 | * @throws InvalidParameterException invalid creditTypeKey | |
188 | * @throws MissingParameterException missing creditTypeKey | |
189 | * @throws OperationFailedException unable to complete request | |
190 | */ | |
191 | public List<String> getCreditKeysByCreditType(@WebParam(name="creditTypeKey")String creditTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException; | |
192 | ||
193 | /** | |
194 | * Retrieves information on a specific scale by its identifier. | |
195 | * @param scaleKey scale identifier | |
196 | * @return information about a scale | |
197 | * @throws DoesNotExistException scaleKey not found | |
198 | * @throws InvalidParameterException invalid scaleKey | |
199 | * @throws MissingParameterException missing scaleKey | |
200 | * @throws OperationFailedException unable to complete request | |
201 | */ | |
202 | public ScaleInfo getScale(@WebParam(name="scaleKey")String scaleKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException; | |
203 | ||
204 | /** | |
205 | * Retrieves information on a specific grade value by its identifier. | |
206 | * @param gradeKey grade value identifier | |
207 | * @return information about a grade value | |
208 | * @throws DoesNotExistException gradeKey not found | |
209 | * @throws InvalidParameterException invalid gradeKey | |
210 | * @throws MissingParameterException missing gradeKey | |
211 | * @throws OperationFailedException unable to complete request | |
212 | */ | |
213 | public GradeInfo getGrade(@WebParam(name="gradeKey")String gradeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException; | |
214 | ||
215 | /** | |
216 | * Retrieves a list of existing grade values by a list of identifiers. | |
217 | * @param gradeKeyList identifiers for grade values to be retrieved | |
218 | * @return details of the grade values for these ids | |
219 | * @throws DoesNotExistException gradeKey not found | |
220 | * @throws InvalidParameterException invalid gradeKeyList | |
221 | * @throws MissingParameterException invalid gradeKeyList | |
222 | * @throws OperationFailedException unable to complete request | |
223 | */ | |
224 | public List<GradeInfo> getGradesByKeyList(@WebParam(name="gradeKeyList")List<String> gradeKeyList) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException; | |
225 | ||
226 | /** | |
227 | * Retrieves a list of grade identifiers for a specified grade type. | |
228 | * @param gradeTypeKey identifier for the grade type | |
229 | * @return list of grade identifiers | |
230 | * @throws DoesNotExistException gradeTypeKey not found | |
231 | * @throws InvalidParameterException invalid gradeTypeKey | |
232 | * @throws MissingParameterException missing gradeTypeKey | |
233 | * @throws OperationFailedException unable to complete request | |
234 | */ | |
235 | public List<String> getGradeKeysByGradeType(@WebParam(name="gradeTypeKey")String gradeTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException; | |
236 | ||
237 | /** | |
238 | * Retrieves a list of existing grade values for a particular scale. | |
239 | * @param scale identifier for the scale | |
240 | * @return details of the grade values for the specified scale | |
241 | * @throws DoesNotExistException scaleKey not found | |
242 | * @throws InvalidParameterException invalid scaleKey | |
243 | * @throws MissingParameterException invalid scaleKey | |
244 | * @throws OperationFailedException unable to complete request | |
245 | */ | |
246 | public List<GradeInfo> getGradesByScale(@WebParam(name="scale")String scale) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException; | |
247 | ||
248 | /** | |
249 | * Translates a grade value in one scale to equivalent value(s) in another scale. This may return a single grade value, multiple grade values, or no grade values (in the case of no equivalent values). | |
250 | * @param gradeKey identifier of the first grade | |
251 | * @param scaleKey scale of the first grade | |
252 | * @param translateScaleKey scale of the second grade | |
253 | * @return equivalent grade values for the first grade value in the specified scale | |
254 | * @throws InvalidParameterException invalid gradeKey, scaleKey, or translateScaleKey | |
255 | * @throws MissingParameterException missing gradeKey, scaleKey, or translateScaleKey | |
256 | * @throws OperationFailedException unable to complete request | |
257 | */ | |
258 | public List<GradeInfo> translateGrade(@WebParam(name="gradeKey")String gradeKey, @WebParam(name="scaleKey")String scaleKey, @WebParam(name="translateScaleKey")String translateScaleKey) throws InvalidParameterException, MissingParameterException, OperationFailedException; | |
259 | ||
260 | /** | |
261 | * Compares a grade value in one scale to a grade value in another scale. | |
262 | * @param gradeKey identifier of the first grade value | |
263 | * @param scaleKey scale of the first grade value | |
264 | * @param compareGradeKey identifier of the second grade value | |
265 | * @param compareScaleKey scale of the second grade value | |
266 | * @return status of the comparison (greater than, less than, equals, not applicable, etc.) | |
267 | * @throws InvalidParameterException invalid gradeKey, scaleKey, compareGradeKey, or compareScaleKey | |
268 | * @throws MissingParameterException missing gradeKey, scaleKey, compareGradeKey, or compareScaleKey | |
269 | * @throws OperationFailedException unable to complete request | |
270 | */ | |
271 | public String compareGrades(@WebParam(name="gradeKey")String gradeKey, @WebParam(name="scaleKey")String scaleKey, @WebParam(name="compareGradeKey")String compareGradeKey, @WebParam(name="compareScaleKey")String compareScaleKey) throws InvalidParameterException, MissingParameterException, OperationFailedException; | |
272 | ||
273 | /** | |
274 | * Retrieves information on a specific result component. | |
275 | * @param resultComponentId result component identifier | |
276 | * @return information about a result component | |
277 | * @throws DoesNotExistException resultComponentId not found | |
278 | * @throws InvalidParameterException invalid resultComponentId | |
279 | * @throws MissingParameterException missing resultComponentId | |
280 | * @throws OperationFailedException unable to complete request | |
281 | */ | |
282 | public ResultComponentInfo getResultComponent(@WebParam(name="resultComponentId")String resultComponentId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException; | |
283 | ||
284 | /** | |
285 | * Retrieves a list of result component identifiers for a specified result component type. | |
286 | * @param resultComponentTypeKey identifier for the result component type | |
287 | * @return list of result component identifiers | |
288 | * @throws DoesNotExistException resultComponentTypeKey not found | |
289 | * @throws InvalidParameterException invalid resultComponentTypeKey | |
290 | * @throws MissingParameterException missing resultComponentTypeKey | |
291 | * @throws OperationFailedException unable to complete request | |
292 | */ | |
293 | public List<String> getResultComponentIdsByResultComponentType(@WebParam(name="resultComponentTypeKey")String resultComponentTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException; | |
294 | ||
295 | /** | |
296 | * Retrieves a list of result component identifiers for a specified result. The result component type is specified as well to provide an indication of the id space. | |
297 | * @param resultValueId identifier for the result value | |
298 | * @param resultComponentTypeKey identifier for the result component type | |
299 | * @return list of result component identifiers | |
300 | * @throws DoesNotExistException resultValueId, resultComponentTypeKey not found | |
301 | * @throws InvalidParameterException invalid resultValueId, resultComponentTypeKey | |
302 | * @throws MissingParameterException missing resultValueId, resultComponentTypeKey | |
303 | * @throws OperationFailedException unable to complete request | |
304 | */ | |
305 | public List<String> getResultComponentIdsByResult(@WebParam(name="resultValueId")String resultValueId, @WebParam(name="resultComponentTypeKey")String resultComponentTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException; | |
306 | ||
307 | /** | |
308 | * Creates a new result component. | |
309 | * @param resultComponentTypeKey identifier of the result component type | |
310 | * @param resultComponentInfo information about the result component being created | |
311 | * @return create result component information | |
312 | * @throws AlreadyExistsException result component already exists | |
313 | * @throws DataValidationErrorException one or more values invalid for this operation | |
314 | * @throws DoesNotExistException resultComponentTypeKey not found | |
315 | * @throws InvalidParameterException invalid resultComponentTypeKey, resultComponentInfo | |
316 | * @throws MissingParameterException missing resultComponentTypeKey, resultComponentInfo | |
317 | * @throws OperationFailedException unable to complete request | |
318 | * @throws PermissionDeniedException authorization failure | |
319 | */ | |
320 | public ResultComponentInfo createResultComponent(@WebParam(name="resultComponentTypeKey")String resultComponentTypeKey, @WebParam(name="resultComponentInfo")ResultComponentInfo resultComponentInfo) throws AlreadyExistsException, DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
321 | ||
322 | /** | |
323 | * Updates an existing result component. | |
324 | * @param resultComponentId identifier of the result component to update | |
325 | * @param resultComponentInfo updated information about the result component | |
326 | * @return updated result component information | |
327 | * @throws DataValidationErrorException one or more values invalid for this operation | |
328 | * @throws DoesNotExistException resultComponentId not found | |
329 | * @throws InvalidParameterException invalid resultComponentId, resultComponentInfo | |
330 | * @throws MissingParameterException missing resultComponentId, resultComponentInfo | |
331 | * @throws OperationFailedException unable to complete request | |
332 | * @throws PermissionDeniedException authorization failure | |
333 | * @throws VersionMismatchException action was attempted on an out of date version. | |
334 | */ | |
335 | public ResultComponentInfo updateResultComponent(@WebParam(name="resultComponentId")String resultComponentId, @WebParam(name="resultComponentInfo")ResultComponentInfo resultComponentInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException; | |
336 | ||
337 | /** | |
338 | * Deletes an existing result component. | |
339 | * @param resultComponentId identifier of the result component to update | |
340 | * @return status of the operation | |
341 | * @throws DoesNotExistException resultComponentId not found | |
342 | * @throws InvalidParameterException invalid resultComponentId | |
343 | * @throws MissingParameterException missing resultComponentId | |
344 | * @throws OperationFailedException unable to complete request | |
345 | * @throws PermissionDeniedException authorization failure | |
346 | */ | |
347 | public StatusInfo deleteResultComponent(@WebParam(name="resultComponentId")String resultComponentId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
348 | ||
349 | } |