OSID Logo
OSID Specifications
forum package
Version 3.0.0
Release Candidate Preview
Interfaceosid.forum.ForumSearchSession
Implementsosid.forum.ForumQuerySession
Description

This session provides methods for searching Forum objects. The search query is constructed using the ForumQuery. The forum record Type also specifies the record for the forum query.

getForumsByQuery() is the basic search method and returns a list of Forum elements. A more advanced search may be performed with getForumsBySearch(). It accepts a ForumSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getForumsBySearch() returns a ForumSearchResults that can be used to access the resulting ForumList or be used to perform a search within the result set through ForumSearch.

Forums may have a query record indicated by their respective record types. The query record is accessed via the ForumQuery. The returns in this session may not be cast directly to these interfaces.

MethodgetForumSearch
Description

Gets a forum search.

Returnosid.forum.ForumSearchthe forum search
CompliancemandatoryThis method must be implemented.
MethodgetForumSearchOrder
Description

Gets a forum search order. The ForumSearchOrder is supplied to a ForumSearch to specify the ordering of results.

Returnosid.forum.ForumSearchOrderthe forum search order
CompliancemandatoryThis method must be implemented.
MethodgetForumsBySearch
Description

Gets the search results matching the given search.

Parametersosid.forum.ForumQueryforumQuerythe forum query
osid.forum.ForumSearchforumSearchthe forum search
Returnosid.forum.ForumSearchResultsthe forum search results
ErrorsNULL_ARGUMENT forumQuery or forumSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED forumQuery or forumSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetForumQueryFromInspector
Description

Gets a forum query from an inspector. The inspector is available from an ForumSearchResults.

Parametersosid.forum.ForumQueryInspectorforumQueryInspectora query inspector
Returnosid.forum.ForumQuerythe forum query
ErrorsNULL_ARGUMENT forumQueryInspector is null
UNSUPPORTED forumQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.