Interface CommentSearch
- All Superinterfaces:
Extensible, OsidCondition, OsidSearch, Suppliable
The search interface for governing comment searches.
-
Method Summary
Modifier and TypeMethodDescriptiongetCommentSearchRecord(Type commentSearchRecordType) Gets the comment search record corresponding to the given comment search recordType.voidorderCommentResults(CommentSearchOrder commentSearchOrder) Specify an ordering to the search results.voidsearchAmongComments(IdList commentIds) Execute this search among the given list of comments.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
-
searchAmongComments
Execute this search among the given list of comments.- Parameters:
commentIds- list of comments- Throws:
NullArgumentException-commentIdsisnull- Compliance:
mandatory- This method must be implemented.
-
orderCommentResults
Specify an ordering to the search results.- Parameters:
commentSearchOrder- comment search order- Throws:
NullArgumentException-commentSearchOrderisnullUnsupportedException-commentSearchOrderis not of this service- Compliance:
mandatory- This method must be implemented.
-
getCommentSearchRecord
CommentSearchRecord getCommentSearchRecord(Type commentSearchRecordType) throws OperationFailedException Gets the comment search record corresponding to the given comment search recordType. This method is used to retrieve an object implementing the requested record.- Parameters:
commentSearchRecordType- a comment search record type- Returns:
- the comment search record
- Throws:
NullArgumentException-commentSearchRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(commentSearchRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-