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