Interface RegistrationRequestItemQuery

All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, OsidSubjugateableQuery, Suppliable

public interface RegistrationRequestItemQuery extends OsidObjectQuery, OsidSubjugateableQuery

This is the query for searching registration request items. Each method match specifies an AND term while multiple invocations of the same method produce a nested OR .

  • Method Details

    • matchRegistrationRequestId

      void matchRegistrationRequestId(Id registrationRequestId, boolean match)
      Matches registration requests.
      Parameters:
      registrationRequestId - the registration request Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - registrationRequestId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearRegistrationRequestIdTerms

      void clearRegistrationRequestIdTerms()
      Clears the registration request Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsRegistrationRequestQuery

      boolean supportsRegistrationRequestQuery()
      Tests if a RegistrationRequestQuery is available.
      Returns:
      true if a registration request query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getRegistrationRequestQuery

      RegistrationRequestQuery getRegistrationRequestQuery()
      Gets the query for a registration request. Multiple retrievals produce a nested OR term.
      Returns:
      the registration request query
      Throws:
      UnimplementedException - supportsRegistrationRequestQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsRegistrationRequestQuery()} is {@code true} .
    • clearRegistrationRequestTerms

      void clearRegistrationRequestTerms()
      Clears the registration request query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchStudentId

      void matchStudentId(Id resourceId, boolean match)
      Matches students.
      Parameters:
      resourceId - the resource Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - resourceId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearStudentIdTerms

      void clearStudentIdTerms()
      Clears the student resource Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsStudentQuery

      boolean supportsStudentQuery()
      Tests if a ResourceQuery is available.
      Returns:
      true if a student resource query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getStudentQuery

      ResourceQuery getStudentQuery()
      Gets the query for a resource. Multiple retrievals produce a nested OR term.
      Returns:
      the resource query
      Throws:
      UnimplementedException - supportsStudentQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsStudentQuery()} is {@code true} .
    • matchAnyStudent

      void matchAnyStudent(boolean match)
      Matches request items with any registration target.
      Parameters:
      match - true to match request items with any student, false to match request items with no student
      Compliance:
      mandatory - This method must be implemented.
    • clearStudentTerms

      void clearStudentTerms()
      Clears the student query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchRegisterOperation

      void matchRegisterOperation(boolean match)
      Matches request items for registration.
      Parameters:
      match - true for a positive match, false for a negative match
      Compliance:
      mandatory - This method must be implemented.
    • matchUpdateOperation

      void matchUpdateOperation(boolean match)
      Matches request items for updates.
      Parameters:
      match - true for a positive match, false for a negative match
      Compliance:
      mandatory - This method must be implemented.
    • matchDropOperation

      void matchDropOperation(boolean match)
      Matches request items for drops.
      Parameters:
      match - true for a positive match, false for a negative match
      Compliance:
      mandatory - This method must be implemented.
    • matchRegistrationTargetId

      void matchRegistrationTargetId(Id registrationTargetId, boolean match)
      Matches registration targets.
      Parameters:
      registrationTargetId - the registration target Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - registrationTargetId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearRegistrationTargetIdTerms

      void clearRegistrationTargetIdTerms()
      Clears the registration target Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsRegistrationTargetQuery

      boolean supportsRegistrationTargetQuery()
      Tests if a RegistrationTargetQuery is available.
      Returns:
      true if a registration target query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getRegistrationTargetQuery

      RegistrationTargetQuery getRegistrationTargetQuery()
      Gets the query for a registration target. Multiple retrievals produce a nested OR term.
      Returns:
      the registration target query
      Throws:
      UnimplementedException - supportsRegistrationTargetQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsRegistrationTargetQuery()} is {@code true} .
    • matchAnyRegistrationTarget

      void matchAnyRegistrationTarget(boolean match)
      Matches request items with any registration target.
      Parameters:
      match - true to match request items with any registration target, false to match request items with no registration targets
      Compliance:
      mandatory - This method must be implemented.
    • clearRegistrationTargetTerms

      void clearRegistrationTargetTerms()
      Clears the registration target query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchExistingRegistrationId

      void matchExistingRegistrationId(Id existingRegistrationId, boolean match)
      Matches existing registrations.
      Parameters:
      existingRegistrationId - the existing registration Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - existingRegistrationId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearExistingRegistrationIdTerms

      void clearExistingRegistrationIdTerms()
      Clears the existing registration Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsExistingTargetQuery

      boolean supportsExistingTargetQuery()
      Tests if a RegistrationQuery is available.
      Returns:
      true if an existing registration query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getExistingRegistrationQuery

      RegistrationQuery getExistingRegistrationQuery()
      Gets the query for an existing registration . Multiple retrievals produce a nested OR term.
      Returns:
      the registration query
      Throws:
      UnimplementedException - supportsExistingRegistrationQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsExistingRegistrationQuery()} is {@code true} .
    • matchAnyExistingRegistration

      void matchAnyExistingRegistration(boolean match)
      Matches request items with any existing registration.
      Parameters:
      match - true to match request items with any existing registration, false to match request items with no existing registrations
      Compliance:
      mandatory - This method must be implemented.
    • clearExistingRegistrationTerms

      void clearExistingRegistrationTerms()
      Clears the existing registration query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchCreditOption

      void matchCreditOption(BigDecimal from, BigDecimal to, boolean match)
      Matches request items with a credit option in the given range inclusive.
      Parameters:
      from - start of range
      to - end of range
      match - true for a positive match, false for a negative match
      Throws:
      InvalidArgumentException - from is greater than to
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyCreditOption

      void matchAnyCreditOption(boolean match)
      Matches request items with any credit option.
      Parameters:
      match - true to match request items with any existing credit option, false to match request items with no credit options
      Compliance:
      mandatory - This method must be implemented.
    • clearCreditOptionTerms

      void clearCreditOptionTerms()
      Clears the credit option terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchGradingOptionId

      void matchGradingOptionId(Id gradeSystemId, boolean match)
      Matches grading options.
      Parameters:
      gradeSystemId - thegrade systemn Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - gradeSystemId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearGradingOptionIdTerms

      void clearGradingOptionIdTerms()
      Clears the grade system Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsGradingOptionQuery

      boolean supportsGradingOptionQuery()
      Tests if a GradeSystemQuery is available.
      Returns:
      true if a grade system query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getGradingOptionQuery

      GradeSystemQuery getGradingOptionQuery()
      Gets the query for a grade system. Multiple retrievals produce a nested OR term.
      Returns:
      the grade system query
      Throws:
      UnimplementedException - supportsGradingOptionQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsGradingOptionQuery()} is {@code true} .
    • matchAnyGradingOption

      void matchAnyGradingOption(boolean match)
      Matches request items with any grading option.
      Parameters:
      match - true to match request items with any grading option, false to match request items with no grading option
      Compliance:
      mandatory - This method must be implemented.
    • clearGradingOptionTerms

      void clearGradingOptionTerms()
      Clears the grading option query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchCourseCatalogId

      void matchCourseCatalogId(Id courseCatalogId, boolean match)
      Sets the course catalog Id for this query to match registration request items assigned to course catalogs.
      Parameters:
      courseCatalogId - the course catalog Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - courseCatalogId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearCourseCatalogIdTerms

      void clearCourseCatalogIdTerms()
      Clears the course catalog Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsCourseCatalogQuery

      boolean supportsCourseCatalogQuery()
      Tests if a CourseCatalogQuery is available.
      Returns:
      true if a course catalog query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getCourseCatalogQuery

      CourseCatalogQuery getCourseCatalogQuery()
      Gets the query for a course catalog. Multiple retrievals produce a nested OR term.
      Returns:
      the course catalog query
      Throws:
      UnimplementedException - supportsCourseCatalogQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsCourseCatalogQuery()} is {@code true} .
    • clearCourseCatalogTerms

      void clearCourseCatalogTerms()
      Clears the course catalog query terms.
      Compliance:
      mandatory - This method must be implemented.
    • getRegistrationRequestItemQueryRecord

      RegistrationRequestItemQueryRecord getRegistrationRequestItemQueryRecord(Type registrationRequestItemRecordType) throws OperationFailedException
      Gets the registration request item query record corresponding to the given RegistrationRequestItem record Type . Multiple record retrievals produce a nested OR term.
      Parameters:
      registrationRequestItemRecordType - a registration request item record type
      Returns:
      the registration request item query record
      Throws:
      NullArgumentException - registrationRequestItemRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(registrationRequestItemRecordType) is false
      Compliance:
      mandatory - This method must be implemented.