Interface AwardEntryQuery

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

public interface AwardEntryQuery extends OsidRelationshipQuery

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

  • Method Details

    • matchStudentId

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

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

      ResourceQuery getStudentQuery()
      Gets the query for a student option. Multiple retrievals produce a nested OR term.
      Returns:
      a student 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 option terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchAwardId

      void matchAwardId(Id awardId, boolean match)
      Sets the award Id for this query to match entries that have an entry for the given course.
      Parameters:
      awardId - an award Id
      match - true if a positive match, false for a negative match
      Throws:
      NullArgumentException - awardId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearAwardIdTerms

      void clearAwardIdTerms()
      Clears the award Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsAwardQuery

      boolean supportsAwardQuery()
      Tests if an AwardQuery is available.
      Returns:
      true if an award query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getAwardQuery

      AwardQuery getAwardQuery()
      Gets the query for an award entry. Multiple retrievals produce a nested OR term.
      Returns:
      an award query
      Throws:
      UnimplementedException - supportsAwardQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsAwardQuery()} is {@code true} .
    • clearAwardTerms

      void clearAwardTerms()
      Clears the award terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchDateAwarded

      void matchDateAwarded(DateTime from, DateTime to, boolean match)
      Matches award dates between the given dates inclusive.
      Parameters:
      from - starting date
      to - ending date
      match - true if a positive match, false for a negative match
      Throws:
      InvalidArgumentException - from is greater than to
      NullArgumentException - from or to is null
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyDateAwarded

      void matchAnyDateAwarded(boolean match)
      Matches entries that have any award date.
      Parameters:
      match - true to match entries with any award date, false to match entries with no award date
      Compliance:
      mandatory - This method must be implemented.
    • clearDateAwardedTerms

      void clearDateAwardedTerms()
      Clears the award date terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchProgramId

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

      void clearProgramIdTerms()
      Clears the program Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsProgramQuery

      boolean supportsProgramQuery()
      Tests if a ProgramQuery is available.
      Returns:
      true if a program query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getProgramQuery

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

      void matchAnyProgram(boolean match)
      Matches entries that have any program.
      Parameters:
      match - true to match entries with any program false to match entries with no program
      Compliance:
      mandatory - This method must be implemented.
    • clearProgramTerms

      void clearProgramTerms()
      Clears the program terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchCourseId

      void matchCourseId(Id courseId, boolean match)
      Sets the course Id for this query to match entries that have an entry for the given course.
      Parameters:
      courseId - a course Id
      match - true if a positive match, false for a negative match
      Throws:
      NullArgumentException - courseId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearCourseIdTerms

      void clearCourseIdTerms()
      Clears the course Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsCourseQuery

      boolean supportsCourseQuery()
      Tests if a CourseQuery is available.
      Returns:
      true if a course query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getCourseQuery

      CourseQuery getCourseQuery()
      Gets the query for a course entry. Multiple retrievals produce a nested OR term.
      Returns:
      a course query
      Throws:
      UnimplementedException - supportsCourseQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsCourseQuery()} is {@code true} .
    • matchAnyCourse

      void matchAnyCourse(boolean match)
      Matches entries that have any course.
      Parameters:
      match - true to match entries with any course, false to match entries with no course
      Compliance:
      mandatory - This method must be implemented.
    • clearCourseTerms

      void clearCourseTerms()
      Clears the course terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchAssessmentId

      void matchAssessmentId(Id assessmentId, boolean match)
      Sets the assessment Id for this query to match entries that have an entry for the given assessment,
      Parameters:
      assessmentId - an assessment Id
      match - true if a positive match, false for a negative match
      Throws:
      NullArgumentException - assessmentId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearAssessmentIdTerms

      void clearAssessmentIdTerms()
      Clears the assessment Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsAssessmentQuery

      boolean supportsAssessmentQuery()
      Tests if an AssessmentQuery is available.
      Returns:
      true if an assessment query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getAssessmentQuery

      AssessmentQuery getAssessmentQuery()
      Gets the query for an assessment entry. Multiple retrievals produce a nested OR term.
      Returns:
      an assessment query
      Throws:
      UnimplementedException - supportsAssessmentQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsAssessmentQuery()} is {@code true} .
    • matchAnyAssessment

      void matchAnyAssessment(boolean match)
      Matches entries that have any assessment.
      Parameters:
      match - true to match entries with any assessment, false to match entries with no assessment
      Compliance:
      mandatory - This method must be implemented.
    • clearAssessmentTerms

      void clearAssessmentTerms()
      Clears the assessment 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 entries 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.
    • getAwardEntryQueryRecord

      AwardEntryQueryRecord getAwardEntryQueryRecord(Type awardEntryRecordType) throws OperationFailedException
      Gets the award entry query record corresponding to the given AwardEntry record Type . Multiple record retrievals produce a nested OR term.
      Parameters:
      awardEntryRecordType - an award entry record type
      Returns:
      the award entry query record
      Throws:
      NullArgumentException - awardEntryRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(awardEntryRecordType) is false
      Compliance:
      mandatory - This method must be implemented.