OSID Logo
OSID Specifications
dictionary package
Version 3.0.0
Interfaceosid.dictionary.EntrySearchSession
Implementsosid.dictionary.EntryQuerySession
Used Byosid.dictionary.DictionaryManager
osid.dictionary.DictionaryProxyManager
Description

This session provides methods for searching among entries. The search query is constructed using the EntryQuery .

getEntryByQuery() is the basic search method and returns a list of Entries . A more advanced search may be performed with getEntriesBySearch() .It accepts an EntrySearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getEntriesBySearch() returns an EntrySearchResult that can be used to access the resulting EntryList or be used to perform a search within the result set through EntrySearch .
MethodgetEntrySearch
Description

Gets an entry search.

Returnosid.dictionary.EntrySearchthe entry search
CompliancemandatoryThis method must be implemented.
MethodgetEntrySearchOrder
Description

Gets an entry search order. The EntrySearchOrder is supplied to an EntrySearch to specify the ordering of results.

Returnosid.dictionary.EntrySearchOrderthe entry search order
CompliancemandatoryThis method must be implemented.
MethodgetEntriesBySearch
Description

Gets a list of Entry elements matching the given search.

Parametersosid.dictionary.EntryQueryentryQuerythe entry query
osid.dictionary.EntrySearchentrySearchthe entry search
Returnosid.dictionary.EntrySearchResultsthe returned search results
ErrorsNULL_ARGUMENTentryQuery or entrySearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDentrySearch or entryQuery is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetEntryQueryFromInspector
Description

Gets an entry query from an inspector. The inspector is available from an EntrySearchResults .

Parametersosid.dictionary.EntryQueryInspectorentryQueryInspectoran entry query inspector
Returnosid.dictionary.EntryQuerythe entry query
ErrorsNULL_ARGUMENTentryQueryInspector is null
UNSUPPORTEDentryQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.