Interface ModuleSearchOrder

All Superinterfaces:
Extensible, OsidBrowsableSearchOrder, OsidExtensibleSearchOrder, OsidIdentifiableSearchOrder, OsidObjectSearchOrder, OsidSearchOrder, OsidSubjugateableSearchOrder, Suppliable

public interface ModuleSearchOrder extends OsidObjectSearchOrder, OsidSubjugateableSearchOrder

An interface for specifying the ordering of search results.

  • Method Details

    • orderBySyllabus

      void orderBySyllabus(SearchOrderStyle style)
      Specifies a preference for ordering the result set by the syllabus.
      Parameters:
      style - search order style
      Throws:
      NullArgumentException - style is null
      Compliance:
      mandatory - This method must be implemented.
    • supportsSyllabusSearchOrder

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

      SyllabusSearchOrder getSyllabusSearchOrder()
      Gets the syllabus order.
      Returns:
      the syllabus search order
      Throws:
      UnimplementedException - supportsSyllabusSearchOrder() is false
      Compliance:
      optional - This method must be implemented if {@code supportsCourseSearchOrder()} is {@code true} .
    • getModuleSearchOrderRecord

      ModuleSearchOrderRecord getModuleSearchOrderRecord(Type moduleRecordType) throws OperationFailedException
      Gets the module search order record corresponding to the given module record Type . Multiple retrievals return the same underlying object.
      Parameters:
      moduleRecordType - a module record type
      Returns:
      the module search order record
      Throws:
      NullArgumentException - moduleRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(moduleRecordType) is false
      Compliance:
      mandatory - This method must be implemented.