Interface CourseSearch
- All Superinterfaces:
Extensible, OsidCondition, OsidSearch, Suppliable
The search interface for governing course searches.
-
Method Summary
Modifier and TypeMethodDescriptiongetCourseSearchRecord(Type courseSearchRecordType) Gets the course search record corresponding to the given course search recordType.voidorderCourseResults(CourseSearchOrder courseSearchOrder) Specify an ordering to the search results.voidsearchAmongCourses(IdList courseIds) Execute this search among the given list of courses.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface OsidSearch
limitResultSetModifier and TypeMethodDescriptionvoidlimitResultSet(long start, long end) By default, searches return all matching results.
-
Method Details
-
searchAmongCourses
Execute this search among the given list of courses.- Parameters:
courseIds- list of courses- Throws:
NullArgumentException-courseIdsisnull- Compliance:
mandatory- This method must be implemented.
-
orderCourseResults
Specify an ordering to the search results.- Parameters:
courseSearchOrder- course search order- Throws:
NullArgumentException-courseSearchOrderisnullUnsupportedException-courseSearchOrderis not of this service- Compliance:
mandatory- This method must be implemented.
-
getCourseSearchRecord
CourseSearchRecord getCourseSearchRecord(Type courseSearchRecordType) throws OperationFailedException Gets the course search record corresponding to the given course search recordType. This method is used to retrieve an object implementing the requested record.- Parameters:
courseSearchRecordType- a course search record type- Returns:
- the course search record
- Throws:
NullArgumentException-courseSearchRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(courseSearchRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-