Interface ModuleQuery

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

public interface ModuleQuery extends OsidObjectQuery, OsidSubjugateableQuery

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

  • Method Details

    • matchSyllabusId

      void matchSyllabusId(Id syllabusId, boolean match)
      Sets the syllabus Id for this query.
      Parameters:
      syllabusId - a syllabus Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - syllabusId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearSyllabusIdTerms

      void clearSyllabusIdTerms()
      Clears the syllabus Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsSyllabusQuery

      boolean supportsSyllabusQuery()
      Tests if a syllabus query is available.
      Returns:
      true if a syllabus query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getSyllabusQuery

      SyllabusQuery getSyllabusQuery()
      Gets the query for a docet.
      Returns:
      the syllabus query
      Throws:
      UnimplementedException - supportsSyllabusQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsSyllabusQuery()} is {@code true} .
    • clearSyllabusTerms

      void clearSyllabusTerms()
      Clears the syllabus terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchDocetId

      void matchDocetId(Id docetId, boolean match)
      Sets a docet Id .
      Parameters:
      docetId - a docet Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - docetId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearDocetIdTerms

      void clearDocetIdTerms()
      Clears the docet Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsDocetQuery

      boolean supportsDocetQuery()
      Tests if an DocetQuery is available.
      Returns:
      true if a docet query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getDocetQuery

      DocetQuery getDocetQuery()
      Gets the query for a docet query. Multiple retrievals produce a nested OR term.
      Returns:
      the docet query
      Throws:
      UnimplementedException - supportsDocetQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsDocetQuery()} is {@code true} .
    • matchAnyDocet

      void matchAnyDocet(boolean match)
      Matches modules with any docet.
      Parameters:
      match - true to match modules with any docet, false to match modules with no docets
      Compliance:
      mandatory - This method must be implemented.
    • clearDocetTerms

      void clearDocetTerms()
      Clears the docet terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchCourseCatalogId

      void matchCourseCatalogId(Id courseCatalogId, boolean match)
      Sets the docet Id for this query to match modules assigned to course catalogs.
      Parameters:
      courseCatalogId - a 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 an 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 query. 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.
    • getModuleQueryRecord

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