Interface RegistrationQuery

All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, OsidRelationshipQuery, OsidTemporalQuery, Suppliable

public interface RegistrationQuery extends OsidRelationshipQuery

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

  • Method Details

    • matchCourseRegistrationId

      void matchCourseRegistrationId(Id courseRegistrationId, boolean match)
      Sets the course registration Id for this query.
      Parameters:
      courseRegistrationId - a course registration Id
      match - true if a positive match, false for a negative match
      Throws:
      NullArgumentException - courseRegistrationId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearCourseRegistrationIdTerms

      void clearCourseRegistrationIdTerms()
      Clears the course registration Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsCourseRegistrationQuery

      boolean supportsCourseRegistrationQuery()
      Tests if a CourseRegistrationQuery is available.
      Returns:
      true if a course registration query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getCourseRegistrationQuery

      CourseRegistrationQuery getCourseRegistrationQuery()
      Gets the query for a course registration. Multiple retrievals produce a nested OR term.
      Returns:
      the course registration query
      Throws:
      UnimplementedException - supportsCourseRegistrationQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsCourseRegistrationQuery()} is {@code true} .
    • clearCourseRegistrationTerms

      void clearCourseRegistrationTerms()
      Clears the course registration terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchRegistrationTargetId

      void matchRegistrationTargetId(Id registrationTargetId, boolean match)
      Sets the registration target Id for this query.
      Parameters:
      registrationTargetId - a registration target Id
      match - true if 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 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} .
    • clearRegistrationTargetTerms

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

      void matchStudentId(Id resourceId, boolean match)
      Sets the student resource Id for this query.
      Parameters:
      resourceId - a resource Id
      match - true if 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 terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsStudentQuery

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

      ResourceQuery getStudentQuery()
      Gets the query for a student. 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} .
    • clearStudentTerms

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

      void matchCredits(BigDecimal min, BigDecimal max, boolean match)
      Matches registrations with credits between the given numbers inclusive.
      Parameters:
      min - low number
      max - high number
      match - true for a positive match, false for a negative match
      Throws:
      InvalidArgumentException - max is less than min
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyCredits

      void matchAnyCredits(boolean match)
      Matches a registration that has any credits assigned.
      Parameters:
      match - true to match registrations with any credits, false to match registrations with no credits
      Compliance:
      mandatory - This method must be implemented.
    • clearCreditsTerms

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

      void matchGradingOptionId(Id gradeSystemId, boolean match)
      Sets the grade system Id for this query.
      Parameters:
      gradeSystemId - a grade system Id
      match - true if 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 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 grading option. Multiple retrievals produce a nested OR term.
      Returns:
      a 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 registrations that have any grading option.
      Parameters:
      match - true to match registrations with any grading option, false to match registrations with no grading options
      Compliance:
      mandatory - This method must be implemented.
    • clearGradingOptionTerms

      void clearGradingOptionTerms()
      Clears the grading option 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 registrations 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 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 terms.
      Compliance:
      mandatory - This method must be implemented.
    • getRegistrationQueryRecord

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