| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| AtpServiceAlt |
|
| 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.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 | import org.kuali.rice.core.api.criteria.QueryByCriteria; | |
| 26 | ||
| 27 | import org.kuali.student.r2.core.atp.dto.AtpAtpRelationInfo; | |
| 28 | import org.kuali.student.r2.core.atp.dto.AtpInfo; | |
| 29 | import org.kuali.student.r2.core.atp.dto.AtpMilestoneRelationInfo; | |
| 30 | import org.kuali.student.r2.core.atp.dto.MilestoneInfo; | |
| 31 | ||
| 32 | import org.kuali.student.r2.common.dto.ContextInfo; | |
| 33 | import org.kuali.student.r2.common.dto.StatusInfo; | |
| 34 | import org.kuali.student.r2.common.dto.ValidationResultInfo; | |
| 35 | ||
| 36 | import org.kuali.student.r2.common.service.StateService; | |
| 37 | import org.kuali.student.r2.common.service.TypeService; | |
| 38 | import org.kuali.student.r2.common.datadictionary.service.DataDictionaryService; | |
| 39 | ||
| 40 | import org.kuali.student.r2.common.exceptions.AlreadyExistsException; | |
| 41 | import org.kuali.student.r2.common.exceptions.DataValidationErrorException; | |
| 42 | import org.kuali.student.r2.common.exceptions.DoesNotExistException; | |
| 43 | import org.kuali.student.r2.common.exceptions.InvalidParameterException; | |
| 44 | import org.kuali.student.r2.common.exceptions.MissingParameterException; | |
| 45 | import org.kuali.student.r2.common.exceptions.OperationFailedException; | |
| 46 | import org.kuali.student.r2.common.exceptions.PermissionDeniedException; | |
| 47 | import org.kuali.student.r2.common.exceptions.ReadOnlyException; | |
| 48 | import org.kuali.student.r2.common.exceptions.VersionMismatchException; | |
| 49 | ||
| 50 | import org.kuali.student.r2.common.util.constants.AtpServiceConstants; | |
| 51 | ||
| 52 | /** | |
| 53 | * Academic Time Period Service Description and Assumptions. | |
| 54 | * | |
| 55 | * This service supports the management of Academic Time Periods and | |
| 56 | * their associated Milestones. The intent is to provide a flexible | |
| 57 | * but structured way to define the various time frames that are used | |
| 58 | * throughout the definition, offering and scheduling of Learning | |
| 59 | * Units. This is a catalogue service with basic operations. | |
| 60 | * | |
| 61 | * Version: 1.0 (Dev) | |
| 62 | * | |
| 63 | * @Author tom | |
| 64 | * @Since Tue Apr 05 14:22:34 EDT 2011 | |
| 65 | */ | |
| 66 | ||
| 67 | @WebService(name = "AtpService", serviceName = "AtpService", portName = "AtpService", targetNamespace = "http://student.kuali.org/wsdl/atp") | |
| 68 | @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) | |
| 69 | ||
| 70 | public interface AtpServiceAlt | |
| 71 | extends DataDictionaryService, TypeService, StateService { | |
| 72 | ||
| 73 | // | |
| 74 | // Lookup Methods for ATP Key Entity Pattern. | |
| 75 | // | |
| 76 | ||
| 77 | /** | |
| 78 | * Retrieves a single Academic Time Period by ATP key. | |
| 79 | * | |
| 80 | * @param atpKey the identifier of the Academic Time Period | |
| 81 | * to be retrieved | |
| 82 | * @param contextInfo information containing the principalId and | |
| 83 | * locale information about the caller of service operation | |
| 84 | * @return the Academic Time Period requested | |
| 85 | * @throws DoesNotExistException atpKey not found | |
| 86 | * @throws InvalidParameterException contextInfo not valid | |
| 87 | * @throws MissingParameterException atpKey or contextInfo is | |
| 88 | * missing or null | |
| 89 | * @throws OperationFailedException unable to complete request | |
| 90 | * @throws PermissionDeniedException an authorization failure occurred | |
| 91 | */ | |
| 92 | public AtpInfo getAtp(@WebParam(name = "atpKey") String atpKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 93 | ||
| 94 | /** | |
| 95 | * Retrieves a list of Academic Time Periods from a list of ATP | |
| 96 | * keys. The returned list may be in any order and if duplicate | |
| 97 | * keys are supplied, a unique set may or may not be returned. | |
| 98 | * | |
| 99 | * @param atpKeys a list of ATP keys | |
| 100 | * @param contextInfo information containing the principalId and | |
| 101 | * locale information about the caller of service operation | |
| 102 | * @return a list of ATPs | |
| 103 | * @throws DoesNotExistException an atpKey in the list not found | |
| 104 | * @throws InvalidParameterException contextInfo is not valid | |
| 105 | * @throws MissingParameterException atpKeys, a key in atpKeys, or | |
| 106 | * contextInfo is missing or null | |
| 107 | * @throws OperationFailedException unable to complete request | |
| 108 | * @throws PermissionDeniedException an authorization failure occurred | |
| 109 | */ | |
| 110 | public List<AtpInfo> getAtpsByKeys(@WebParam(name = "atpKeys") List<String> atpKeys, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 111 | ||
| 112 | /** | |
| 113 | * Retrieves a list of Academic Time Periods by ATP Type. | |
| 114 | * | |
| 115 | * @param atpTypeKey an identifier for the ATP type | |
| 116 | * @param contextInfo information containing the principalId and | |
| 117 | * locale information about the caller of service operation | |
| 118 | * @return a list of Academic Time Period keys matching atpTypeKey | |
| 119 | * or an empty list if none found | |
| 120 | * @throws InvalidParameterException contextInfo is invalid | |
| 121 | * @throws MissingParameterException atpTypeKey or contextInfo is | |
| 122 | * missing or null | |
| 123 | * @throws OperationFailedException unable to complete request | |
| 124 | * @throws PermissionDeniedException an authorization failure occurred | |
| 125 | */ | |
| 126 | public List<String> getAtpKeysByType(@WebParam(name = "atpTypeKey") String atpTypeKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 127 | ||
| 128 | // | |
| 129 | // Special ATP lookup methods by date. | |
| 130 | // | |
| 131 | ||
| 132 | /** | |
| 133 | * Retrieves a list of Academic Time Periods where the supplied | |
| 134 | * date falls within the start and end date of the ATP inclusive | |
| 135 | * of the date. | |
| 136 | * | |
| 137 | * @param date a date | |
| 138 | * @param contextInfo information containing the principalId and | |
| 139 | * locale information about the caller of service operation | |
| 140 | * @return a list of Academic Time Periods that contain the supplied | |
| 141 | * date | |
| 142 | * @throws InvalidParameterException contextInfo is not valid | |
| 143 | * @throws MissingParameterException date or contextInfo is | |
| 144 | * missing or null | |
| 145 | * @throws OperationFailedException unable to complete request | |
| 146 | * @throws PermissionDeniedException authorization failure | |
| 147 | */ | |
| 148 | public List<AtpInfo> getAtpsByDate(@WebParam(name = "date") Date date, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 149 | ||
| 150 | /** | |
| 151 | * Retrieves a list of Academic Time Periods where the supplied | |
| 152 | * date falls within the start and end date of the ATP, inclusive | |
| 153 | * of the date, and whose type matches the specified ATP type. | |
| 154 | * | |
| 155 | * @param date a date | |
| 156 | * @param atpTypeKey an identifier for an ATP Type | |
| 157 | * @param contextInfo information containing the principalId and | |
| 158 | * locale information about the caller of service operation | |
| 159 | * @return a list of Academic Time Periods of the ATP Type that | |
| 160 | * contain the supplied date | |
| 161 | * @throws InvalidParameterException contextInfo is not valid | |
| 162 | * @throws MissingParameterException date, atpTypeKey, or | |
| 163 | * contextInfo is missing or null | |
| 164 | * @throws OperationFailedException unable to complete request | |
| 165 | * @throws PermissionDeniedException an authorization failure occurred | |
| 166 | */ | |
| 167 | public List<AtpInfo> getAtpsByDateAndType(@WebParam(name = "date") Date date, @WebParam(name = "atpTypeKey") String atpTypeKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 168 | ||
| 169 | /** | |
| 170 | * Retrieves a list of Academic Time Periods that are totally | |
| 171 | * contained within the supplied dates. The entire ATP falls | |
| 172 | * within the supplied dates inclusive of the dates. | |
| 173 | * | |
| 174 | * @param startDate start date of range | |
| 175 | * @param endDate end date of range | |
| 176 | * @param contextInfo information containing the principalId and | |
| 177 | * locale information about the caller of service operation | |
| 178 | * @return a list of Academic Time Periods within the supplied dates | |
| 179 | * @throws InvalidParameterException contextInfo is not valid or | |
| 180 | * the startDate is greater than the endDate | |
| 181 | * @throws MissingParameterException startDate, endDate, or | |
| 182 | * contextInfo is missing or null | |
| 183 | * @throws OperationFailedException unable to complete request | |
| 184 | * @throws PermissionDeniedException an authorization failure occurred | |
| 185 | */ | |
| 186 | public List<AtpInfo> getAtpsByDates(@WebParam(name = "startDate") Date startDate, @WebParam(name = "endDate") Date endDate, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 187 | ||
| 188 | /** | |
| 189 | * Retrieves the list of Academic Time Periods that are totally | |
| 190 | * contained within the supplied dates and whose type matches the | |
| 191 | * supplied ATP type. The entire ATP falls within the supplied | |
| 192 | * dates inclusive of the dates. | |
| 193 | * | |
| 194 | * @param startDate start date of range | |
| 195 | * @param endDate end date of range | |
| 196 | * @param atpTypeKey an identifier for an ATP Type | |
| 197 | * @param contextInfo information containing the principalId and | |
| 198 | * locale information about the caller of service operation | |
| 199 | * @return a list of Academic Time Periods of the supplied ATP | |
| 200 | * Type within the supplied dates | |
| 201 | * @throws InvalidParameterException contextInfo is not valid or | |
| 202 | * startDate is greater than endDate | |
| 203 | * @throws MissingParameterException startDate, endDate, | |
| 204 | * atpTypeKey, or conetxtInfo is missing or null | |
| 205 | * @throws OperationFailedException unable to complete request | |
| 206 | * @throws PermissionDeniedException an authorization failure occurred | |
| 207 | */ | |
| 208 | public List<AtpInfo> getAtpsByDatesAndType(@WebParam(name = "startDate") Date startDate, @WebParam(name = "endDate") Date endDate, @WebParam(name = "atpTypeKey") String atpTypeKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 209 | ||
| 210 | /** | |
| 211 | * Retrieves a list of Academic Time Periods whose start dates | |
| 212 | * fall within the supplied date range, inclusive of the start and | |
| 213 | * end dates on the supplied range. | |
| 214 | * | |
| 215 | * @param dateRangeStart start date of range | |
| 216 | * @param dateRangeEnd end date of range | |
| 217 | * @param contextInfo information containing the principalId and | |
| 218 | * locale information about the caller of service operation | |
| 219 | * @return a list of Academic Time Periods with start dates within | |
| 220 | * the supplied dates | |
| 221 | * @throws InvalidParameterException contextInfo is not valid or | |
| 222 | * startDate is greater than endDate | |
| 223 | * @throws MissingParameterException datRangeStart, dateRangeEnd, | |
| 224 | * or contextInfo is missing or null | |
| 225 | * @throws OperationFailedException unable to complete request | |
| 226 | * @throws PermissionDeniedException an authorization failure occurred | |
| 227 | */ | |
| 228 | public List<AtpInfo> getAtpsByStartDateRange(@WebParam(name = "dateRangeStart") Date dateRangeStart, @WebParam(name = "dateRangeEnd") Date dateRangeEnd, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 229 | ||
| 230 | /** | |
| 231 | * Retrieves the list of Academic Time Periods whose start dates | |
| 232 | * fall within the supplied date range, inclusive of the start and | |
| 233 | * end dates on the range and whose type matches the specified | |
| 234 | * ATP Type. | |
| 235 | * | |
| 236 | * @param dateRangeStart start date of range | |
| 237 | * @param dateRangeEnd end date of range | |
| 238 | * @param atpTypeKey an identifier for an ATP Type | |
| 239 | * @param contextInfo information containing the principalId and | |
| 240 | * locale information about the caller of service operation | |
| 241 | * @return a list of Academic Time Periods with start dates within | |
| 242 | * the supplied dates and of the given ATP Type | |
| 243 | * @throws InvalidParameterException contextInfo is not valid or | |
| 244 | * dateRangeStart is greater than dateRangeEnd | |
| 245 | * @throws MissingParameterException dateRangeStart, dateRangeEnd, | |
| 246 | * atpTypeKey, or contextInfo is missing or null | |
| 247 | * @throws OperationFailedException unable to complete request | |
| 248 | * @throws PermissionDeniedException an authorization failure occurred | |
| 249 | */ | |
| 250 | public List<AtpInfo> getAtpsByStartDateRangeAndType(@WebParam(name = "dateRangeStart") Date dateRangeStart, @WebParam(name = "dateRangeEnd") Date dateRangeEnd, @WebParam(name = "atpTypeKey") String atpTypeKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 251 | ||
| 252 | // | |
| 253 | // Search methods for ATP Key Entity Pattern. | |
| 254 | // | |
| 255 | ||
| 256 | /** | |
| 257 | * Searches for Academic Time Periods that meet the given search | |
| 258 | * criteria. | |
| 259 | * | |
| 260 | * @param criteria the search criteria | |
| 261 | * @param contextInfo information containing the principalId and | |
| 262 | * locale information about the caller of service operation | |
| 263 | * @return list of ATP identifiers matching the criteria | |
| 264 | * @throws InvalidParameterException criteria or contextInfo is not valid | |
| 265 | * @throws MissingParameterException criteria or contextInfo is | |
| 266 | * missing or null | |
| 267 | * @throws OperationFailedException unable to complete request | |
| 268 | * @throws PermissionDeniedException an authorization failure occurred | |
| 269 | */ | |
| 270 | public List<String> searchForAtpKeys(@WebParam(name = "criteria") QueryByCriteria criteria, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 271 | ||
| 272 | /** | |
| 273 | * Searches for Academic Time Periods that meet the given search | |
| 274 | * criteria. | |
| 275 | * | |
| 276 | * @param criteria the search criteria | |
| 277 | * @param contextInfo information containing the principalId and | |
| 278 | * locale information about the caller of service operation | |
| 279 | * @return list of ATPs matching the criteria | |
| 280 | * @throws InvalidParameterException criteria or contextInfo is | |
| 281 | * not valid | |
| 282 | * @throws MissingParameterException criteria or contextInfo is | |
| 283 | * missing or null | |
| 284 | * @throws OperationFailedException unable to complete request | |
| 285 | * @throws PermissionDeniedException an authorization failure occurred | |
| 286 | */ | |
| 287 | public List<AtpInfo> searchForAtps(@WebParam(name = "criteria") QueryByCriteria criteria, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 288 | ||
| 289 | // | |
| 290 | // CRUD methods for ATP Key Entity Pattern. | |
| 291 | // | |
| 292 | ||
| 293 | /** | |
| 294 | * Validates an Academic Time Period. Depending on the value of | |
| 295 | * validationType, this validation could be limited to tests on | |
| 296 | * just the current object and its directly contained sub-objects | |
| 297 | * or expanded to perform all tests related to this ATP. If an | |
| 298 | * identifier is present for the ATP (and/or one of its contained | |
| 299 | * sub-objects) and a record is found for that identifier, the | |
| 300 | * validation checks if the ATP can be shifted to the new | |
| 301 | * values. If a an identifier is not present or a record does not | |
| 302 | * exist, the validation checks if the ATP with the given data can | |
| 303 | * be created. | |
| 304 | * | |
| 305 | * @param validationTypeKey the identifier for the validation Type | |
| 306 | * @param atpTypeKey the identifier for the ATP Type to be validated | |
| 307 | * @param atpInfo the identifier for the ATP to be validated | |
| 308 | * @param contextInfo information containing the principalId and | |
| 309 | * locale information about the caller of service operation | |
| 310 | * @return a list of validation results or an empty list if | |
| 311 | * validation succeeded | |
| 312 | * @throws DoesNotExistException validationTypeKey or atpTypeKey | |
| 313 | * is not found | |
| 314 | * @throws InvalidParameterException atpInfo or contextInfo is not | |
| 315 | * valid | |
| 316 | * @throws MissingParameterException validationTypeKey, atpTypeKey | |
| 317 | * atpInfo, or contextInfo is missing or null | |
| 318 | * @throws OperationFailedException unable to complete request | |
| 319 | * @throws PermissionDeniedException an authorization failure occurred | |
| 320 | */ | |
| 321 | public List<ValidationResultInfo> validateAtp(@WebParam(name = "validationTypeKey") String validationTypeKey, @WebParam(name = "atpTypeKey") String atpTypeKey, @WebParam(name = "atpInfo") AtpInfo atpInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 322 | ||
| 323 | /** | |
| 324 | * Creates a new Academic Time Period. The ATP Type and Meta | |
| 325 | * information may not be set in the supplied data object. | |
| 326 | * | |
| 327 | * @param atpKey a unique for the new ATP | |
| 328 | * @param atpTypeKey the identifier for the Type of ATP to be created | |
| 329 | * @param atpInfo the data with which to create the ATP | |
| 330 | * @param contextInfo information containing the principalId and | |
| 331 | * locale information about the caller of service operation | |
| 332 | * @return the new ATP | |
| 333 | * @throws AlreadyExistsException atpKey already exists | |
| 334 | * @throws DataValidationErrorException supplied data is invalid | |
| 335 | * @throws DoesNotExistException atpTypeKey does not exist or is | |
| 336 | * not supported | |
| 337 | * @throws InvalidParameterException atpInfo or contextInfo is not | |
| 338 | * valid | |
| 339 | * @throws MissingParameterException atpKey, atpTypeKey, atpInfo, | |
| 340 | * or contextInfo is missing or null | |
| 341 | * @throws OperationFailedException unable to complete request | |
| 342 | * @throws PermissionDeniedException an authorization failure occurred | |
| 343 | * @throws ReadOnlyException an attempt at supplying information | |
| 344 | * designated as read only | |
| 345 | */ | |
| 346 | public AtpInfo createAtp(@WebParam(name = "atpKey") String atpKey, @WebParam(name = "atpInfo") AtpInfo atpInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws AlreadyExistsException, DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException; | |
| 347 | ||
| 348 | /** | |
| 349 | * Updates an existing Academic Time Period. The ATP key, Type, | |
| 350 | * and Meta information may not be changed. | |
| 351 | * | |
| 352 | * @param atpKey the identifier for the ATP to be updated | |
| 353 | * @param atpInfo the new data for the ATP | |
| 354 | * @param contextInfo information containing the principalId and | |
| 355 | * locale information about the caller of service operation | |
| 356 | * @return the updated ATP | |
| 357 | * @throws DataValidationErrorException supplied data is invalid | |
| 358 | * @throws DoesNotExistException atpKey is not found | |
| 359 | * @throws InvalidParameterException atpInfo or contextInfo is not | |
| 360 | * valid | |
| 361 | * @throws MissingParameterException atpKey, atpInfo, or | |
| 362 | * contextInfo is missing or null | |
| 363 | * @throws OperationFailedException unable to complete request | |
| 364 | * @throws PermissionDeniedException an authorization failure occurred | |
| 365 | * @throws ReadOnlyException an attempt at supplying information | |
| 366 | * designated as read only | |
| 367 | * @throws VersionMismatchException an optimistic locking failure | |
| 368 | * or the action was attempted on an out of date version | |
| 369 | */ | |
| 370 | public AtpInfo updateAtp(@WebParam(name = "atpKey") String atpKey, @WebParam(name = "atpInfo") AtpInfo atpInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException, VersionMismatchException; | |
| 371 | ||
| 372 | /** | |
| 373 | * Deletes an existing Academic Time Period. | |
| 374 | * | |
| 375 | * @param atpKey the identifier for the ATP to be deleted | |
| 376 | * @param contextInfo information containing the principalId and | |
| 377 | * locale information about the caller of service operation | |
| 378 | * @return the status of the operation. This must always be true. | |
| 379 | * @throws DoesNotExistException atpKey is not found | |
| 380 | * @throws InvalidParameterException contextInfo is not valid | |
| 381 | * @throws MissingParameterException atpKey or contextInfo is | |
| 382 | * missing or null | |
| 383 | * @throws OperationFailedException unable to complete request | |
| 384 | * @throws PermissionDeniedException an authorization failure occurred | |
| 385 | */ | |
| 386 | public StatusInfo deleteAtp(@WebParam(name = "atpKey") String atpKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 387 | ||
| 388 | // | |
| 389 | // Lookup methods for AtpAtpRelation Symmetrical Relationship Pattern. | |
| 390 | // | |
| 391 | ||
| 392 | /** | |
| 393 | * Retrieves a single AtpAtpRelation by AtpAtpRelation Id. | |
| 394 | * | |
| 395 | * @param atpAtpRelationId the identifier for the AtpAtpRelation | |
| 396 | * to be retrieved | |
| 397 | * @param contextInfo information containing the principalId and | |
| 398 | * locale information about the caller of service operation | |
| 399 | * @return the AtpAtpRelatin requested | |
| 400 | * @throws DoesNotExistException atpAtpRelationId is not found | |
| 401 | * @throws InvalidParameterException contextInfo is not valid | |
| 402 | * @throws MissingParameterException atpAtpRelationId or | |
| 403 | * contextInfo is missing or null | |
| 404 | * @throws OperationFailedException unable to complete request | |
| 405 | * @throws PermissionDeniedException an authorization failure occurred | |
| 406 | */ | |
| 407 | public AtpAtpRelationInfo getAtpAtpRelation(@WebParam(name = "atpAtpRelationId") String atpAtpRelationId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 408 | ||
| 409 | /** | |
| 410 | * Retrieves a list of AtpAtpRelations from a list of | |
| 411 | * AtpAtpRelation Ids. The returned list may be in any order and | |
| 412 | * if duplicate Ids are supplied, a unique set may or may not be | |
| 413 | * returned. | |
| 414 | * | |
| 415 | * @param atpAtpRelationIds a list of AtpAtpRelation identifiers | |
| 416 | * @param contextInfo information containing the principalId and | |
| 417 | * locale information about the caller of service operation | |
| 418 | * @return a list of AtpAtpRelations | |
| 419 | * @throws DoesNotExistException an atpAtpRelationId in the list | |
| 420 | * not found | |
| 421 | * @throws InvalidParameterException contextInfo is not valid | |
| 422 | * @throws MissingParameterException atpAtpRelationids, an | |
| 423 | * atpAtpRelationId in the atpAtpRelationIds, or | |
| 424 | * contextInfo is missing or null | |
| 425 | * @throws OperationFailedException unable to complete request | |
| 426 | * @throws PermissionDeniedException an authorization failure occurred | |
| 427 | */ | |
| 428 | public List<AtpAtpRelationInfo> getAtpAtpRelationsByIds(@WebParam(name = "atpAtpRelationIds") List<String> atpAtpRelationIds, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 429 | ||
| 430 | /** | |
| 431 | * Retrieves a list of AtpAtpRelation Ids by AtpAtpRelation Type. | |
| 432 | * | |
| 433 | * @param atpAtpRelationTypeKey an identifier for an | |
| 434 | * AtpAtpRelation Type | |
| 435 | * @param contextInfo information containing the principalId and | |
| 436 | * locale information about the caller of service operation | |
| 437 | * @return a list of AtpAtpRelation identifiers matching | |
| 438 | * atpAtpRelationTypeKey or an empty list if none found | |
| 439 | * @throws InvalidParameterException contextInfo is not valid | |
| 440 | * @throws MissingParameterException atpRelationTypeKey or | |
| 441 | * contextInfo is missing or null | |
| 442 | * @throws OperationFailedException unable to complete request | |
| 443 | * @throws PermissionDeniedException an authorization failure occurred | |
| 444 | */ | |
| 445 | public List<String> getAtpAtpRelationIdsByType(@WebParam(name = "atpAtpRelationTypeKey") String atpAtpRelationTypeKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 446 | ||
| 447 | /** | |
| 448 | * Retrieves all AtpAtpRelations to the given ATP independent of | |
| 449 | * which side of the relationship the ATP resides. | |
| 450 | * | |
| 451 | * @param atpKey the identifier for the ATP | |
| 452 | * @param contextInfo information containing the principalId and | |
| 453 | * locale information about the caller of service operation | |
| 454 | * @return a list of AtpAtprelations to the given ATP or an empty | |
| 455 | * list if none found | |
| 456 | * @throws InvalidParameterException contextInfo is not valid | |
| 457 | * @throws MissingParameterException atpKey or contextInfo is | |
| 458 | * missing or null | |
| 459 | * @throws OperationFailedException unable to complete request | |
| 460 | * @throws PermissionDeniedException an authorization failure occurred | |
| 461 | */ | |
| 462 | public List<AtpAtpRelationInfo> getAtpAtpRelationsByAtp(@WebParam(name = "atpKey") String atpKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 463 | ||
| 464 | /** | |
| 465 | * Retrieves all AtpAtpRelations between the given ATPs. | |
| 466 | * | |
| 467 | * @param atpKey the identifier for the ATP | |
| 468 | * @param atpPeerKey the identifier for the peer ATP | |
| 469 | * @param contextInfo information containing the principalId and | |
| 470 | * locale information about the caller of service operation | |
| 471 | * @return a list of AtpAtprelations between the given ATPs or an | |
| 472 | * empty list if none found | |
| 473 | * @throws InvalidParameterException contextInfo is not valid | |
| 474 | * @throws MissingParameterException atpKey, atpPeerKey, or | |
| 475 | * contextInfo is missing or null | |
| 476 | * @throws OperationFailedException unable to complete request | |
| 477 | * @throws PermissionDeniedException an authorization failure occurred | |
| 478 | */ | |
| 479 | public List<AtpAtpRelationInfo> getAtpAtpRelationsByAtps(@WebParam(name = "atpKey") String atpKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 480 | ||
| 481 | /** | |
| 482 | * Retrieves a list of AtpAtpRelations of the specified | |
| 483 | * AtpAtpRelationType for an ATP. (these parameters are backwards). | |
| 484 | * | |
| 485 | * @param atpKey the identifier for an ATP | |
| 486 | * @param atpAtpRelationTypeKey the identifier for an AtpAtpRelationType | |
| 487 | * @param contextInfo information containing the principalId and | |
| 488 | * locale information about the caller of service operation | |
| 489 | * @return a list of AtpAtpRelations of the specified | |
| 490 | * AtpAtpRelationType for the given ATP or an empty list | |
| 491 | * if none found | |
| 492 | * @throws InvalidParameterException contextInfo is notvalid | |
| 493 | * @throws MissingParameterException atpKey, | |
| 494 | * atpAtpRelationTypeKey, or contextInfo is missing or | |
| 495 | * null | |
| 496 | * @throws OperationFailedException unable to complete request | |
| 497 | * @throws PermissionDeniedException an authorization failure occurred | |
| 498 | */ | |
| 499 | public List<AtpAtpRelationInfo> getAtpAtpRelationsByTypeAndAtp(@WebParam(name = "atpKey") String atpKey, @WebParam(name = "atpRelationTypeKey") String atpRelationTypeKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 500 | ||
| 501 | /** | |
| 502 | * Retrieves a list of AtpAtpRelations of the specified | |
| 503 | * AtpAtpRelationType between the given ATPs. | |
| 504 | * | |
| 505 | * @param atpAtpRelationTypeKey the identifier for an AtpAtpRelationType | |
| 506 | * @param atpKey the identifier for an ATP | |
| 507 | * @param atpPeerKey the identifier for a peer ATP | |
| 508 | * @param contextInfo information containing the principalId and | |
| 509 | * locale information about the caller of service operation | |
| 510 | * @return a list of AtpAtpRelations of the specified | |
| 511 | * AtpAtpRelationType between the given ATPs or an empty | |
| 512 | * list if none found | |
| 513 | * @throws InvalidParameterException contextInfo is notvalid | |
| 514 | * @throws MissingParameterException atpAtpRelationTypeKey, | |
| 515 | * atpKey, atpPeerKey, or | |
| 516 | * contextInfo is missing or null | |
| 517 | * @throws OperationFailedException unable to complete request | |
| 518 | * @throws PermissionDeniedException an authorization failure occurred | |
| 519 | */ | |
| 520 | public List<AtpAtpRelationInfo> getAtpAtpRelationsByTypeAndAtp(@WebParam(name = "atpRelationTypeKey") String atpRelationTypeKey, @WebParam(name = "atpKey") String atpKey, @WebParam(name = "atpPeerKey") String atpPeerKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 521 | ||
| 522 | // | |
| 523 | // Search methods for AtpAtpRelation Symmetrical Relationship Pattern. | |
| 524 | // | |
| 525 | ||
| 526 | /** | |
| 527 | * Searches for AtpAtpRelations that meet the given search | |
| 528 | * criteria. | |
| 529 | * | |
| 530 | * @param criteria the search criteria | |
| 531 | * @param contextInfo information containing the principalId and | |
| 532 | * locale information about the caller of service operation | |
| 533 | * @return a list of AtpAtpRelation identifiers matching the criteria | |
| 534 | * @throws InvalidParameterException criteria or contextInfo is not valid | |
| 535 | * @throws MissingParameterException criteria or contextInfo is | |
| 536 | * missing or null | |
| 537 | * @throws OperationFailedException unable to complete request | |
| 538 | * @throws PermissionDeniedException an authorization failure occurred | |
| 539 | */ | |
| 540 | public List<String> searchForAtpAtpRelationIds(@WebParam(name = "criteria") QueryByCriteria criteria, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 541 | ||
| 542 | /** | |
| 543 | * Searches for AtpAtpRelations that meet the given search | |
| 544 | * criteria. | |
| 545 | * | |
| 546 | * @param criteria the search criteria | |
| 547 | * @param contextInfo information containing the principalId and | |
| 548 | * locale information about the caller of service operation | |
| 549 | * @return a list of AtpAtpRelations matching the criteria | |
| 550 | * @throws InvalidParameterException contextInfo is invalid | |
| 551 | * @throws MissingParameterException criteria or contextInfo | |
| 552 | * is missing or null | |
| 553 | * @throws OperationFailedException unable to complete request | |
| 554 | * @throws PermissionDeniedException an authorization failure occurred | |
| 555 | */ | |
| 556 | public List<AtpAtpRelationInfo> searchForAtpAtpRelations(@WebParam(name = "criteria") QueryByCriteria criteria, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 557 | ||
| 558 | // | |
| 559 | // CRUD methods for AtpAtpRelation Symmetrical Relationship Pattern. | |
| 560 | // | |
| 561 | ||
| 562 | /** | |
| 563 | * Validates an AtpAtpRelation. Depending on the value of | |
| 564 | * validationType, this validation could be limited to tests on | |
| 565 | * just the current AtpAtpRelation and its directly contained | |
| 566 | * sub-objects or expanded to perform all tests related to this | |
| 567 | * AtpAtpRelation. If an identifier is present for the | |
| 568 | * AtpAtpRelation (and/or one of its contained sub-objects) and a | |
| 569 | * record is found for that identifier, the validation checks if | |
| 570 | * the AtpAtpRelation can be shifted to the new values. If an | |
| 571 | * identifier is not present or a record cannot be found for the | |
| 572 | * identifier, the validation checks if the object with the given | |
| 573 | * data can be created. | |
| 574 | * | |
| 575 | * @param validationTypeKey the identifier for the validation Type | |
| 576 | * @param atpKey the identifier for an ATP | |
| 577 | * @param atpPeerKey a the identifier for the ATP peer | |
| 578 | * @param atpAtpRelationTypeKey the identifier for the | |
| 579 | * AtpAtpRelation Type | |
| 580 | * @param atpAtpRelationInfo the AtpAtpRelation to be validated | |
| 581 | * @param contextInfo information containing the principalId and | |
| 582 | * locale information about the caller of service operation | |
| 583 | * @return a list of validation results or an empty list if | |
| 584 | * validation succeeded | |
| 585 | * @throws DoesNotExistException validationTypeKey, atpKey, | |
| 586 | * atpPeerKey, or atpAtpRelationTypeKey is not found | |
| 587 | * @throws InvalidParameterException atpAtpRelationInfo or | |
| 588 | * contextInfo is not valid | |
| 589 | * @throws MissingParameterException validationTypeKey, atpKey, | |
| 590 | * atpPeerKey, atpAtpRelationTypeKey, atpAtpRelationInfo, | |
| 591 | * or contextInfo is missing or null | |
| 592 | * @throws OperationFailedException unable to complete request | |
| 593 | * @throws PermissionDeniedException authorization failure | |
| 594 | */ | |
| 595 | public List<ValidationResultInfo> validateAtpAtpRelation(@WebParam(name = "validationTypeKey") String validationTypeKey, @WebParam(name = "atpKey") String atpKey, @WebParam(name = "atpPeerKey") String atpPeerKey, @WebParam(name = "atpAtprelationTypeKey") String atpAtpRelationTypeKey, @WebParam(name = "atpAtpRelationInfo") AtpAtpRelationInfo atpAtpRelationInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 596 | ||
| 597 | /** | |
| 598 | * Creates a new AtpAtpRelation. The AtpAtpRelation Id, Type, ATP | |
| 599 | * keys, and Meta information may not be set in the supplied data. | |
| 600 | * | |
| 601 | * @param atpKey a peer of the relationship | |
| 602 | * @param atpPeerKey a peer of the relationship | |
| 603 | * @param atpAtpRelationTypeKey the identifier for the | |
| 604 | * AtpAtpRelation Type | |
| 605 | * @param atpAtpRelationInfo the relationship to be created | |
| 606 | * @param contextInfo information containing the principalId and | |
| 607 | * locale information about the caller of service operation | |
| 608 | * @return the new AtpAtpRelation | |
| 609 | * @throws DataValidationErrorException supplied data is invalid | |
| 610 | * @throws DoesNotExistException atpKey, atpPeerKey, or | |
| 611 | * atpAtpRelationTypeKey is not found | |
| 612 | * @throws InvalidParameterException atpAtpRelationInfo or | |
| 613 | * contextInfo is not valid | |
| 614 | * @throws MissingParameterException atpKey, atpPeerKey, | |
| 615 | * atpAtpRelationTypeKey, atpAtpRelationInfo, or | |
| 616 | * contextInfo is missing or null | |
| 617 | * @throws OperationFailedException unable to complete request | |
| 618 | * @throws PermissionDeniedException an authorization failure occurred | |
| 619 | * @throws ReadOnlyException an attempt at supplying information | |
| 620 | * designated as read only | |
| 621 | */ | |
| 622 | public AtpAtpRelationInfo createAtpAtpRelation(@WebParam(name = "atpKey") String atpKey, @WebParam(name = "atpPeerKey") String atpPeerKey, @WebParam(name = "atpAtpRelationInfo") AtpAtpRelationInfo atpAtpRelationInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException; | |
| 623 | ||
| 624 | /** | |
| 625 | * Updates an ATP Milestone Relationship. The AtpAtpRelation Id, | |
| 626 | * Type, ATP keys, and Meta information may not be changed. | |
| 627 | * | |
| 628 | * @param atpAtpRelationId the identifier for the AtpAtpRelation | |
| 629 | * updated | |
| 630 | * @param atpAtpRelationInfo the new data for the AtpAtpRelation | |
| 631 | * @param contextInfo information containing the principalId and | |
| 632 | * locale information about the caller of service operation | |
| 633 | * @return the updated AtpAtpRelation | |
| 634 | * @throws DataValidationErrorException supplied data is invalid | |
| 635 | * @throws DoesNotExistException atpAtpRelationId is not found | |
| 636 | * @throws InvalidParameterException atpAtpRelationInfo or | |
| 637 | * contextInfo is not valid | |
| 638 | * @throws MissingParameterException atpAtpRelationId, | |
| 639 | * atpAtpRelationInfo, or contextInfo is missing or null | |
| 640 | * @throws OperationFailedException unable to complete request | |
| 641 | * @throws PermissionDeniedException an authorization failure occurred | |
| 642 | * @throws ReadOnlyException an attempt at supplying information | |
| 643 | * designated as read-only | |
| 644 | * @throws VersionMismatchException optimistic locking failure or | |
| 645 | * the action was attempted on an out of date version | |
| 646 | */ | |
| 647 | public AtpAtpRelationInfo updateAtpAtpRelation(@WebParam(name = "atpAtpRelationId") String atpAtpRelationId, @WebParam(name = "atpAtpRelationInfo") AtpAtpRelationInfo atpAtpRelationInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException, VersionMismatchException; | |
| 648 | ||
| 649 | /** | |
| 650 | * Deletes an existing AtpAtpRelation. | |
| 651 | * | |
| 652 | * @param atpAtpRelationId the identifier for the AtpAtpRelation | |
| 653 | * to be deleted | |
| 654 | * @param contextInfo information containing the principalId and | |
| 655 | * locale information about the caller of service operation | |
| 656 | * @return status of the delete operation. This must always be true. | |
| 657 | * @throws DoesNotExistException atpAtprelationId is not found | |
| 658 | * @throws InvalidParameterException contextInfo is not valid | |
| 659 | * @throws MissingParameterException atpAtpRelationId or | |
| 660 | * contextInfo is missing or null | |
| 661 | * @throws OperationFailedException unable to complete request | |
| 662 | * @throws PermissionDeniedException an authorization failure occurred | |
| 663 | */ | |
| 664 | public StatusInfo deleteAtpAtpRelation(@WebParam(name = "atpAtpRelationId") String atpAtpRelationId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 665 | ||
| 666 | // | |
| 667 | // Lookup methods for Milestone Id Entity Pattern. | |
| 668 | // | |
| 669 | ||
| 670 | /** | |
| 671 | * Retrieves a single Milestone by a Milestone Id. | |
| 672 | * | |
| 673 | * @param milestoneId the identifier for the Milestone to be | |
| 674 | * retrieved | |
| 675 | * @param contextInfo information containing the principalId and | |
| 676 | * locale information about the caller of service operation | |
| 677 | * @return the Milestone requested | |
| 678 | * @throws DoesNotExistException milestoneId is not found | |
| 679 | * @throws InvalidParameterException contextInfo is not valid | |
| 680 | * @throws MissingParameterException milestoneId or contextInfo is | |
| 681 | * missing or null | |
| 682 | * @throws OperationFailedException unable to complete request | |
| 683 | * @throws PermissionDeniedException an authorization failure occurred | |
| 684 | */ | |
| 685 | public MilestoneInfo getMilestone(@WebParam(name = "milestoneId") String milestoneId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 686 | ||
| 687 | /** | |
| 688 | * Retrieves a list of Milestones from a list of Milestone | |
| 689 | * Ids. The returned list may be in any order and if duplicate Ids | |
| 690 | * are supplied, a unique set may or may not be returned. | |
| 691 | * | |
| 692 | * @param milestoneIds a list of Milestone identifiers | |
| 693 | * @param contextInfo information containing the principalId and | |
| 694 | * locale information about the caller of service operation | |
| 695 | * @return a list of Milestones | |
| 696 | * @throws DoesNotExistException a milestoneId in the list was not | |
| 697 | * found | |
| 698 | * @throws InvalidParameterException contextInfo is not valid | |
| 699 | * @throws MissingParameterException milestoneIds, an Id in the | |
| 700 | * milestoneIds, or contextInfo is missing or null | |
| 701 | * @throws OperationFailedException unable to complete request | |
| 702 | * @throws PermissionDeniedException an authorization failure occurred | |
| 703 | */ | |
| 704 | public List<MilestoneInfo> getMilestonesByIds(@WebParam(name = "milestoneIds") List<String> milestoneIds, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 705 | ||
| 706 | /** | |
| 707 | * Retrieves a list of Milestone Ids by Milestone Type. | |
| 708 | * | |
| 709 | * @param milestoneTypeKey an identifier for a Milestone Type | |
| 710 | * @param contextInfo information containing the principalId and | |
| 711 | * locale information about the caller of service operation | |
| 712 | * @return a list of Milestone identifiers matching | |
| 713 | * milestoneTypeKey or an empty list if none found | |
| 714 | * @throws InvalidParameterException contextInfo is not valid | |
| 715 | * @throws MissingParameterException milestoneTypeKey or | |
| 716 | * contextInfo is missing or null | |
| 717 | * @throws OperationFailedException unable to complete request | |
| 718 | * @throws PermissionDeniedException an authorization failure occurred | |
| 719 | */ | |
| 720 | public List<String> getMilestoneIdsByType(@WebParam(name = "milestoneTypeKey") String milestoneTypeKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 721 | ||
| 722 | /** | |
| 723 | * Retrieves a list of Milestones that fall within a specified | |
| 724 | * set of dates inclusive of the dates. | |
| 725 | * | |
| 726 | * @param startDate start of date range | |
| 727 | * @param endDate end of date range | |
| 728 | * @param contextInfo information containing the principalId and | |
| 729 | * locale information about the caller of service operation | |
| 730 | * @return a list of Milestones that fall within this set of dates | |
| 731 | * @throws InvalidParameterException contextInfo is not valid or | |
| 732 | * startDate is greater than endDate | |
| 733 | * @throws MissingParameterException startDate, endDate, or | |
| 734 | * contextInfo is missing or null | |
| 735 | * @throws OperationFailedException unable to complete request | |
| 736 | * @throws PermissionDeniedException an authorization failure occurred | |
| 737 | */ | |
| 738 | public List<MilestoneInfo> getMilestonesByDates(@WebParam(name = "startDate") Date startDate, @WebParam(name = "endDate") Date endDate, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 739 | ||
| 740 | /** | |
| 741 | * Retrieves a list of Milestones for a specified Academic Time | |
| 742 | * Period. | |
| 743 | * | |
| 744 | * @param atpKey an identifier for an Academic Time Period | |
| 745 | * @param contextInfo information containing the principalId and | |
| 746 | * locale information about the caller of service operation | |
| 747 | * @return a list of Milestones for the ATP or an empty list if | |
| 748 | * none found | |
| 749 | * @throws InvalidParameterException contextInfo is not valid | |
| 750 | * @throws MissingParameterException atpKey or contextInfo is | |
| 751 | * missing or null | |
| 752 | * @throws OperationFailedException unable to complete request | |
| 753 | * @throws PermissionDeniedException an authorization failure occurred | |
| 754 | */ | |
| 755 | public List<MilestoneInfo> getMilestonesForAtp(@WebParam(name = "atpKey") String atpKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 756 | ||
| 757 | /** | |
| 758 | * Retrieves a list of Milestones for a specified Academic Time | |
| 759 | * Period that fall within a specified set of dates inclusive of | |
| 760 | * the dates. | |
| 761 | * | |
| 762 | * @param atpKey an identifier for an ATP | |
| 763 | * @param startDate start of date range | |
| 764 | * @param endDate end of date range | |
| 765 | * @param contextInfo information containing the principalId and | |
| 766 | * locale information about the caller of service operation | |
| 767 | * @return a list of Milestones for the ATP in the specified date | |
| 768 | * range or an empty list if none found | |
| 769 | * @throws InvalidParameterException contextInfo is not valid or | |
| 770 | * startDate is greater than end date | |
| 771 | * @throws MissingParameterException atpKey, startDate, endDate, | |
| 772 | * or contextInfo is missing or null | |
| 773 | * @throws OperationFailedException unable to complete request | |
| 774 | * @throws PermissionDeniedException an authorization failure occurred | |
| 775 | */ | |
| 776 | public List<MilestoneInfo> getMilestonesByDatesForAtp(@WebParam(name = "atpKey") String atpKey, @WebParam(name = "startDate") Date startDate, @WebParam(name = "endDate") Date endDate, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 777 | ||
| 778 | /** | |
| 779 | * Retrieves a list of Milestones of a specified Milestone Type for | |
| 780 | * an Acdemic Time Period. | |
| 781 | * | |
| 782 | * @param atpKey an identifier for an ATP | |
| 783 | * @param milestoneTypeKey an identifier for a Milestone Type | |
| 784 | * @param contextInfo information containing the principalId and | |
| 785 | * locale information about the caller of service operation | |
| 786 | * @return a list of Milestones of the Milestone Type for the ATP | |
| 787 | * or an empty list if none found | |
| 788 | * @throws InvalidParameterException contextInfo is not valid | |
| 789 | * @throws MissingParameterException atpKey, milsetoneTypeKey, | |
| 790 | * or contextInfo is missing or null | |
| 791 | * @throws OperationFailedException unable to complete request | |
| 792 | * @throws PermissionDeniedException an authorization failure occurred | |
| 793 | */ | |
| 794 | public List<MilestoneInfo> getMilestonesByTypeForAtp(@WebParam(name = "atpKey") String atpKey, @WebParam(name = "milestoneTypeKey") String milestoneTypeKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 795 | ||
| 796 | // | |
| 797 | // Search methods for Milestone Id Entity Pattern. | |
| 798 | // | |
| 799 | ||
| 800 | /** | |
| 801 | * Searches for Milestones that meet the given search criteria. | |
| 802 | * | |
| 803 | * @param criteria the search criteria | |
| 804 | * @param contextInfo information containing the principalId and | |
| 805 | * locale information about the caller of service operation | |
| 806 | * @return a list of Milestone identifiers matching the criteria | |
| 807 | * @throws InvalidParameterException criteria or contextInfo | |
| 808 | * is not valid | |
| 809 | * @throws MissingParameterException criteria or contextInfo is | |
| 810 | * missing or null | |
| 811 | * @throws OperationFailedException unable to complete request | |
| 812 | * @throws PermissionDeniedException an authorization failure occurred | |
| 813 | */ | |
| 814 | public List<String> searchForMilestoneIds(@WebParam(name = "criteria") QueryByCriteria criteria, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 815 | ||
| 816 | /** | |
| 817 | * Searches for Milestones that meet the given search criteria. | |
| 818 | * | |
| 819 | * @param criteria the search criteria | |
| 820 | * @param contextInfo information containing the principalId and | |
| 821 | * locale information about the caller of service operation | |
| 822 | * @return a list of Milestones matching the criteria | |
| 823 | * @throws InvalidParameterException criteria or contextInfo | |
| 824 | * is not valid | |
| 825 | * @throws MissingParameterException criteria or contextInfo is | |
| 826 | * missing or null | |
| 827 | * @throws OperationFailedException unable to complete request | |
| 828 | * @throws PermissionDeniedException an authorization failure occurred | |
| 829 | */ | |
| 830 | public List<MilestoneInfo> searchForMilestones(@WebParam(name = "criteria") QueryByCriteria criteria, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 831 | ||
| 832 | // | |
| 833 | // CRUD methods for Milestone Id Entity Pattern. | |
| 834 | // | |
| 835 | ||
| 836 | /** | |
| 837 | * Validates a Milestone. Depending on the value of | |
| 838 | * validationType, this validation could be limited to tests on | |
| 839 | * just the current Milestone and its directly contained | |
| 840 | * sub-objects or expanded to perform all tests related to this | |
| 841 | * object. If an identifier is present for the Milestone (and/or | |
| 842 | * one of its contained sub-obejcts) and a record is found for | |
| 843 | * that identifier, the validation checks if the Milestone can be | |
| 844 | * shifted to the new values. If an identifier is not present or a | |
| 845 | * record does not exist, the validation checks if the object with | |
| 846 | * the given data can be created. | |
| 847 | * | |
| 848 | * @param validationTypeKey the identifier for the validation Type | |
| 849 | * @param milestoneTypeKey the identifier for the Milestone Type | |
| 850 | * to be validated | |
| 851 | * @param milestoneInfo the milestone to be validated | |
| 852 | * @param contextInfo information containing the principalId and | |
| 853 | * locale information about the caller of service operation | |
| 854 | * @return a list of validation results or an empty list if | |
| 855 | * validation succeeded | |
| 856 | * @throws DoesNotExistException validationTypeKey or | |
| 857 | * milestoneTypeKey is not found | |
| 858 | * @throws InvalidParameterException milestoneInfo or contextInfo | |
| 859 | * is not valid | |
| 860 | * @throws MissingParameterException validationTypeKey, | |
| 861 | * milestoneTypeKey, milestoneInfo, or contextInfo is | |
| 862 | * missing or null | |
| 863 | * @throws OperationFailedException unable to complete request | |
| 864 | * @throws PermissionDeniedException an authorization failure occurred | |
| 865 | */ | |
| 866 | public List<ValidationResultInfo> validateMilestone(@WebParam(name = "validationTypeKey") String validationTypeKey, @WebParam(name = "milestoneInfo") MilestoneInfo milestoneInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 867 | ||
| 868 | /** | |
| 869 | * Create a new Milestone. The Milestone Id, Type, and Meta | |
| 870 | * information may not be set in the supplied data object. | |
| 871 | * | |
| 872 | * @param milestoneTypeKey the identifier for the Type of | |
| 873 | * Milestone to be created | |
| 874 | * @param milestoneInfo the data with which to create the Milestone | |
| 875 | * @param contextInfo information containing the principalId and | |
| 876 | * locale information about the caller of service operation | |
| 877 | * @return the new Milestone | |
| 878 | * @throws DataValidationErrorException supplied data is invalid | |
| 879 | * @throws InvalidParameterException milestoneInfo or contextInfo | |
| 880 | * is not valid | |
| 881 | * @throws MissingParameterException milestoneTypeKey, | |
| 882 | * milestoneInfo, or contextInfo is missing or null | |
| 883 | * @throws OperationFailedException unable to complete request | |
| 884 | * @throws PermissionDeniedException an authorization failure occurred | |
| 885 | * @throws ReadOnlyException an attempt at supplying information | |
| 886 | * designated as read only | |
| 887 | */ | |
| 888 | public MilestoneInfo createMilestone(@WebParam(name = "milestoneInfo") MilestoneInfo milestoneInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException; | |
| 889 | ||
| 890 | /** | |
| 891 | * Updates an existing Milestone. The Milestone Id, Type, and Meta | |
| 892 | * information may not be changed. | |
| 893 | * | |
| 894 | * @param milestoneId the identifier for the Milestone to be updated | |
| 895 | * @param milestoneInfo the new data for the Milestone | |
| 896 | * @param contextInfo information containing the principalId and | |
| 897 | * locale information about the caller of service operation | |
| 898 | * @return the updated Milestone | |
| 899 | * @throws DataValidationErrorException supplied data is invalid | |
| 900 | * @throws DoesNotExistException milestoneId is not found | |
| 901 | * @throws InvalidParameterException milestoneInfo or contextInfo | |
| 902 | * is not valid | |
| 903 | * @throws MissingParameterException milestoneId, milestoneInfo, | |
| 904 | * or contextInfo is missing or null | |
| 905 | * @throws OperationFailedException unable to complete request | |
| 906 | * @throws PermissionDeniedException an authorization failure occurred | |
| 907 | * @throws ReadOnlyException an attempt at supplying information | |
| 908 | * designated as read only | |
| 909 | * @throws VersionMismatchException an optimistic locking failure | |
| 910 | * or the action was attempted on an out of date version | |
| 911 | */ | |
| 912 | public MilestoneInfo updateMilestone(@WebParam(name = "milestoneId") String milestoneId, @WebParam(name = "milestoneInfo") MilestoneInfo milestoneInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException, VersionMismatchException; | |
| 913 | ||
| 914 | /** | |
| 915 | * Deletes an existing Milestone. | |
| 916 | * | |
| 917 | * @param milestoneId the identifier for the Milestone to be deleted | |
| 918 | * @param contextInfo information containing the principalId and | |
| 919 | * locale information about the caller of service operation | |
| 920 | * @return status of the delete operation. This must always be true. | |
| 921 | * @throws DoesNotExistException milestoneId is not found | |
| 922 | * @throws InvalidParameterException contextInfo is not valid | |
| 923 | * @throws MissingParameterException milestoneId or contextInfo is | |
| 924 | * missing or null | |
| 925 | * @throws OperationFailedException unable to complete request | |
| 926 | * @throws PermissionDeniedException an authorization failure occurred | |
| 927 | */ | |
| 928 | public StatusInfo deleteMilestone(@WebParam(name = "milestoneId") String milestoneId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 929 | ||
| 930 | /** | |
| 931 | * Adds a Milestone to an ATP. | |
| 932 | * | |
| 933 | * @param milestoneId an identifier for a Milestone | |
| 934 | * @param atpKey an identifier for an ATP | |
| 935 | * @param contextInfo information containing the principalId and | |
| 936 | * locale information about the caller of service operation | |
| 937 | * @return status of the mapping operation. This must always be true. | |
| 938 | * @throws AlreadyExistsException milestoneId is already related to | |
| 939 | * atpKey | |
| 940 | * @throws DoesNotExistException milestoneId or atpKey is not found | |
| 941 | * @throws InvalidParameterException contextInfo is not valud | |
| 942 | * @throws MissingParameterException milestoneId, atpKey, | |
| 943 | * or contextInfo is missing or null | |
| 944 | * @throws OperationFailedException unable to complete request | |
| 945 | * @throws PermissionDeniedException an authorization failure occurred | |
| 946 | */ | |
| 947 | public StatusInfo addMilestoneToAtp(@WebParam(name = "milestoneId") String milestoneId, @WebParam(name = "atpKey") String atpKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws AlreadyExistsException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 948 | ||
| 949 | /** | |
| 950 | * Removes a Milestone from an ATP. | |
| 951 | * | |
| 952 | * @param milestoneId an identifier for a Milestone | |
| 953 | * @param atpKey an identifier for an ATP | |
| 954 | * @param contextInfo information containing the principalId and | |
| 955 | * locale information about the caller of service operation | |
| 956 | * @return status of the unmapping operation. This must always be true. | |
| 957 | * @throws DoesNotExistException milestoneId or atpKey is not found | |
| 958 | * or milestoneId is not related to atpKey | |
| 959 | * @throws InvalidParameterException contextInfo is not valud | |
| 960 | * @throws MissingParameterException milestoneId, atpKey, | |
| 961 | * or contextInfo is missing or null | |
| 962 | * @throws OperationFailedException unable to complete request | |
| 963 | * @throws PermissionDeniedException an authorization failure occurred | |
| 964 | */ | |
| 965 | public StatusInfo removeMilestoneFromAtp(@WebParam(name = "milestoneId") String milestoneId, @WebParam(name = "atpKey") String atpKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException; | |
| 966 | } |