Interface ActivityRegistrationQuery

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

public interface ActivityRegistrationQuery extends OsidRelationshipQuery, OsidSubjugateableQuery

This is the query for searching activity 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.
    • matchActivityId

      void matchActivityId(Id activityId, boolean match)
      Sets the activity Id for this query.
      Parameters:
      activityId - an activity Id
      match - true if a positive match, false for a negative match
      Throws:
      NullArgumentException - activityId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearActivityIdTerms

      void clearActivityIdTerms()
      Clears the activity Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsActivityQuery

      boolean supportsActivityQuery()
      Tests if an ActivityQuery is available.
      Returns:
      true if an activity query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getActivityQuery

      ActivityQuery getActivityQuery()
      Gets the query for an activity. Multiple retrievals produce a nested OR term.
      Returns:
      the activity query
      Throws:
      UnimplementedException - supportsActivityQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsActivityQuery()} is {@code true} .
    • clearActivityTerms

      void clearActivityTerms()
      Clears the activity 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.
    • 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.
    • getActivityRegistrationQueryRecord

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