Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
LuiService |
|
| 1.0;1 |
1 | /** | |
2 | * Copyright 2010 The Kuali Foundation | |
3 | * | |
4 | * Licensed under the the Educational Community License, Version 1.0 | |
5 | * (the "License"); you may not use this file except in compliance | |
6 | * with the License. You may obtain a copy of the License at | |
7 | * | |
8 | * http://www.opensource.org/licenses/ecl1.php | |
9 | * | |
10 | * Unless required by applicable law or agreed to in writing, software | |
11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | * See the License for the specific language governing permissions and | |
14 | * limitations under the License. | |
15 | */ | |
16 | ||
17 | package org.kuali.student.enrollment.lui.service; | |
18 | ||
19 | import java.util.List; | |
20 | ||
21 | import javax.jws.WebParam; | |
22 | import javax.jws.WebService; | |
23 | import javax.jws.soap.SOAPBinding; | |
24 | ||
25 | import org.kuali.rice.core.api.criteria.QueryByCriteria; | |
26 | ||
27 | import org.kuali.student.enrollment.lui.dto.LuiInfo; | |
28 | import org.kuali.student.enrollment.lui.dto.LuiLuiRelationInfo; | |
29 | import org.kuali.student.enrollment.lui.dto.LuiCapacityInfo; | |
30 | ||
31 | import org.kuali.student.r2.common.dto.ContextInfo; | |
32 | import org.kuali.student.r2.common.dto.StatusInfo; | |
33 | import org.kuali.student.r2.common.dto.ValidationResultInfo; | |
34 | ||
35 | import org.kuali.student.r2.common.exceptions.CircularRelationshipException; | |
36 | import org.kuali.student.r2.common.exceptions.DataValidationErrorException; | |
37 | import org.kuali.student.r2.common.exceptions.DependentObjectsExistException; | |
38 | import org.kuali.student.r2.common.exceptions.DoesNotExistException; | |
39 | import org.kuali.student.r2.common.exceptions.InvalidParameterException; | |
40 | import org.kuali.student.r2.common.exceptions.MissingParameterException; | |
41 | import org.kuali.student.r2.common.exceptions.OperationFailedException; | |
42 | import org.kuali.student.r2.common.exceptions.PermissionDeniedException; | |
43 | import org.kuali.student.r2.common.exceptions.ReadOnlyException; | |
44 | import org.kuali.student.r2.common.exceptions.VersionMismatchException; | |
45 | ||
46 | import org.kuali.student.r2.common.util.constants.LuiServiceConstants; | |
47 | ||
48 | /** | |
49 | * Learning Unit Instance (LUI) Service | |
50 | * | |
51 | * Manages the creation of Instances of the canonical Learning unit. | |
52 | * An instance is associated with a particular time period during | |
53 | * which is is offered. | |
54 | * | |
55 | * This includes course and section offerings as well as program | |
56 | * offerings | |
57 | * | |
58 | * @version 1.0 (Dev) | |
59 | * | |
60 | * @author tom | |
61 | */ | |
62 | ||
63 | @WebService(name = "LuiService", serviceName ="LuiService", portName = "LuiService", targetNamespace = LuiServiceConstants.NAMESPACE) | |
64 | @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) | |
65 | ||
66 | public interface LuiService { | |
67 | ||
68 | /** | |
69 | * Retrieves a single Lui by a Lui Id. | |
70 | * | |
71 | * @param luiId the identifier for the Lui to be retrieved | |
72 | * @param contextInfo information containing the principalId and | |
73 | * locale information about the caller of service operation | |
74 | * @return the Lui requested | |
75 | * @throws DoesNotExistException luiId not found | |
76 | * @throws InvalidParameterException contextInfo is not valid | |
77 | * @throws MissingParameterException luiId or contextInfo is | |
78 | * missing or null | |
79 | * @throws OperationFailedException unable to complete request | |
80 | * @throws PermissionDeniedException an authorization failure occurred | |
81 | */ | |
82 | public LuiInfo getLui(@WebParam(name = "luiId") String luiId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
83 | ||
84 | /** | |
85 | * Retrieves a list of Luis from a list of Lui Ids. The | |
86 | * returned list may be in any order and if duplicates Ids are | |
87 | * supplied, a unique set may or may not be returned. | |
88 | * | |
89 | * @param luiIds a list of Lui identifiers | |
90 | * @param contextInfo information containing the principalId and | |
91 | * locale information about the caller of service operation | |
92 | * @return a list of Luis | |
93 | * @throws DoesNotExistException a luiId in the list was not found | |
94 | * @throws InvalidParameterException contextInfo is not valid | |
95 | * @throws MissingParameterException luiIds, an Id in luiIds, or | |
96 | * contextInfo is missing or null | |
97 | * @throws OperationFailedException unable to complete request | |
98 | * @throws PermissionDeniedException an authorization failure occurred | |
99 | */ | |
100 | public List<LuiInfo> getLuisByIds(@WebParam(name = "luiIds") List<String> luiIds, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
101 | ||
102 | /** | |
103 | * Retrieves a list of Lui Ids by Lui Type. | |
104 | * | |
105 | * @param luiTypeKey an identifier for a Lui Type | |
106 | * @param contextInfo information containing the principalId and | |
107 | * locale information about the caller of service operation | |
108 | * @return a list of Lui identifiers matching luiTypeKey or an | |
109 | * empty list if none found | |
110 | * @throws InvalidParameterException contextInfo is not valid | |
111 | * @throws MissingParameterException luiTypeKey or contextInfo is | |
112 | * missing or null | |
113 | * @throws OperationFailedException unable to complete request | |
114 | * @throws PermissionDeniedException an authorization failure occurred | |
115 | */ | |
116 | public List<String> getLuiIdsByType(@WebParam(name = "luiTypeKey") String luiTypeKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
117 | ||
118 | /** | |
119 | * Retrieves a list of Lui Ids by Clu. | |
120 | * (the pattern says this should return the objects). | |
121 | * | |
122 | * @param cluId an identifier for the Clu | |
123 | * @param contextInfo information containing the principalId and | |
124 | * locale information about the caller of service operation | |
125 | * @return list of Lui Ids for the Clu | |
126 | * @throws InvalidParameterException contextInfo is not valid | |
127 | * @throws MissingParameterException cluId or contextInfo is | |
128 | * missing or null | |
129 | * @throws OperationFailedException unable to complete request | |
130 | * @throws PermissionDeniedException an authorization failure occurred | |
131 | */ | |
132 | public List<String> getLuiIdsByClu(@WebParam(name = "cluId") String cluId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
133 | ||
134 | /** | |
135 | * Retrieves the list of Lui Ids for the specified atp and Lui | |
136 | * Type. | |
137 | * | |
138 | * @param atpId an identifier for the Atp | |
139 | * @param luiTypeKey an identifier for the Lui Type | |
140 | * @param contextInfo information containing the principalId and | |
141 | * locale information about the caller of service operation | |
142 | * @return a list of identifiers of Luis offered in the given Atp | |
143 | * of the specified luiType | |
144 | * @throws InvalidParameterException contextInfo is not valid | |
145 | * @throws MissingParameterException atpId, luiTypeKey, or contextInfo | |
146 | * is missing or null | |
147 | * @throws OperationFailedException unable to complete request | |
148 | * @throws PermissionDeniedException an authorization failure occurred | |
149 | */ | |
150 | public List<String> getLuiIdsByAtpAndType(@WebParam(name = "atpId") String atpId, @WebParam(name = "luiTypeKey") String luiTypeKey, @WebParam(name = "contextInfo") ContextInfo context ) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
151 | ||
152 | /** | |
153 | * Retrieves the list of Lui Ids for the specified Clu and Time | |
154 | * period. | |
155 | * | |
156 | * @param cluId an identifier for the Clu | |
157 | * @param atpId an identifier for the Atp | |
158 | * @param contextInfo information containing the principalId and | |
159 | * locale information about the caller of service operation | |
160 | * @return a list of identifiers of Luis offered in atpId and | |
161 | * related to cluId | |
162 | * @throws InvalidParameterException contextInfo is not valid | |
163 | * @throws MissingParameterException cluId, atpId, or contextInfo | |
164 | * is missing or null | |
165 | * @throws OperationFailedException unable to complete request | |
166 | * @throws PermissionDeniedException an authorization failure occurred | |
167 | */ | |
168 | public List<String> getLuiIdsByAtpAndClu(@WebParam(name = "cluId") String cluId, @WebParam(name = "atpId") String atpId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
169 | ||
170 | /** | |
171 | * Retrieves the list of Luis for the specified Clu and Atp. | |
172 | * | |
173 | * @param cluId an identifier for the Clu | |
174 | * @param atpId an identifier for the Atp | |
175 | * @param contextInfo information containing the principalId and | |
176 | * locale information about the caller of service operation | |
177 | * @return a list of Luis offered in atpId and related to cluId | |
178 | * @throws InvalidParameterException contextInfo is not valid | |
179 | * @throws MissingParameterException cluId, atpId, or contextInfo | |
180 | * is missing or null | |
181 | * @throws OperationFailedException unable to complete request | |
182 | * @throws PermissionDeniedException an authorization failure occurred | |
183 | */ | |
184 | public List<LuiInfo> getLuisByAtpAndClu(@WebParam(name = "cluId") String cluId, @WebParam(name = "atpId") String atpId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
185 | ||
186 | /** | |
187 | * Searches for Luis that meet the given search criteria and | |
188 | * returns a list of Lui identifiers that meet the criteria. | |
189 | * | |
190 | * @param criteria the search criteria | |
191 | * @param contextInfo information containing the principalId and | |
192 | * locale information about the caller of service operation | |
193 | * @return a list of Lui Ids matching the criteria | |
194 | * @throws InvalidParameterException criteria or contextInfo is | |
195 | * not valid | |
196 | * @throws MissingParameterException criteria or contextInfo is | |
197 | * missing or null | |
198 | * @throws OperationFailedException unable to complete request | |
199 | * @throws PermissionDeniedException an authorization failure occurred | |
200 | */ | |
201 | public List<String> searchForLuiIds(@WebParam(name = "criteria") QueryByCriteria criteria, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
202 | ||
203 | /** | |
204 | * Searches for Luis that meet the given search criteria. | |
205 | * | |
206 | * @param criteria the search criteria | |
207 | * @param contextInfo information containing the principalId and | |
208 | * locale information about the caller of service operation | |
209 | * @return a list of Luis matching the criteria | |
210 | * @throws InvalidParameterException criteria or contextInfo is | |
211 | * not valid | |
212 | * @throws MissingParameterException criteria or contextInfo is | |
213 | * missing or null | |
214 | * @throws OperationFailedException unable to complete request | |
215 | * @throws PermissionDeniedException an authorization failure occurred | |
216 | */ | |
217 | public List<LuiInfo> searchForLuis(@WebParam(name = "criteria") QueryByCriteria criteria, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
218 | ||
219 | /** | |
220 | * Validates a Lui. Depending on the value of validationType, this | |
221 | * validation could be limited to tests on just the current Lui | |
222 | * and its directly contained sub-objects or expanded to perform | |
223 | * all tests related to this Lui. If an identifier is present for | |
224 | * the Lui (and/or one of its contained sub-objects) and a record | |
225 | * is found for that identifier, the validation checks if the Lui | |
226 | * can be updated to the new values. If an identifier is not | |
227 | * present or a record does not exist, the validation checks if | |
228 | * the object with the given data can be created. | |
229 | * | |
230 | * @param validationTypeKet the identifier for the validation Type | |
231 | * @param cluId the identifier for the Clu to which the Lui is | |
232 | * attached | |
233 | * @param atpId the identifier for the Atp to which the Lui if | |
234 | * offered | |
235 | * @param luiTypeKey the identifier for the Lui Type | |
236 | * @param luiInfo the object to be validated | |
237 | * @param contextInfo information containing the principalId and | |
238 | * locale information about the caller of service operation | |
239 | * @return a list of validation results or an empty list if | |
240 | * validation succeeded | |
241 | * @throws DoesNotExistException validationTypeKey, cluId, atpId, | |
242 | * or luiTypeKey is not found | |
243 | * @throws InvalidParameterException luiInfo or contextInfo is not | |
244 | * valid | |
245 | * @throws MissingParameterException validationTypeKey, cluId, | |
246 | * atpId, luiTypeKey, luiInfo, or contextInfo is missing | |
247 | * or null | |
248 | * @throws OperationFailedException unable to complete request | |
249 | * @throws PermissionDeniedException an authorization failure occurred | |
250 | */ | |
251 | public List<ValidationResultInfo> validateLui(@WebParam(name = "validationTypeKey") String validationTypeKey, @WebParam(name = "cluId") String cluId, @WebParam(name="atpId") String atpId, @WebParam(name = "luiTypeKey") String luiTypeKey, @WebParam(name = "luiInfo") LuiInfo luiInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException;; | |
252 | ||
253 | /** | |
254 | * Creates a new LUI. The Lui Id, Type, Clu Id, Atp Id, and Meta | |
255 | * information may not be set in the supplied data. | |
256 | * | |
257 | * @param cluId the identifier for the Clu | |
258 | * @param atpId the identifier for the Atp | |
259 | * @param luiTypeKey an identifier for the Type of the new Lui | |
260 | * @param luiInfo the data with which to create the Lui | |
261 | * @param contextInfo information containing the principalId and | |
262 | * locale information about the caller of service operation | |
263 | * @return the new Lui | |
264 | * @throws DataValidationErrorException supplied data is invalid | |
265 | * @throws DoesNotExistException cluId, atpId, or luiTypeKey is | |
266 | * not found | |
267 | * @throws InvalidParameterExceptionluiInfo or contextInfo is not valid | |
268 | * @throws MissingParameterException cluId, atpId, luiTypeKey, | |
269 | * luiInfo, or contextInfo is missing or null | |
270 | * @throws OperationFailedException unable to complete request | |
271 | * @throws PermissionDeniedException an authorization failure occurred | |
272 | * @throws ReadOnlyException an attempt at supplying information | |
273 | * designated as read only | |
274 | */ | |
275 | public LuiInfo createLui(@WebParam(name = "cluId") String cluId, @WebParam(name = "atpId") String atpId, @WebParam(name = "luiTypeKey") String luiTypeKey, @WebParam(name = "luiInfo") LuiInfo luiInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException; | |
276 | ||
277 | /** | |
278 | * Updates an existing Lui. The Lui Id, Type, Clu Id, Atp Id, and | |
279 | * Meta information may not be changed. | |
280 | * | |
281 | * @param luiId the identifier for the LUI to be updated | |
282 | * @param luiInfo the new data for the Lui | |
283 | * @param contextInfo information containing the principalId and | |
284 | * locale information about the caller of service operation | |
285 | * @return the updated Lui | |
286 | * @throws DataValidationErrorException supplied data is invalid | |
287 | * @throws DoesNotExistException luiId not found | |
288 | * @throws InvalidParameterException luiInfo or contextInfo is not valid | |
289 | * @throws MissingParameterException luiId, luiInfo, or | |
290 | * contextInfo is missing or null | |
291 | * @throws OperationFailedException unable to complete request | |
292 | * @throws PermissionDeniedException an authorization failure occurred | |
293 | * @throws ReadOnlyException an attempt at changing information | |
294 | * designated as read only | |
295 | * @throws VersionMismatchException optimistic locking failure or | |
296 | * the action was attempted on an out of date version | |
297 | */ | |
298 | public LuiInfo updateLui(@WebParam(name = "luiId") String luiId, @WebParam(name = "luiInfo") LuiInfo luiInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException, VersionMismatchException; | |
299 | ||
300 | /** | |
301 | * Deletes an existing Lui. | |
302 | * | |
303 | * @param luiId the identifier for the LUI to be deleted | |
304 | * @param contextInfoinformation containing the principalId and | |
305 | * locale information about the caller of service operation | |
306 | * @return the status of the delete operation. This must always be true. | |
307 | * @throws DependentObjectsExistException the delete operation | |
308 | * would leave orphaned objects or violate integrity | |
309 | * constraints | |
310 | * @throws DoesNotExistException luiId not found | |
311 | * @throws InvalidParameterException contextInfo is not valid | |
312 | * @throws MissingParameterException luiId or contextInfo is | |
313 | * missing or null | |
314 | * @throws OperationFailedException unable to complete request | |
315 | * @throws PermissionDeniedException an authorization failure occurred | |
316 | */ | |
317 | public StatusInfo deleteLui(@WebParam(name = "luiId") String luiId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DependentObjectsExistException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
318 | ||
319 | /** | |
320 | * Retrieves a single LuiLuiRelation by a LuiLuiRelation Id. | |
321 | * | |
322 | * @param luiLuiRelationId a unique identifier for the | |
323 | * LuiLuiRelation to be retrieved | |
324 | * @param contextInfo information containing the principalId and | |
325 | * locale information about the caller of service operation | |
326 | * @return the LuiLuiRelation requested | |
327 | * @throws DoesNotExistException luiLuiRelationId is not found | |
328 | * @throws InvalidParameterException contextInfo is not valid | |
329 | * @throws MissingParameterException luiLuiRetaionId or | |
330 | * contextInfo is missing or null | |
331 | * @throws OperationFailedException unable to complete request | |
332 | * @throws PermissionDeniedException an authorization failure occurred | |
333 | */ | |
334 | public LuiLuiRelationInfo getLuiLuiRelation(@WebParam(name = "luiLuiRelationId") String luiLuiRelationId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
335 | ||
336 | /** | |
337 | * Retrieves a list of LuiLuiRelations from a list of | |
338 | * LuiLuiRelation Ids. The returned list may be in any order and | |
339 | * if duplicates Ids are supplied, a unique set may or may not be | |
340 | * returned. | |
341 | * | |
342 | * @param luiLuiRelationIds a list of LuiLuiRelation identifiers | |
343 | * @param context Context information containing the principalId | |
344 | * and locale information about the caller of | |
345 | * service operation | |
346 | * @return information about a list of LuiLuiRelations | |
347 | * @throws DoesNotExistException a luiLuiRelationId in the list | |
348 | * was not found | |
349 | * @throws InvalidParameterException contextInfo is not valid | |
350 | * @throws MissingParameterException luiLuiRelationIds, a | |
351 | * luiLuiRelationId in luiLuiRelationIds, or contextInfo | |
352 | * is missing or null | |
353 | * @throws OperationFailedException unable to complete request | |
354 | * @throws PermissionDeniedException an authorization failure occurred | |
355 | */ | |
356 | public List<LuiLuiRelationInfo> getLuiLuiRelationsByIds(@WebParam(name = "luiLuiRelationIds") List<String> luiLuiRelationIds, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
357 | ||
358 | /** | |
359 | * Retrieves a list of LuiLuiRelation Ids by a LuiLuiRelation | |
360 | * Type. | |
361 | * | |
362 | * @param luiLuiRelationTypeKey an identifier for a LuiLuiRelation | |
363 | * Type | |
364 | * @param contextInfo information containing the principalId and | |
365 | * locale information about the caller of service operation | |
366 | * @return a list of LuiLuiRelation identifiers | |
367 | * @throws InvalidParameterException contextInfo is not valid | |
368 | * @throws MissingParameterException luiLuiRelationTypeKey or | |
369 | * contextInfo is missing or null | |
370 | * @throws OperationFailedException unable to complete request | |
371 | * @throws PermissionDeniedException an authorization failure occurred | |
372 | */ | |
373 | public List<String> getLuiLuiRelationIdsByType(@WebParam(name = "luiLuiRelationTypeKey") String luiLuiRelationTypeKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
374 | ||
375 | /** | |
376 | * Retrieves all LuiLuiRelations to the given Lui. | |
377 | * | |
378 | * @param luiId a unique identifier of the LUI | |
379 | * @param contextInfo information containing the principalId and | |
380 | * locale information about the caller of service operation | |
381 | * @return the LuiLuiRelations to the Lui | |
382 | * @throws InvalidParameterException contextInfo is not valid | |
383 | * @throws MissingParameterException luiId or contextInfo is | |
384 | * missing or null | |
385 | * @throws OperationFailedException unable to complete request | |
386 | * @throws PermissionDeniedException an authorization failure occurred | |
387 | */ | |
388 | public List<LuiLuiRelationInfo> getLuiLuiRelationsByLui(@WebParam(name = "luiId") String luiId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
389 | ||
390 | /** | |
391 | * Retrieves all LuiLuiRelations between the given Luis. | |
392 | * | |
393 | * @param luiId a unique identifier of the LUI | |
394 | * @param relatedLuiId a unique identifier of another LUI | |
395 | * @param contextInfo information containing the principalId and | |
396 | * locale information about the caller of service operation | |
397 | * @return the LuiLuiRelations netween the given Luis | |
398 | * @throws InvalidParameterException contextInfo is not valid | |
399 | * @throws MissingParameterException luiId, relatedLuiid, or | |
400 | * contextInfo is missing or null | |
401 | * @throws OperationFailedException unable to complete request | |
402 | * @throws PermissionDeniedException an authorization failure occurred | |
403 | */ | |
404 | public List<LuiLuiRelationInfo> getLuiLuiRelationsByLuis(@WebParam(name = "luiId") String luiId, @WebParam(name="relatedLuiId") String relatedLuiId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
405 | ||
406 | /** | |
407 | * Retrieves a list of LUI Ids for the specified related LUI Id | |
408 | * and LU to LU relation type (getRelatedLuiIdsByLuiId from the | |
409 | * other direction). | |
410 | * | |
411 | * (??? this method seems unnecessary) | |
412 | * | |
413 | * @param relatedLuiId identifier of the LUI | |
414 | * @param luiLuiRelationTypeKey the LU to LU relation type | |
415 | * @param context Context information containing the principalId | |
416 | * and locale information about the caller of service | |
417 | * operation | |
418 | * @return list of LUI identifiers, empty list of none found | |
419 | * @throws InvalidParameterException invalid parameter | |
420 | * @throws MissingParameterException missing parameter | |
421 | * @throws OperationFailedException unable to complete request | |
422 | * @throws PermissionDeniedException an authorization failure occurred | |
423 | */ | |
424 | public List<String> getLuiIdsByRelation(@WebParam(name = "relatedLuiId") String relatedLuiId, @WebParam(name = "luiLuiRelationTypeKey") String luiLuiRelationTypeKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
425 | ||
426 | /** TODO | |
427 | * Retrieves the list of LUI information for the LUIs related to | |
428 | * the specified LUI Id with a certain LU to LU relation type. | |
429 | * (getRelatedLuisByLuiId from the other direction) | |
430 | * | |
431 | * @param relatedLuiId identifier of the LUI | |
432 | * @param luiLuiRelationTypeKey the LU to LU relation type | |
433 | * @param context Context information containing the principalId | |
434 | * and locale information about the caller of service | |
435 | * operation | |
436 | * @return list of LUI information, empty list if none | |
437 | * @throws InvalidParameterException invalid parameter | |
438 | * @throws MissingParameterException missing paremeter | |
439 | * @throws OperationFailedException unable to complete request | |
440 | * @throws PermissionDeniedException an authorization failure occurred | |
441 | */ | |
442 | public List<LuiInfo> getLuisByRelatedLuiAndRelationType(@WebParam(name = "relatedLuiId") String relatedLuiId, @WebParam(name = "luiLuiRelationTypeKey") String luiLuiRelationTypeKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
443 | ||
444 | /** TODO ??? | |
445 | * Retrieves the list of related LUI Ids for the specified LUI Id | |
446 | * and LU to LU relation type. (getLuiIdsByRelation from the other | |
447 | * direction). | |
448 | * | |
449 | * @param luiId identifier of the LUI | |
450 | * @param luiLuiRelationTypeKey the LU to LU relation type | |
451 | * @param context Context information containing the principalId | |
452 | * and locale information about the caller of service | |
453 | * operation | |
454 | * @return list of LUI identifier, empty list if none found | |
455 | * @throws InvalidParameterException invalid parameter | |
456 | * @throws MissingParameterException missing parameter | |
457 | * @throws OperationFailedException unable to complete request | |
458 | * @throws PermissionDeniedException an authorization failure occurred | |
459 | */ | |
460 | public List<String> getLuiIdsByRelatedLuiAndRelationType(@WebParam(name = "luiId") String luiId, @WebParam(name = "luiLuiRelationTypeKey") String luiLuiRelationTypeKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
461 | ||
462 | /** TODO ??? | |
463 | * Retrieves the list of related LUI information for the specified | |
464 | * LUI Id and LU to LU relation type (getLuisByRelatedLuiAndRelationType from the | |
465 | * other direction). | |
466 | * | |
467 | * @param luiId identifier of the LUI | |
468 | * @param luiLuiRelationTypeKey the LU to LU relation type | |
469 | * @param context Context information containing the principalId | |
470 | * and locale information about the caller of service | |
471 | * operation | |
472 | * @return list of LUI information, empty list if none found | |
473 | * @throws InvalidParameterException invalid luiId, luiLuiRelationTypeKey | |
474 | * @throws MissingParameterException missing luiId, luiLuiRelationTypeKey | |
475 | * @throws OperationFailedException unable to complete request | |
476 | * @throws PermissionDeniedException an authorization failure occurred | |
477 | */ | |
478 | public List<LuiInfo> getRelatedLuisByLuiAndRelationType(@WebParam(name = "luiId") String luiId, @WebParam(name = "luiLuiRelationTypeKey") String luiLuiRelationTypeKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
479 | ||
480 | /** | |
481 | * Retrieves all LuiLuiRelations between a Lui and Luis of the | |
482 | * given Lui Type. | |
483 | * | |
484 | * @param luiId a unique identifier for the Lui | |
485 | * @param relatedLuiTypeKey a unique identifier for a Lui Type | |
486 | * @param contextInfo information containing the principalId and | |
487 | * locale information about the caller of service operation | |
488 | * @return a list of LuiLuiRelations between luiId and Luis of | |
489 | * relatedLuiTypeKey | |
490 | * @throws InvalidParameterException contextInfo is not valid | |
491 | * @throws MissingParameterException luiId, relatedLuiTypeKey, or | |
492 | * contextInfo is missing or null | |
493 | * @throws OperationFailedException unable to complete request | |
494 | * @throws PermissionDeniedException an authorization failure occurred | |
495 | */ | |
496 | public List<LuiInfo> getLuiLuiRelationsByLuiAndLuiType(@WebParam(name = "luiId") String luiId, @WebParam(name = "relatedLuiTypeKey") String relatedLuiTypeKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
497 | ||
498 | /** | |
499 | * Searches for LuiLuiRelations that meet the search criteria and | |
500 | * returns a list of LuiLuiRelation identifiers that meet the | |
501 | * criteria. | |
502 | * | |
503 | * @param criteria the search criteria | |
504 | * @param contextInfoinformation containing the principalId and | |
505 | * locale information about the caller of service operation | |
506 | * @return list of LuiLuiRelationIds | |
507 | * @throws InvalidParameterException criteria or contextInfo is | |
508 | * not valid | |
509 | * @throws MissingParameterException criteria or contextInfo is | |
510 | * missing os null | |
511 | * @throws OperationFailedException unable to complete request | |
512 | * @throws PermissionDeniedException an authorization failure occurred | |
513 | */ | |
514 | public List<String> searchForLuiLuiRelationIds(@WebParam(name = "criteria") QueryByCriteria criteria, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
515 | ||
516 | /** | |
517 | * Searches for LuiLuiRelations that meet the search criteria and | |
518 | * returns a list of LuiLuiRelations that meet the criteria. | |
519 | * | |
520 | * @param criteria the search criteria | |
521 | * @param contextInfo information containing the principalId and | |
522 | * locale information about the caller of service operation | |
523 | * @return list of LuiLuiRelations | |
524 | * @throws InvalidParameterException criteria or contextInfo is | |
525 | * not valid | |
526 | * @throws MissingParameterException criteria or contextInfo is | |
527 | * missing os null | |
528 | * @throws PermissionDeniedException an authorization failure occurred | |
529 | */ | |
530 | public List<LuiLuiRelationInfo> searchForLuiLuiRelations(@WebParam(name = "criteria") QueryByCriteria criteria, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
531 | ||
532 | /** | |
533 | * Validates a LuiLuiRelations. Depending on the value of | |
534 | * validationType, this validation could be limited to tests on | |
535 | * just the current LuiLuiRelation and its directly contained | |
536 | * sub-objects or expanded to perform all tests related to this | |
537 | * LuiLuiRelation. If an identifier is present for the | |
538 | * LuiLuiRelation (and/or one of its contained sub-objects) and a | |
539 | * record is found for that identifier, the validation checks if | |
540 | * the LuiLuiRelation can be updated to the new values. If an | |
541 | * identifier is not present or a record does not exist, the | |
542 | * validation checks if the object with the given data can be | |
543 | * created. | |
544 | * | |
545 | * @param validationTypeKey the identifier for the validation Type | |
546 | * @param luiId the identifier for the Lui | |
547 | * @param relatedLuiId the identifier for the related Lui | |
548 | * @param luiLuiRelationTypeKey the identifier for LuiLuiRelation Type | |
549 | * @param luiLuiRelationInfo the LuiLuiRelation to ve validated | |
550 | * @param contextInfo information containing the principalId and | |
551 | * locale information about the caller of service operation | |
552 | * @return a list of validation results or an empty list if | |
553 | * validation succeeded | |
554 | * @throws DoesNotExistException validationTypeKey, luiId, | |
555 | * relatedLuiId, or luiLuiRelationTypeKey is not found | |
556 | * @throws InvalidParameterException luiLuiRelationInfo or | |
557 | * contextInfo is missing or null | |
558 | * @throws MissingParameterException validationTypeKey, luiId, | |
559 | * relatedLuiId, luiLuiRelationTypeKey, | |
560 | * luiLuiRelationInfo, or contextInfo is missing or null | |
561 | * @throws OperationFailedException unable to complete request | |
562 | * @throws PermissionDeniedException an authorization failure occurred | |
563 | */ | |
564 | public List<ValidationResultInfo> validateLuiLuiRelation(@WebParam(name = "validationTypeKey") String validationTypeKey, @WebParam(name = "luiId") String luiId, @WebParam(name = "relatedLuiId") String relatedLuiId, @WebParam(name = "luiLuiRelationTypeKey") String luiLuiRelationTypeKey, @WebParam(name = "luiLuiRelationInfo") LuiLuiRelationInfo luiLuiRelationInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException;; | |
565 | ||
566 | /** | |
567 | * Create new LuiLuiRelation. The LuiLuiRelation Id, Type, luiId, | |
568 | * relatedLuiId, and Meta information may not be set in the | |
569 | * supplied data. | |
570 | * | |
571 | * @param luiId identifier of the first LUI in the relationship | |
572 | * @param relatedLuiId identifier of the second LUI in the | |
573 | * relationship to be related | |
574 | * @param luiLuiRelationTypeKey a unique key fo rthe Type or new | |
575 | * LuiLuiRelation | |
576 | * @param luiLuiRelationInfo the data with which to create the | |
577 | * LuiLuiRelation | |
578 | * @param contextInfo information containing the principalId and | |
579 | * locale information about the caller of service operation | |
580 | * @return the new LuiLuiRelation | |
581 | * @throws CircularRelationshipException luiId equals relatedLuiId | |
582 | * (why is this a contract failure?) | |
583 | * @throws DataValidationErrorException supplied data is invalid | |
584 | * @throws DoesNotExistException luiId, relatedLuiId, or | |
585 | * luiLuiRelationTypeKey is not found | |
586 | * @throws InvalidParameterException luiLuiRelationInfo ro | |
587 | * contextInfo is not valid | |
588 | * @throws MissingParameterException luiId, relatedLuiId, | |
589 | * luiLuiRelationTypeKey, luiLuiRelationInfo, or | |
590 | * contextInfo is missing or null | |
591 | * @throws OperationFailedException unable to complete request | |
592 | * @throws PermissionDeniedException an authorization failure occurred | |
593 | * @throws ReadOnlyException an attempt at supplying information | |
594 | * designated as read only | |
595 | */ | |
596 | public LuiLuiRelationInfo createLuiLuiRelation(@WebParam(name = "luiId") String luiId, @WebParam(name = "relatedLuiId") String relatedLuiId, @WebParam(name = "luiLuiRelationTypeKey") String luiLuiRelationTypeKey, @WebParam(name = "luiLuiRelationInfo") LuiLuiRelationInfo luiLuiRelationInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws CircularRelationshipException, DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException; | |
597 | ||
598 | /** | |
599 | * Updates an existing LuiLuiRelation. The LuiLuiRelation Id, | |
600 | * luiId, relatedLuiId, and Meta information may not be changed. | |
601 | * | |
602 | * @param luiLuiRelationId the identifier for the LuiLuirelation | |
603 | * to be updated | |
604 | * @param luiLuiRelationInfo the new data for the LuiLuiRelation | |
605 | * @param context information containing the principalId and | |
606 | * locale information about the caller of service operation | |
607 | * @return the updated LuiLuiRelation | |
608 | * @throws DataValidationErrorException supplied data is invalid | |
609 | * @throws DoesNotExistException luiLuiRelationId is not found | |
610 | * @throws InvalidParameterException luiLuiRelationInfo or contextInfo | |
611 | * is not valid | |
612 | * @throws MissingParameterExceptionluiLuiRelationId, | |
613 | * luiLuiRelationInfo, or contextInfo is missing or null | |
614 | * @throws OperationFailedException unable to complete request | |
615 | * @throws PermissionDeniedException an authorization failure occurred | |
616 | * @throws ReadOnlyException an attempt at changing information | |
617 | * designated as read only | |
618 | * @throws VersionMismatchException optimistic locking failure or | |
619 | * the action was attempted on an out of date version | |
620 | */ | |
621 | public LuiLuiRelationInfo updateLuiLuiRelation(@WebParam(name = "luiLuiRelationId") String luiLuiRelationId, @WebParam(name = "luiLuiRelationInfo") LuiLuiRelationInfo luiLuiRelationInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException, VersionMismatchException; | |
622 | ||
623 | /** | |
624 | * Deletes an existing LuiLuiRelation. | |
625 | * | |
626 | * @param luiLuiRelationId identifier or the LuiLuirelation to be | |
627 | * deleted | |
628 | * @param context information containing the principalId and | |
629 | * locale information about the caller of service operation | |
630 | * @return the status of the delete operation. This must always be true. | |
631 | * @throws DoesNotExistException luiLuiRelationId not found | |
632 | * @throws InvalidParameterException contextInfo is not valid | |
633 | * @throws MissingParameterException luiLuiRelationId | |
634 | * or contextInfo is missing or null | |
635 | * @throws OperationFailedException unable to complete request | |
636 | * @throws PermissionDeniedException an authorization failure occurred | |
637 | */ | |
638 | public StatusInfo deleteLuiLuiRelation(@WebParam(name = "luiLuiRelationId") String luiLuiRelationId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
639 | ||
640 | /** | |
641 | * Retrieves a single LuiCapacity by a LuiCapacity Id. | |
642 | * | |
643 | * @param luiCapacityId the identifier for the LuiCapacity to be | |
644 | * retrieved | |
645 | * @param contextInfo information containing the principalId and | |
646 | * locale information about the caller of service operation | |
647 | * @return the LuiCapacity requested | |
648 | * @throws DoesNotExistException luiCapacityId not found | |
649 | * @throws InvalidParameterException contextInfo is not valid | |
650 | * @throws MissingParameterException luiCapacityId or contextInfo | |
651 | * is missing or null | |
652 | * @throws OperationFailedException unable to complete request | |
653 | * @throws PermissionDeniedException an authorization failure occurred | |
654 | */ | |
655 | public LuiCapacityInfo getLuiCapacity(@WebParam(name = "luiCapacityId") String luiCapacityId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
656 | ||
657 | /** | |
658 | * Retrieves a list of LuiCapacity from a list of LuiCapacity | |
659 | * Ids. The returned list may be in any order and if duplicate Ids | |
660 | * are supplied, a unique set may or may not be returned. | |
661 | * | |
662 | * @param luiCapacityIds a list of LuiCapacity identifiers | |
663 | * @param context information containing the principalId and | |
664 | * locale information about the caller of service operation | |
665 | * @return a list of LuiCapacities | |
666 | * @throws DoesNotExistException a luiCapacityId in the list was | |
667 | * not found | |
668 | * @throws InvalidParameterException contextInfo is not valid | |
669 | * @throws MissingParameterException luiCapacityIds, an Id in | |
670 | * luiCapacityIds, or contextInfo is missing or null | |
671 | * @throws OperationFailedException unable to complete request | |
672 | * @throws PermissionDeniedException an authorization failure occurred | |
673 | */ | |
674 | public List<LuiCapacityInfo> getLuiCapacitiesByIds(@WebParam(name = "luiCapacityIds") List<String> luiCapacityIds, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
675 | ||
676 | /** | |
677 | * Retrieves a list of LuiCapacity Ids by LuiCapacity Type. | |
678 | * | |
679 | * @param luiCapacityTypeKey a unique identifier for a LuiCapacity Type | |
680 | * @param context information containing the principalId and | |
681 | * locale information about the caller of service operation | |
682 | * @return information about a list of Lui Capacities | |
683 | * @throws InvalidParameterException contextInfo is not valid | |
684 | * @throws MissingParameterException luiCapacityTypeKey or | |
685 | * contextInfo is missing or null | |
686 | * @throws OperationFailedException unable to complete request | |
687 | * @throws PermissionDeniedException an authorization failure occurred | |
688 | */ | |
689 | public List<String> getLuiCapacityIdsByType(@WebParam(name = "luiCapacityTypeKey") String luiCapacityTypeKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
690 | ||
691 | /** | |
692 | * Retrieves LuiCapacities associated with a Lui. | |
693 | * | |
694 | * @param luiId a unique identifier for a Lui | |
695 | * @param context information containing the principalId and | |
696 | * locale information about the caller of service operation | |
697 | * @return a list of LuiCapacities associated with the given Lui | |
698 | * @throws InvalidParameterException contextInfo is not valid | |
699 | * @throws MissingParameterException luiId or contextInfo is | |
700 | * missing or null | |
701 | * @throws OperationFailedException unable to complete request | |
702 | * @throws PermissionDeniedException an authorization failure occurred | |
703 | */ | |
704 | public List<LuiCapacityInfo> getLuiCapacitiesByLui(@WebParam(name = "luiId") String luiId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
705 | ||
706 | /** | |
707 | * Searches for LuiCapacities that meet the search criteria and | |
708 | * returns a list of LuiCapacity identifiers that meet the | |
709 | * criteria. | |
710 | * | |
711 | * @param criteria the search criteria | |
712 | * @param context information containing the principalId and | |
713 | * locale information about the caller of service operation | |
714 | * @return list of LuiCapacity Ids | |
715 | * @throws InvalidParameterException criteria or contextInfo is | |
716 | * not valid | |
717 | * @throws MissingParameterException criteria or contextInfo is | |
718 | * missing or null | |
719 | * @throws OperationFailedException unable to complete request | |
720 | * @throws PermissionDeniedException an authorization failure occurred | |
721 | */ | |
722 | public List<String> searchForLuiCapacityIds(@WebParam(name = "criteria") QueryByCriteria criteria, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
723 | ||
724 | /** | |
725 | * Searches for LuiCapacities that meet the search criteria and | |
726 | * returns a list of LuiCapacities that meet the criteria. | |
727 | * | |
728 | * @param criteria the search criteria | |
729 | * @param context information containing the principalId and | |
730 | * locale information about the caller of service operation | |
731 | * @return list of LuiCapacitiess | |
732 | * @throws InvalidParameterException criteria or contextInfo is | |
733 | * not valid | |
734 | * @throws MissingParameterException criteria or contextInfo is | |
735 | * missing or null | |
736 | * @throws OperationFailedException unable to complete request | |
737 | * @throws PermissionDeniedException an authorization failure occurred | |
738 | */ | |
739 | public List<LuiCapacityInfo> searchForLuiCapacities(@WebParam(name = "criteria") QueryByCriteria criteria, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
740 | ||
741 | /** | |
742 | * Validates a LuiCapacity. Depending on the value of | |
743 | * validationType, this validation could be limited to tests on | |
744 | * just the current LuiCapacity and its directly contained | |
745 | * sub-objects or expanded to perform all tests related to this | |
746 | * LuiCapacity. If an identifier is present for the LuiCapacity | |
747 | * (and/or one of its contained sub-objects) and a record is | |
748 | * found for that identifier, the validation checks if the | |
749 | * LuiCpacity can be updated to the new values. If an identifier | |
750 | * is not present or a record does not exist, the validation | |
751 | * checks if the object with the given data can be created. | |
752 | * | |
753 | * @param validationTypeKey the identifier for the validation Type | |
754 | * @param luiCapacityInfo the LuiCapacity to be validated | |
755 | * @param context information containing the principalId and | |
756 | * locale information about the caller of service operation | |
757 | * @return a list of validation results or an empty list if validation succeeded | |
758 | * @throws DoesNotExistException validationTypeKey or | |
759 | * luiCapacityTypeKey not found | |
760 | * @throws InvalidParameterException luiInfo or contextInfo is not | |
761 | * valid | |
762 | * @throws MissingParameterException validationTypeKey, luiInfo, | |
763 | * or contextInfo is missing or null | |
764 | * @throws PermissionDeniedException an authorization failure occurred | |
765 | */ | |
766 | public List<ValidationResultInfo> validateLuiCapacity(@WebParam(name = "validationTypeKey") String validationTypeKey, @WebParam(name = "luiCapacityTypeKey") String luiCapacityTypeKey, @WebParam(name = "luiCapacityInfo") LuiCapacityInfo luiCapacityInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
767 | ||
768 | /** | |
769 | * Creates a new LuiCapacity. The LuiCapacity Id, Type, and Meta | |
770 | * information may not be set in the supplied data. | |
771 | * | |
772 | * @param luiCapacityTypeKey an identifier for the Type of the new | |
773 | * LuiCapacity | |
774 | * @param luiCapacityInfo the data with which to create the | |
775 | * LuiCapacity | |
776 | * @param context information containing the principalId and | |
777 | * locale information about the caller of service operation | |
778 | * @return the new LuiCapacity | |
779 | * @throws DataValidationErrorException supplied data is invalid | |
780 | * @throws DoesNotExistException luiCapacityTypeKey not found | |
781 | * @throws InvalidParameterException luiCapacityInfo or | |
782 | * contextInfo is not valid | |
783 | * @throws MissingParameterException luiCapacityTypeKey, | |
784 | * luiCapacityInfo, or contextInfo is missing or null | |
785 | * @throws OperationFailedException unable to complete request | |
786 | * @throws PermissionDeniedException an authorization failure occurred | |
787 | * @throws ReadOnlyException an attempt at supplying information | |
788 | * designated as read only | |
789 | */ | |
790 | public LuiCapacityInfo createLuiCapacity(@WebParam(name = "luiCapacityTypeKey") String luiCapacityTypeKey, @WebParam(name = "luiCapacityInfo") LuiCapacityInfo luiCapacityInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException; | |
791 | ||
792 | /** | |
793 | * Updates an existing LuiCapacity. The LuiCapacity Id, Type, and | |
794 | * Meta information may not be changed. | |
795 | * | |
796 | * @param luiCapacityId the identifier for the LuiCapacity to be | |
797 | * updated | |
798 | * @param luiCapacityInfo the new data for the LuiCapacity | |
799 | * @param context information containing the principalId and | |
800 | * locale information about the caller of service operation | |
801 | * @return the updated LuiCapacity | |
802 | * @throws DataValidationErrorException supplied data is invalid | |
803 | * @throws DoesNotExistException luiCapacityId not found | |
804 | * @throws InvalidParameterException luiCapacityInfo or contextInfo | |
805 | * is not valid | |
806 | * @throws MissingParameterException luiCapacityId, | |
807 | * luiCapacityInfo, or contextInfo is missing or null | |
808 | * @throws OperationFailedException unable to complete request | |
809 | * @throws PermissionDeniedException an authorization failure occurred | |
810 | * @throws ReadOnlyException an attempt at changing information | |
811 | * designated as read only | |
812 | * @throws VersionMismatchException optimistic locking failure or | |
813 | * the action was attempted on an out of date version | |
814 | */ | |
815 | public LuiCapacityInfo updateLuiCapacity(@WebParam(name = "luiCapacityId") String luiCapacityId, @WebParam(name = "luiCapacityInfo") LuiCapacityInfo luiCapacityInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException, VersionMismatchException; | |
816 | ||
817 | /** | |
818 | * Deletes an existing LuiCapacity. | |
819 | * | |
820 | * @param luiCapacityId the identifier for the LuiCapacity to be | |
821 | * deleted | |
822 | * @param context information containing the principalId and | |
823 | * locale information about the caller of service operation | |
824 | * @return the status of the delete operation. This must always be | |
825 | * true. | |
826 | * @throws DoesNotExistException luiCapacityId not found | |
827 | * @throws InvalidParameterException contextInfo is invalid | |
828 | * @throws MissingParameterException luiCapacityId or contextInfo | |
829 | * is missing or null | |
830 | * @throws OperationFailedException unable to complete request | |
831 | * @throws PermissionDeniedException an authorization failure occurred | |
832 | */ | |
833 | public StatusInfo deleteLuiCapacity(@WebParam(name = "luiCapacityId") String luiCapacityId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
834 | } |