OSID Logo
OSID Specifications
forum package
Version 3.1.0
Interfaceosid.forum.ForumSearchSession
Implementsosid.forum.ForumQuerySession
Used Byosid.forum.ForumManager
osid.forum.ForumProxyManager
Description

This session provides methods for searching Forums. 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.ForumSearch the forum search
Compliancemandatory This 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.ForumSearchOrder the forum search order
Compliancemandatory This method must be implemented.
MethodgetForumsBySearch
Description

Gets the search results matching the given search.

Parametersosid.forum.ForumQueryforumQuery the forum query
osid.forum.ForumSearchforumSearch the forum search
Returnosid.forum.ForumSearchResults the forum search results
ErrorsNULL_ARGUMENT forumQuery or forumSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED forumQuery or forumSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetForumQueryFromInspector
Description

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

Parametersosid.forum.ForumQueryInspectorforumQueryInspector a query inspector
Returnosid.forum.ForumQuery the forum query
ErrorsNULL_ARGUMENT forumQueryInspector is null
UNSUPPORTED forumQueryInspector is not of this service
Compliancemandatory This method must be implemented.