Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
AtpService |
|
| 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.r2.core.classI.atp.service; | |
17 | ||
18 | import java.util.Date; | |
19 | import java.util.List; | |
20 | ||
21 | import javax.jws.WebParam; | |
22 | import javax.jws.WebService; | |
23 | import javax.jws.soap.SOAPBinding; | |
24 | ||
25 | ||
26 | import org.kuali.student.r2.common.datadictionary.service.DataDictionaryService; | |
27 | import org.kuali.student.r2.common.dto.ContextInfo; | |
28 | import org.kuali.student.r2.common.dto.StatusInfo; | |
29 | import org.kuali.student.r2.common.dto.ValidationResultInfo; | |
30 | ||
31 | import org.kuali.student.r2.common.exceptions.AlreadyExistsException; | |
32 | import org.kuali.student.r2.common.exceptions.DataValidationErrorException; | |
33 | import org.kuali.student.r2.common.exceptions.DoesNotExistException; | |
34 | import org.kuali.student.r2.common.exceptions.InvalidParameterException; | |
35 | import org.kuali.student.r2.common.exceptions.MissingParameterException; | |
36 | import org.kuali.student.r2.common.exceptions.OperationFailedException; | |
37 | import org.kuali.student.r2.common.exceptions.PermissionDeniedException; | |
38 | import org.kuali.student.r2.common.exceptions.VersionMismatchException; | |
39 | import org.kuali.student.r2.common.service.StateService; | |
40 | import org.kuali.student.r2.common.service.TypeService; | |
41 | import org.kuali.student.r2.common.util.constants.AtpServiceConstants; | |
42 | ||
43 | import org.kuali.student.r2.core.classI.atp.dto.AtpInfo; | |
44 | import org.kuali.student.r2.core.classI.atp.dto.AtpAtpRelationInfo; | |
45 | import org.kuali.student.r2.core.classI.atp.dto.AtpMilestoneRelationInfo; | |
46 | import org.kuali.student.r2.core.classI.atp.dto.MilestoneInfo; | |
47 | ||
48 | ||
49 | /** | |
50 | * Academic Time Period Service Description and Assumptions. | |
51 | * | |
52 | * This service supports the management of Academic Time Periods and | |
53 | * their associated Milestones. The intent is to provide a flexible | |
54 | * but structured way to define the various time frames that are used | |
55 | * throughout the definition, offering and scheduling of Learning | |
56 | * Units. This is a catalogue service with basic operations. | |
57 | * | |
58 | * Version: 1.0 (Dev) | |
59 | * | |
60 | * @Author tom | |
61 | * @Since Tue Apr 05 14:22:34 EDT 2011 | |
62 | */ | |
63 | ||
64 | @WebService(name = "AtpService", targetNamespace = AtpServiceConstants.NAMESPACE) | |
65 | @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) | |
66 | ||
67 | public interface AtpService extends DataDictionaryService, TypeService, StateService { | |
68 | ||
69 | /** | |
70 | * Retrieves the details of a single Academic Time Period by atpKey. | |
71 | * | |
72 | * @param atpKey Unique key of the Academic Time Period to be retrieved | |
73 | * @param context Context information containing the principalId | |
74 | * and locale information about the caller of service | |
75 | * operation | |
76 | * @return Details of the Academic Time Period requested | |
77 | * @throws DoesNotExistException atpKey not found | |
78 | * @throws InvalidParameterException invalid atpKey | |
79 | * @throws MissingParameterException missing atpKey | |
80 | * @throws OperationFailedException unable to complete request | |
81 | * @throws PermissionDeniedException authorization failure | |
82 | */ | |
83 | public AtpInfo getAtp(@WebParam(name = "atpKey") String atpKey, @WebParam(name = "context") ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
84 | ||
85 | /** | |
86 | * Retrieves the list of Academic Time Periods that the supplied | |
87 | * date falls within inclusive of the start end end date of the | |
88 | * ATP. | |
89 | * | |
90 | * @param searchDate Timestamp to be matched | |
91 | * @param context Context information containing the principalId | |
92 | * and locale information about the caller of service | |
93 | * operation | |
94 | * @return List of Academic Time Periods that contain the supplied searchDate | |
95 | * @throws InvalidParameterException invalid searchDate | |
96 | * @throws MissingParameterException missing searchDate | |
97 | * @throws OperationFailedException unable to complete request | |
98 | * @throws PermissionDeniedException authorization failure | |
99 | */ | |
100 | public List<AtpInfo> getAtpsByDate(@WebParam(name = "searchDate") Date searchDate, @WebParam(name = "context") ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
101 | ||
102 | /** | |
103 | * Retrieves the list of Academic Time Periods that are totally | |
104 | * contained within the supplied dates. The entire Atp falls | |
105 | * within the supplied dates inclusive of the dates. | |
106 | * | |
107 | * @param startDate Earliest Timestamp | |
108 | * @param endDate Latest Timestamp | |
109 | * @param context Context information containing the principalId | |
110 | * and locale information about the caller of service | |
111 | * operation | |
112 | * @return a list of Academic Time Periods | |
113 | * @throws InvalidParameterException invalid parameter | |
114 | * @throws MissingParameterException missing parameter | |
115 | * @throws OperationFailedException unable to complete request | |
116 | * @throws PermissionDeniedException authorization failure | |
117 | */ | |
118 | public List<AtpInfo> getAtpsByDates(@WebParam(name = "startDate") Date startDate, @WebParam(name = "endDate") Date endDate, @WebParam(name = "context") ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
119 | ||
120 | /** | |
121 | * Retrieves a list of Academic Time Periods corresponding to the | |
122 | * given list of ATP keys. | |
123 | * | |
124 | * @param atpKeyList list of ATPs to be retrieved | |
125 | * @param context Context information containing the principalId | |
126 | * and locale information about the caller of service | |
127 | * operation | |
128 | * @return List of Academic Time Period keys of the given type | |
129 | * @throws DoesNotExistException an atpKey in list not found | |
130 | * @throws InvalidParameterException invalid atpKey | |
131 | * @throws MissingParameterException missing atpKey | |
132 | * @throws OperationFailedException unable to complete request | |
133 | * @throws PermissionDeniedException authorization failure | |
134 | */ | |
135 | public List<AtpInfo> getAtpsByKeyList(@WebParam(name = "atpKeyList") List<String> atpKeyList, @WebParam(name = "context") ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
136 | ||
137 | /** | |
138 | * Retrieves a list of Academic Time Periods of the specified type. | |
139 | * | |
140 | * @param atpTypeKey ATP type to be retrieved | |
141 | * @param context Context information containing the principalId | |
142 | * and locale information about the caller of service | |
143 | * operation | |
144 | * @return a list of Academic Time Period keys | |
145 | * @throws InvalidParameterException invalid atpTypeKey | |
146 | * @throws MissingParameterException missing atpTypeKey | |
147 | * @throws OperationFailedException unable to complete request | |
148 | * @throws PermissionDeniedException authorization failure | |
149 | */ | |
150 | public List<String> getAtpKeysByType(@WebParam(name = "atpTypeKey") String atpTypeKey, @WebParam(name = "context") ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
151 | ||
152 | /** | |
153 | * Retrieves the details of the specified milestone. | |
154 | * | |
155 | * @param milestoneKey Unique id of the milestone to be retrieved | |
156 | * @param context Context information containing the principalId | |
157 | * and locale information about the caller of service | |
158 | * operation | |
159 | * @return Details of requested milestone | |
160 | * @throws DoesNotExistException milestoneKey not found | |
161 | * @throws InvalidParameterException invalid milestoneKey | |
162 | * @throws MissingParameterException missing milestoneKey | |
163 | * @throws OperationFailedException unable to complete request | |
164 | * @throws PermissionDeniedException authorization failure | |
165 | */ | |
166 | public MilestoneInfo getMilestone(@WebParam(name = "milestoneKey") String milestoneKey, @WebParam(name = "context") ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
167 | ||
168 | /** | |
169 | * Retrieves a list of Milestones corresponding to the given list | |
170 | * of Milestone keys. | |
171 | * | |
172 | * @param milestoneKeyList list of Milestones to be retrieved | |
173 | * @param context Context information containing the principalId | |
174 | * and locale information about the caller of service | |
175 | * operation | |
176 | * @return the list of milestone keys | |
177 | * @throws DoesNotExistException a milestoneKey in list not found | |
178 | * @throws InvalidParameterException invalid milestoneKey | |
179 | * @throws MissingParameterException missing milestoneKey | |
180 | * @throws OperationFailedException unable to complete request | |
181 | * @throws PermissionDeniedException authorization failure | |
182 | */ | |
183 | public List<MilestoneInfo> getMilestonesByKeyList(@WebParam(name = "milestoneKeyList") List<String> milestoneKeyList, @WebParam(name = "context") ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
184 | ||
185 | /** | |
186 | * Retrieves a list of Milestones of the specified type. | |
187 | * | |
188 | * @param milestoneTypeKey Milestone type to be retrieved | |
189 | * @param context Context information containing the principalId | |
190 | * and locale information about the caller of service | |
191 | * operation | |
192 | * @return a list of Milestone keys | |
193 | * @throws InvalidParameterException invalid milestoneTypeKey | |
194 | * @throws MissingParameterException missing milestoneTypeKey | |
195 | * @throws OperationFailedException unable to complete request | |
196 | * @throws PermissionDeniedException authorization failure | |
197 | */ | |
198 | public List<String> getMilestoneKeysByType(@WebParam(name = "milestoneTypeKey") String milestoneTypeKey, @WebParam(name = "context") ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
199 | ||
200 | /** | |
201 | * Retrieves the list of milestones for a specified Academic Time | |
202 | * Period. | |
203 | * | |
204 | * @param atpKey Unique key of the Academic Time Period to be retieved | |
205 | * @param context Context information containing the principalId | |
206 | * and locale information about the caller of service | |
207 | * operation | |
208 | * @return List of milestones for this Academic Time Period | |
209 | * @throws InvalidParameterException invalid atpKey | |
210 | * @throws MissingParameterException missing atpKey | |
211 | * @throws OperationFailedException unable to complete request | |
212 | * @throws PermissionDeniedException authorization failure | |
213 | */ | |
214 | public List<MilestoneInfo> getMilestonesByAtp(@WebParam(name = "atpKey") String atpKey, @WebParam(name = "context") ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
215 | ||
216 | /** | |
217 | * Retrieves the list of milestones that fall within a specified | |
218 | * set of dates inclusive of the dates. | |
219 | * | |
220 | * @param startDate Start Date for date span | |
221 | * @param endDate End Date for date span | |
222 | * @param context Context information containing the principalId | |
223 | * and locale information about the caller of service | |
224 | * operation | |
225 | * @return List of milestones that fall within this set of dates | |
226 | * @throws InvalidParameterException One or more parameters invalid | |
227 | * @throws MissingParameterException One or more parameters missing | |
228 | * @throws OperationFailedException unable to complete request | |
229 | * @throws PermissionDeniedException authorization failure | |
230 | */ | |
231 | public List<MilestoneInfo> getMilestonesByDates(@WebParam(name = "startDate") Date startDate, @WebParam(name = "endDate") Date endDate, @WebParam(name = "context") ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
232 | ||
233 | /** | |
234 | * Retrieves a list of milestones of a specified type that fall | |
235 | * within a specified set of dates inclusive of the dates. | |
236 | * | |
237 | * @param milestoneTypeKey Milestone type to be retrieved | |
238 | * @param startDate Start Date for date range | |
239 | * @param endDate End Date for date range | |
240 | * @param context Context information containing the principalId | |
241 | * and locale information about the caller of service | |
242 | * operation | |
243 | * @return List of milestones of this milestone type within this set of dates | |
244 | * @throws InvalidParameterException One or more parameters invalid | |
245 | * @throws MissingParameterException One or more parameters missing | |
246 | * @throws OperationFailedException unable to complete request | |
247 | * @throws PermissionDeniedException authorization failure | |
248 | */ | |
249 | public List<MilestoneInfo> getMilestonesByDatesAndType(@WebParam(name = "milestoneTypeKey") String milestoneTypeKey, @WebParam(name = "startDate") Date startDate, @WebParam(name = "endDate") Date endDate, @WebParam(name = "context") ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
250 | ||
251 | /** | |
252 | * Validates an academic time period. Depending on the value of | |
253 | * validationType, this validation could be limited to tests on | |
254 | * just the current object and its directly contained subobjects | |
255 | * or expanded to perform all tests related to this object. If an | |
256 | * identifier is present for the academic time period and a record | |
257 | * is found for that identifier, the validation checks if the | |
258 | * academic time period can be shifted to the new values. If a | |
259 | * record cannot be found for the identifier, it is assumed that | |
260 | * the record does not exist and as such, the checks performed | |
261 | * will be much shallower, typically mimicking those performed by | |
262 | * setting the validationType to the current object. This is a | |
263 | * slightly different pattern from the standard validation as the | |
264 | * caller provides the identifier in the create statement instead | |
265 | * of the server assigning an identifier. | |
266 | * | |
267 | * @param validationType Identifier of the extent of validation | |
268 | * @param atpInfo The academic time period information to be tested. | |
269 | * @param context Context information containing the principalId | |
270 | * and locale information about the caller of service | |
271 | * operation | |
272 | * @return Results from performing the validation | |
273 | * @throws DoesNotExistException validationTypeKey not found | |
274 | * @throws InvalidParameterException invalid validationTypeKey, atpInfo | |
275 | * @throws MissingParameterException missing validationTypeKey, atpInfo | |
276 | * @throws OperationFailedException unable to complete request | |
277 | */ | |
278 | public List<ValidationResultInfo> validateAtp(@WebParam(name = "validationType") String validationType, @WebParam(name = "atpInfo") AtpInfo atpInfo, @WebParam(name = "context") ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException; | |
279 | ||
280 | /** | |
281 | * Creates a new Academic Time Period. | |
282 | * | |
283 | * @param atpKey Key of ATP to be created | |
284 | * @param atpInfo Details of ATP to be created | |
285 | * @param context Context information containing the principalId | |
286 | * and locale information about the caller of service | |
287 | * operation | |
288 | * @return Details of ATP just created | |
289 | * @throws AlreadyExistsException ATP being created already exists | |
290 | * @throws DataValidationErrorException One or more values invalid for this operation | |
291 | * @throws InvalidParameterException One or more parameters invalid | |
292 | * @throws MissingParameterException One or more parameters missing | |
293 | * @throws OperationFailedException unable to complete request | |
294 | * @throws PermissionDeniedException authorization failure | |
295 | */ | |
296 | public AtpInfo createAtp(@WebParam(name = "atpKey") String atpKey, @WebParam(name = "atpInfo") AtpInfo atpInfo, @WebParam(name = "context") ContextInfo context) throws AlreadyExistsException, DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
297 | ||
298 | /** | |
299 | * Updates an existing Academic Time Period. | |
300 | * | |
301 | * @param atpKey Key of ATP to be updated | |
302 | * @param atpInfo Details of updates to ATP being updated | |
303 | * @param context Context information containing the principalId | |
304 | * and locale information about the caller of service | |
305 | * operation | |
306 | * @return Details of ATP just updated | |
307 | * @throws DataValidationErrorException One or more values invalid for this | |
308 | * operation | |
309 | * @throws DoesNotExistException ATP being updated does not exist | |
310 | * @throws InvalidParameterException One or more parameters invalid | |
311 | * @throws MissingParameterException One or more parameters missing | |
312 | * @throws OperationFailedException unable to complete request | |
313 | * @throws PermissionDeniedException authorization failure | |
314 | * @throws VersionMismatchException The action was attempted on an out of date | |
315 | * version. | |
316 | */ | |
317 | public AtpInfo updateAtp(@WebParam(name = "atpKey") String atpKey, @WebParam(name = "atpInfo") AtpInfo atpInfo, @WebParam(name = "context") ContextInfo context) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException; | |
318 | ||
319 | /** | |
320 | * Deletes an existing Academic Time Period. | |
321 | * | |
322 | * @param atpKey the key of the ATP to be deleted | |
323 | * @param context Context information containing the principalId | |
324 | * and locale information about the caller of service | |
325 | * operation | |
326 | * @return status of the operation (success, failed) | |
327 | * @throws DoesNotExistException ATP being deleted does not exist | |
328 | * @throws InvalidParameterException One or more parameters invalid | |
329 | * @throws MissingParameterException One or more parameters missing | |
330 | * @throws OperationFailedException unable to complete request | |
331 | * @throws PermissionDeniedException authorization failure | |
332 | */ | |
333 | public StatusInfo deleteAtp(@WebParam(name = "atpKey") String atpKey, @WebParam(name = "context") ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
334 | ||
335 | /** | |
336 | * Validates a milestone. Depending on the value of | |
337 | * validationType, this validation could be limited to tests on | |
338 | * just the current object and its directly contained subobjects | |
339 | * or expanded to perform all tests related to this object. If an | |
340 | * identifier is present for the milestone and a record is found | |
341 | * for that identifier, the validation checks if the milestone can | |
342 | * be shifted to the new values. If a record cannot be found for | |
343 | * the identifier, it is assumed that the record does not exist | |
344 | * and as such, the checks performed will be much shallower, | |
345 | * typically mimicking those performed by setting the | |
346 | * validationType to the current object. This is a slightly | |
347 | * different pattern from the standard validation as the caller | |
348 | * provides the identifier in the create statement instead of the | |
349 | * server assigning an identifier. | |
350 | * | |
351 | * @param validationType Identifier of the extent of validation | |
352 | * @param milestoneInfo The milestone information to be tested. | |
353 | * @param context Context information containing the principalId | |
354 | * and locale information about the caller of service | |
355 | * operation | |
356 | * @return Results from performing the validation | |
357 | * @throws DoesNotExistException validationTypeKey not found | |
358 | * @throws InvalidParameterException invalid validationTypeKey, milestoneInfo | |
359 | * @throws MissingParameterException missing validationTypeKey, milestoneInfo | |
360 | * @throws OperationFailedException unable to complete request | |
361 | */ | |
362 | public List<ValidationResultInfo> validateMilestone(@WebParam(name = "validationType") String validationType, @WebParam(name = "milestoneInfo") MilestoneInfo milestoneInfo, @WebParam(name = "context") ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException; | |
363 | ||
364 | /** | |
365 | * Create a new milestone. | |
366 | * | |
367 | * @param milestoneKey the Id of milestone to be added | |
368 | * @param milestoneInfo Details of milestone to be added | |
369 | * @param context Context information containing the principalId | |
370 | * and locale information about the caller of service | |
371 | * operation | |
372 | * @return Details of the newly created milestone | |
373 | * @throws AlreadyExistsException Milestone already exists | |
374 | * @throws DataValidationErrorException One or more values invalid for this | |
375 | * operation | |
376 | * @throws InvalidParameterException One or more parameters invalid | |
377 | * @throws MissingParameterException One or more parameters missing | |
378 | * @throws OperationFailedException unable to complete request | |
379 | * @throws PermissionDeniedException authorization failure | |
380 | */ | |
381 | public MilestoneInfo createMilestone(@WebParam(name = "milestoneKey") String milestoneKey, @WebParam(name = "milestoneInfo") MilestoneInfo milestoneInfo, @WebParam(name = "context") ContextInfo context) throws AlreadyExistsException, DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
382 | ||
383 | /** | |
384 | * Updates an existing milestone. | |
385 | * | |
386 | * @param milestoneKey the Id of milestone to be updated | |
387 | * @param milestoneInfo Details of milestone to be updated | |
388 | * @param context Context information containing the principalId | |
389 | * and locale information about the caller of service | |
390 | * operation | |
391 | * @return Details of the updated milestone | |
392 | * @throws DataValidationErrorException One or more values invalid for this | |
393 | * operation | |
394 | * @throws DoesNotExistException Milestone being updated does not exist | |
395 | * @throws InvalidParameterException One or more parameters invalid | |
396 | * @throws MissingParameterException One or more parameters missing | |
397 | * @throws OperationFailedException unable to complete request | |
398 | * @throws PermissionDeniedException authorization failure | |
399 | * @throws VersionMismatchException The action was attempted on an out of | |
400 | * date version | |
401 | */ | |
402 | public MilestoneInfo updateMilestone(@WebParam(name = "milestoneKey") String milestoneKey, @WebParam(name = "milestoneInfo") MilestoneInfo milestoneInfo, @WebParam(name = "context") ContextInfo context) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException; | |
403 | ||
404 | /** | |
405 | * Deletes an existing milestone from all ATPs. | |
406 | * | |
407 | * @param milestoneKey the Id of milestone to be removed | |
408 | * @param context Context information containing the principalId | |
409 | * and locale information about the caller of service | |
410 | * operation | |
411 | * @return status of the operation (success, failed) | |
412 | * @throws DoesNotExistException Milestone being removed does not exist | |
413 | * @throws InvalidParameterException One or more parameters invalid | |
414 | * @throws MissingParameterException One or more parameters missing | |
415 | * @throws OperationFailedException unable to complete request | |
416 | * @throws PermissionDeniedException authorization failure | |
417 | */ | |
418 | public StatusInfo deleteMilestone(@WebParam(name = "milestoneKey") String milestoneKey, @WebParam(name = "context") ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
419 | ||
420 | /** | |
421 | * Retrieves an ATP Relationship. | |
422 | * | |
423 | * @param atpAtpRelationId a unique id of the atp atp relation | |
424 | * to be retrieved | |
425 | * @param context Context information containing the principalId | |
426 | * and locale information about the caller of service | |
427 | * operation | |
428 | * @return Details of requested Atp atp relation | |
429 | * @throws DoesNotExistException atpAtpRelationId not found | |
430 | * @throws InvalidParameterException invalid atpAtprelationId | |
431 | * @throws MissingParameterException invalid atpAtpRelationId | |
432 | * @throws OperationFailedException unable to complete request | |
433 | * @throws PermissionDeniedException authorization failure | |
434 | */ | |
435 | public AtpAtpRelationInfo getAtpAtpRelation(@WebParam(name = "atpAtpRelationId") String atpAtpRelationId, @WebParam(name = "context") ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
436 | ||
437 | /** | |
438 | * Retrieves a list of AtpAtpRelations corresponding to the given list | |
439 | * of identifiers. | |
440 | * | |
441 | * @param atpAtpRelationIdList list of AtpAtpRelations to be retrieved | |
442 | * @param context Context information containing the principalId | |
443 | * and locale information about the caller of service | |
444 | * operation | |
445 | * @return the list of AtpAtpRelations | |
446 | * @throws DoesNotExistException an atpAtpRelationId in list not found | |
447 | * @throws InvalidParameterException invalid atpAtpRelationId | |
448 | * @throws MissingParameterException missing atpAtpRelationId | |
449 | * @throws OperationFailedException unable to complete request | |
450 | * @throws PermissionDeniedException authorization failure | |
451 | */ | |
452 | public List<AtpAtpRelationInfo> getAtpAtpRelationsByIdList(@WebParam(name = "atpAtpRelationIdList") List<String> atpAtpRelationIdList, @WebParam(name = "context") ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
453 | ||
454 | /** | |
455 | * Retrieves a list of AtpAtpRelation Ids of the specified type. | |
456 | * | |
457 | * @param atpRelationTypeKey Atp type to be retrieved | |
458 | * @param context Context information containing the principalId | |
459 | * and locale information about the caller of service | |
460 | * operation | |
461 | * @return a list of AtpAtpRelation identifiers | |
462 | * @throws InvalidParameterException invalid atpRelationTypeKey | |
463 | * @throws MissingParameterException missing atpRelationTypeKey | |
464 | * @throws OperationFailedException unable to complete request | |
465 | * @throws PermissionDeniedException authorization failure | |
466 | */ | |
467 | public List<String> getAtpAtpRelationIdsByType(@WebParam(name = "atpAtpRelationTypeKey") String atpAtpRelationTypeKey, @WebParam(name = "context") ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
468 | ||
469 | /** | |
470 | * Retrieves all ATP Relationships by ATP. | |
471 | * | |
472 | * @param atpKey a unique key of an ATP | |
473 | * @param context Context information containing the principalId | |
474 | * and locale information about the caller of service | |
475 | * operation | |
476 | * @return a list of Atp atp relationships | |
477 | * @throws DoesNotExistException atpKey not found | |
478 | * @throws InvalidParameterException invalid atpKey | |
479 | * @throws MissingParameterException missing atpKey | |
480 | * @throws OperationFailedException unable to complete request | |
481 | * @throws PermissionDeniedException authorization failure | |
482 | */ | |
483 | public List<AtpAtpRelationInfo> getAtpAtpRelationsByAtp(@WebParam(name = "atpKey") String atpKey, @WebParam(name = "context") ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
484 | ||
485 | /** | |
486 | * Validates an ATP/ATP relationship. Depending on the value | |
487 | * of validationType, this validation could be limited to tests on | |
488 | * just the current object and its directly contained subobjects | |
489 | * or expanded to perform all tests related to this object. If an | |
490 | * identifier is present for the relationship and a record is | |
491 | * found for that identifier, the validation checks if the | |
492 | * relationship can be shifted to the new values. If a | |
493 | * record cannot be found for the identifier, it is assumed that | |
494 | * the record does not exist and as such, the checks performed | |
495 | * will be much shallower, typically mimicking those performed by | |
496 | * setting the validationType to the current object. This is a | |
497 | * slightly different pattern from the standard validation as the | |
498 | * caller provides the identifier in the create statement instead | |
499 | * of the server assigning an identifier. | |
500 | * | |
501 | * @param validationType Identifier of the extent of validation | |
502 | * @param atpAtpRelationInfo The ATP Relationship | |
503 | * to be tested. | |
504 | * @param context Context information containing the principalId | |
505 | * and locale information about the caller of service | |
506 | * operation | |
507 | * @return Results from performing the validation | |
508 | * @throws DoesNotExistException validationTypeKey not found | |
509 | * @throws InvalidParameterException invalid parameter | |
510 | * @throws MissingParameterException missing parameter | |
511 | * @throws OperationFailedException unable to complete request | |
512 | */ | |
513 | public List<ValidationResultInfo> validateAtpAtpRelation(@WebParam(name = "validationType") String validationType, @WebParam(name = "atpAtpRelationInfo") AtpAtpRelationInfo atpAtpRelationInfo, @WebParam(name = "context") ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException; | |
514 | ||
515 | /** | |
516 | * Creates an ATP relationship. | |
517 | * | |
518 | * @param atpAtpRleationInfo the relationship | |
519 | * @param context Context information containing the principalId | |
520 | * and locale information about the caller of service | |
521 | * operation | |
522 | * @return status | |
523 | * @throws AlreadyExistsException atp relation added already exists | |
524 | * @throws InvalidParameterException One or more parameters invalid | |
525 | * @throws MissingParameterException One or more parameters missing | |
526 | * @throws OperationFailedException unable to complete request | |
527 | * @throws PermissionDeniedException authorization failure | |
528 | */ | |
529 | public AtpAtpRelationInfo createAtpAtpRelation(@WebParam(name = "atpAtpRelationInfo") AtpAtpRelationInfo atpAtpRelationInfo, @WebParam(name = "context") ContextInfo context) throws AlreadyExistsException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
530 | ||
531 | /** | |
532 | * Updates an ATP Mielstone Relationship. | |
533 | * | |
534 | * @param atpAtpRelationId the Id of the ATP Relation to be | |
535 | * updated | |
536 | * @param atpAtpRelationInfo the ATP relation to be updated | |
537 | * @param context Context information containing the principalId | |
538 | * and locale information about the caller of service | |
539 | * operation | |
540 | * @return status | |
541 | * @throws DataValidationErrorException One or more values invalid for this | |
542 | * operation | |
543 | * @throws DoesNotExistException atp relation does not exist | |
544 | * @throws InvalidParameterException One or more parameters invalid | |
545 | * @throws MissingParameterException One or more parameters missing | |
546 | * @throws OperationFailedException unable to complete request | |
547 | * @throws PermissionDeniedException authorization failure | |
548 | * @throws VersionMismatchException The action was attempted on an out of | |
549 | * date version | |
550 | */ | |
551 | public AtpAtpRelationInfo updateAtpAtpRelation(@WebParam(name = "atpAtpRelationId") String atpAtpRelationId, @WebParam(name = "atpAtpRelationInfo") AtpAtpRelationInfo atpAtpRelationInfo, @WebParam(name = "context") ContextInfo context) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException; | |
552 | ||
553 | /** | |
554 | * Removes an existing ATP relationship. | |
555 | * | |
556 | * @param atpAtpRelationId the Id of relatiosnhip | |
557 | * @param context Context information containing the principalId | |
558 | * and locale information about the caller of service | |
559 | * operation | |
560 | * @return status of the operation (success, failed) | |
561 | * @throws DoesNotExistException atp relation being removed does not exist | |
562 | * @throws InvalidParameterException One or more parameters invalid | |
563 | * @throws MissingParameterException One or more parameters missing | |
564 | * @throws OperationFailedException unable to complete request | |
565 | * @throws PermissionDeniedException authorization failure | |
566 | */ | |
567 | public StatusInfo deleteAtpAtpRelation(@WebParam(name = "atpAtpRelationId") String atpAtpRelationId, @WebParam(name = "context") ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
568 | ||
569 | /** | |
570 | * Retrieves an ATP Milestone Relationship. | |
571 | * | |
572 | * @param atpMilestoneRelationId Unique id of the atp milestone relation | |
573 | * to be retrieved | |
574 | * @param context Context information containing the principalId | |
575 | * and locale information about the caller of service | |
576 | * operation | |
577 | * @return Details of requested Atp milestone relation | |
578 | * @throws DoesNotExistException atpMilestoneRelationId not found | |
579 | * @throws InvalidParameterException invalid atpMilestonerelationId | |
580 | * @throws MissingParameterException invalid atpMilestoneRelationId | |
581 | * @throws OperationFailedException unable to complete request | |
582 | * @throws PermissionDeniedException authorization failure | |
583 | */ | |
584 | public AtpMilestoneRelationInfo getAtpMilestoneRelation(@WebParam(name = "atpMilestoneRelationId") String atpMilestoneRelationId, @WebParam(name = "context") ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
585 | ||
586 | /** | |
587 | * Retrieves a list of AtpMilestoneRelations corresponding to the given list | |
588 | * of identifiers. | |
589 | * | |
590 | * @param atpMilestoneRelationIdList list of AtpMilestoneRelations to be retrieved | |
591 | * @param context Context information containing the principalId | |
592 | * and locale information about the caller of service | |
593 | * operation | |
594 | * @return the list of AtpMilestoneRelations | |
595 | * @throws DoesNotExistException an atpMilestoneRelationId in list not found | |
596 | * @throws InvalidParameterException invalid atpMilestoneRelationId | |
597 | * @throws MissingParameterException missing atpMilestoneRelationId | |
598 | * @throws OperationFailedException unable to complete request | |
599 | * @throws PermissionDeniedException authorization failure | |
600 | */ | |
601 | public List<AtpMilestoneRelationInfo> getAtpMilestoneRelationsByIdList(@WebParam(name = "atpMilestoneRelationIdList") List<String> atpMilestoneRelationIdList, @WebParam(name = "context") ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
602 | ||
603 | /** | |
604 | * Retrieves a list of AtpMilestoneRelations of the specified type. | |
605 | * | |
606 | * @param atpMilestoneTypeKey Milestone type to be retrieved | |
607 | * @param context Context information containing the principalId | |
608 | * and locale information about the caller of service | |
609 | * operation | |
610 | * @return a list of AtpMilestoneRelation identifiers | |
611 | * @throws InvalidParameterException invalid atpMilestoneRelationTypeKey | |
612 | * @throws MissingParameterException missing atpMilestoneRelationTypeKey | |
613 | * @throws OperationFailedException unable to complete request | |
614 | * @throws PermissionDeniedException authorization failure | |
615 | */ | |
616 | public List<String> getAtpMilestoneRelationIdsByType(@WebParam(name = "atpMilestoneRelationTypeKey") String atpMilestoneRelationTypeKey, @WebParam(name = "context") ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
617 | ||
618 | /** | |
619 | * Retrieves all ATP Milestone Relationships by ATP. | |
620 | * | |
621 | * @param atpKey Unique key of an ATP | |
622 | * @param context Context information containing the principalId | |
623 | * and locale information about the caller of service | |
624 | * operation | |
625 | * @return a list of Atp milestone relationships | |
626 | * @throws DoesNotExistException atpKey not found | |
627 | * @throws InvalidParameterException invalid atpKey | |
628 | * @throws MissingParameterException missing atpKey | |
629 | * @throws OperationFailedException unable to complete request | |
630 | * @throws PermissionDeniedException authorization failure | |
631 | */ | |
632 | public List<AtpMilestoneRelationInfo> getAtpMilestoneRelationsByAtp(@WebParam(name = "atpKey") String atpKey, @WebParam(name = "context") ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
633 | ||
634 | /** | |
635 | * Retrieves all ATP Milestone Relationships by Milestone. | |
636 | * | |
637 | * @param milestoneKey Unique key of a Milestone | |
638 | * @param context Context information containing the principalId | |
639 | * and locale information about the caller of service | |
640 | * operation | |
641 | * @return a list of Atp milestone relationships | |
642 | * @throws DoesNotExistException atpKey not found | |
643 | * @throws InvalidParameterException invalid milestoneKey | |
644 | * @throws MissingParameterException missing milestoneKey | |
645 | * @throws OperationFailedException unable to complete request | |
646 | * @throws PermissionDeniedException authorization failure | |
647 | */ | |
648 | public List<AtpMilestoneRelationInfo> getAtpMilestoneRelationsByMilestone(@WebParam(name = "milestoneKey") String milestoneKey, @WebParam(name = "context") ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
649 | ||
650 | /** | |
651 | * Validates an ATP/Milestone relationship. Depending on the value | |
652 | * of validationType, this validation could be limited to tests on | |
653 | * just the current object and its directly contained subobjects | |
654 | * or expanded to perform all tests related to this object. If an | |
655 | * identifier is present for the relationship and a record is | |
656 | * found for that identifier, the validation checks if the | |
657 | * relationship can be shifted to the new values. If a | |
658 | * record cannot be found for the identifier, it is assumed that | |
659 | * the record does not exist and as such, the checks performed | |
660 | * will be much shallower, typically mimicking those performed by | |
661 | * setting the validationType to the current object. This is a | |
662 | * slightly different pattern from the standard validation as the | |
663 | * caller provides the identifier in the create statement instead | |
664 | * of the server assigning an identifier. | |
665 | * | |
666 | * @param validationType Identifier of the extent of validation | |
667 | * @param atpMilestoneRelationInfo The ATP Milestone Relationship | |
668 | * to be tested. | |
669 | * @param context Context information containing the principalId | |
670 | * and locale information about the caller of service | |
671 | * operation | |
672 | * @return Results from performing the validation | |
673 | * @throws DoesNotExistException validationTypeKey not found | |
674 | * @throws InvalidParameterException invalid validationTypeKey, atpInfo | |
675 | * @throws MissingParameterException missing validationTypeKey, atpInfo | |
676 | * @throws OperationFailedException unable to complete request | |
677 | */ | |
678 | public List<ValidationResultInfo> validateAtpMilestoneRelation(@WebParam(name = "validationType") String validationType, @WebParam(name = "atpMilestoneRelationInfo") AtpMilestoneRelationInfo atpMilestoneRelationInfo, @WebParam(name = "context") ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException; | |
679 | ||
680 | /** | |
681 | * Adds a Milestone to an ATP by creating a relationship. | |
682 | * | |
683 | * @param atpMilestoneRleationship the relationship | |
684 | * @param context Context information containing the principalId | |
685 | * and locale information about the caller of service | |
686 | * operation | |
687 | * @return status | |
688 | * @throws AlreadyExistsException Milestone being added already exists | |
689 | * @throws InvalidParameterException One or more parameters invalid | |
690 | * @throws MissingParameterException One or more parameters missing | |
691 | * @throws OperationFailedException unable to complete request | |
692 | * @throws PermissionDeniedException authorization failure | |
693 | */ | |
694 | public AtpMilestoneRelationInfo createAtpMilestoneRelation(@WebParam(name = "atpMilestoneRelationInfo") AtpMilestoneRelationInfo atpMilestoneRelationInfo, @WebParam(name = "context") ContextInfo context) throws AlreadyExistsException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
695 | ||
696 | /** | |
697 | * Updates an ATP Mielstone Relationship. | |
698 | * | |
699 | * @param atpMilestoneRelationId the Id of the ATP Milestone Relation to be | |
700 | * updated | |
701 | * @param atpMilestoneRelationInfo the ATP Milestone relation to be updated | |
702 | * @param context Context information containing the principalId | |
703 | * and locale information about the caller of service | |
704 | * operation | |
705 | * @return status | |
706 | * @throws DataValidationErrorException One or more values invalid for this | |
707 | * operation | |
708 | * @throws DoesNotExistException Milestone does not exist | |
709 | * @throws InvalidParameterException One or more parameters invalid | |
710 | * @throws MissingParameterException One or more parameters missing | |
711 | * @throws OperationFailedException unable to complete request | |
712 | * @throws PermissionDeniedException authorization failure | |
713 | * @throws VersionMismatchException The action was attempted on an out of | |
714 | * date version | |
715 | */ | |
716 | public AtpMilestoneRelationInfo updateAtpMilestoneRelation(@WebParam(name = "atpMilestoneRelationId") String atpMilestoneRelationId, @WebParam(name = "atpMilestoneRelationInfo") AtpMilestoneRelationInfo atpMilestoneRelationInfo, @WebParam(name = "context") ContextInfo context) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException; | |
717 | ||
718 | /** | |
719 | * Removes an existing milestone from an ATP by deleting the relationship. | |
720 | * | |
721 | * @param atpMilestoneRelationId the Id of ATP Milestone Relatiosnhip | |
722 | * @param context Context information containing the principalId | |
723 | * and locale information about the caller of service | |
724 | * operation | |
725 | * @return status of the operation (success, failed) | |
726 | * @throws DoesNotExistException Milestone being removed does not exist | |
727 | * @throws InvalidParameterException One or more parameters invalid | |
728 | * @throws MissingParameterException One or more parameters missing | |
729 | * @throws OperationFailedException unable to complete request | |
730 | * @throws PermissionDeniedException authorization failure | |
731 | */ | |
732 | public StatusInfo deleteAtpMilestoneRelation(@WebParam(name = "atpMilestoneRelationId") String atpMilestoneRelationId, @WebParam(name = "context") ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
733 | } |