OSID Logo
OSID Specifications
blogging package
Version 3.1.0
Interfaceosid.blogging.EntrySearchSession
Implementsosid.blogging.EntryQuerySession
Used Byosid.blogging.BloggingManager
osid.blogging.BloggingProxyManager
Description

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

getEntriesByQuery() 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 EntrySearchResults that can be used to access the resulting EntryList or be used to perform a search within the result set through EntryList.

This session defines views that offer differing behaviors for searching.

  • federated blog view: searches include entries in blogs of which this blog is an ancestor in the blog hierarchy
  • isolated blog view: searches are restricted to entries in this blog

Entries may have a query record indicated by their respective record types. The query record is accessed via the EntryQuery.

MethodgetEntrySearch
Description

Gets an entry search.

Returnosid.blogging.EntrySearch the entry search
Compliancemandatory This 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.blogging.EntrySearchOrder the entry search order
Compliancemandatory This method must be implemented.
MethodgetEntriesBySearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.blogging.EntryQueryentryQuery the entry query
osid.blogging.EntrySearchentrySearch the entry search
Returnosid.blogging.EntrySearchResults the returned search results
ErrorsNULL_ARGUMENT entryQuery or entrySearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED entryQuery or entrySearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetEntryQueryFromInspector
Description

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

Parametersosid.blogging.EntryQueryInspectorentryQueryInspector a query inspector
Returnosid.blogging.EntryQuery the entry query
ErrorsNULL_ARGUMENT entryQueryInspector is null
UNSUPPORTED entryQueryInspector is not of this service
Compliancemandatory This method must be implemented.