Interface RepositorySearch
- All Superinterfaces:
Extensible, OsidCondition, OsidSearch, Suppliable
The interface for governing repository searches.
-
Method Summary
Modifier and TypeMethodDescriptiongetRepositorySearchRecord(Type repositorySearchRecordType) Gets the repository search record corresponding to the given repository search recordType.This method is used to retrieve an object implementing the requested record.voidorderRepositoryResults(RepositorySearchOrder repositorySearchOrder) Specify an ordering to the search results.voidsearchAmongRepositories(IdList repositoryIds) Execute this search among the given list of repositories.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
-
searchAmongRepositories
Execute this search among the given list of repositories.- Parameters:
repositoryIds- list of repositories- Throws:
NullArgumentException-repositoryIdsisnull- Compliance:
mandatory- This method must be implemented.
-
orderRepositoryResults
Specify an ordering to the search results.- Parameters:
repositorySearchOrder- repository search order- Throws:
NullArgumentException-repositorySearchOrderisnullUnsupportedException-repositorySearchOrderis not of this service- Compliance:
mandatory- This method must be implemented.
-
getRepositorySearchRecord
RepositorySearchRecord getRepositorySearchRecord(Type repositorySearchRecordType) throws OperationFailedException Gets the repository search record corresponding to the given repository search recordType.This method is used to retrieve an object implementing the requested record.- Parameters:
repositorySearchRecordType- a repository search record type- Returns:
- the repository search record
- Throws:
NullArgumentException-repositorySearchRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(repositorySearchRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-