Interface ResourceSearch
- All Superinterfaces:
Extensible, OsidCondition, OsidSearch, Suppliable
The search interface for governing resource searches.
-
Method Summary
Modifier and TypeMethodDescriptiongetResourceSearchRecord(Type resourceSearchRecordType) Gets the resource search record corresponding to the given resource search recordType.voidorderResourceResults(ResourceSearchOrder resourceSearchOrder) Specify an ordering to the search results.voidsearchAmongResources(IdList resourceIds) Execute this search among the given list of resources.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
-
searchAmongResources
Execute this search among the given list of resources.- Parameters:
resourceIds- list of resourceIds- Throws:
NullArgumentException-resourceIdsisnull- Compliance:
mandatory- This method must be implemented.
-
orderResourceResults
Specify an ordering to the search results.- Parameters:
resourceSearchOrder- resource search order- Throws:
NullArgumentException-orderisnullUnsupportedException-orderis not of this service- Compliance:
mandatory- This method must be implemented.
-
getResourceSearchRecord
ResourceSearchRecord getResourceSearchRecord(Type resourceSearchRecordType) throws OperationFailedException Gets the resource search record corresponding to the given resource search recordType. This method is used to retrieve an object implementing the requested record.- Parameters:
resourceSearchRecordType- a resource search record type- Returns:
- the resource search record
- Throws:
NullArgumentException-resourceSearchRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordTypeType(resourceSearchRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-