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