Interface EnrollmentQuery

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

public interface EnrollmentQuery extends OsidRelationshipQuery

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

  • Method Details

    • matchProgramOfferingId

      void matchProgramOfferingId(Id programOfferingId, boolean match)
      Sets the program offering Id for this query.
      Parameters:
      programOfferingId - a program offering Id
      match - true if a positive match, false for a negative match
      Throws:
      NullArgumentException - programOfferingId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearProgramOfferingIdTerms

      void clearProgramOfferingIdTerms()
      Clears the program offering Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsProgramOfferingQuery

      boolean supportsProgramOfferingQuery()
      Tests if a ProgramOffering is available.
      Returns:
      true if a program offering query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getProgramOfferingQuery

      ProgramOfferingQuery getProgramOfferingQuery()
      Gets the query for a program offering. Multiple retrievals produce a nested OR term.
      Returns:
      the program offering query
      Throws:
      UnimplementedException - supportsProgramOfferingQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsProgramOfferingQuery()} is {@code true} .
    • clearProgramOfferingTerms

      void clearProgramOfferingTerms()
      Clears the program offering 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.
    • matchParentEnrollmentId

      void matchParentEnrollmentId(Id enrollmentId, boolean match)
      Sets the parent enrollment Id for this query.
      Parameters:
      enrollmentId - a parent enrollment Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - enrollmentId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearParentEnrollmentIdTerms

      void clearParentEnrollmentIdTerms()
      Clears the parent enrollment Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsParentEnrollmentQuery

      boolean supportsParentEnrollmentQuery()
      Tests if a EnrollmentQuery is available.
      Returns:
      true if a parent enrollment query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getParentEnrollmentQuery

      EnrollmentQuery getParentEnrollmentQuery()
      Gets the query for a parent enrollment. Multiple retrievals produce a nested OR term.
      Returns:
      the parent enrollment query
      Throws:
      UnimplementedException - supportsParentEnrollmentQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsParentEnrollmentQuery()} is {@code true} .
    • matchAnyParentEnrollment

      void matchAnyParentEnrollment(boolean match)
      Matches enrollments with any parent enrollment.
      Parameters:
      match - true to match enrollments with any parent enrollment, false to match enrollments with no parent enrollment
      Compliance:
      mandatory - This method must be implemented.
    • clearParentEnrollmentTerms

      void clearParentEnrollmentTerms()
      Clears the parent enrollment terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchCourseCatalogId

      void matchCourseCatalogId(Id courseCatalogId, boolean match)
      Sets the course catalog Id for this query.
      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.
    • getEnrollmentQueryRecord

      EnrollmentQueryRecord getEnrollmentQueryRecord(Type enrollmentRecordType) throws OperationFailedException
      Gets the enrollment query record corresponding to the given Course record Type .Multiple record retrievals produce a nested OR term.
      Parameters:
      enrollmentRecordType - an enrollment record type
      Returns:
      the enrollment query record
      Throws:
      NullArgumentException - enrollmentRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(enrollmentRecordType) is false
      Compliance:
      mandatory - This method must be implemented.