Interface SubjectSearch
- All Superinterfaces:
Extensible, OsidCondition, OsidSearch, Suppliable
SubjectSearch defines the interface for specifying subject
search options.
-
Method Summary
Modifier and TypeMethodDescriptiongetSubjectSearchRecord(Type subjectSearchRecordType) Gets the subject search record corresponding to the given subject search recordType.voidorderSubjectResults(SubjectSearchOrder subjectSearchOrder) Specify an ordering to the search results.voidsearchAmongSubjects(IdList subjectIds) Execute this search among the given list of subjects.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
-
searchAmongSubjects
Execute this search among the given list of subjects.- Parameters:
subjectIds- list of subjects- Throws:
NullArgumentException-subjectIdsisnull- Compliance:
mandatory- This method must be implemented.
-
orderSubjectResults
Specify an ordering to the search results.- Parameters:
subjectSearchOrder- subject search order- Throws:
NullArgumentException-subjectSearchOrderisnullUnsupportedException-subjectSearchOrderis not of this service- Compliance:
mandatory- This method must be implemented.
-
getSubjectSearchRecord
SubjectSearchRecord getSubjectSearchRecord(Type subjectSearchRecordType) throws OperationFailedException Gets the subject search record corresponding to the given subject search recordType. This method is used to retrieve an object implementing the requested record.- Parameters:
subjectSearchRecordType- a subject search record type- Returns:
- the subject search record
- Throws:
NullArgumentException-subjectSearchRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(subjectSearchRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-