OSID Logo
OSID Specifications
forum package
Version 3.1.0
Interfaceosid.forum.ForumQuery
Implementsosid.OsidCatalogQuery
Used Byosid.forum.ForumQuery
osid.forum.ForumQuerySession
osid.forum.ForumSearchSession
osid.forum.PostQuery
osid.forum.ReplyQuery
Description

This is the query for searching for forums. Each method specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchReplyId
Description

Sets the reply Id for this query to match replies assigned to forums.

Parametersosid.id.IdreplyId a reply Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT replyId is null
Compliancemandatory This method must be implemented.
MethodclearReplyIdTerms
Description

Clears the reply Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsReplyQuery
Description

Tests if a reply query is available.

Returnboolean true if a reply query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetReplyQuery
Description

Gets the query for a forum.

Returnosid.forum.ReplyQuery the reply query
ErrorsUNIMPLEMENTED supportsReplyQuery() is false
Complianceoptional This method must be implemented if supportsReplyQuery() is true.
MethodmatchAnyReply
Description

Matches forums with any reply.

Parametersbooleanmatch true to match forums with any reply, false to match forums with no replies
Compliancemandatory This method must be implemented.
MethodclearReplyTerms
Description

Clears the reply terms.

Compliancemandatory This method must be implemented.
MethodmatchPostId
Description

Sets the post Id for this query to match replies assigned to posts.

Parametersosid.id.IdpostId a post Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT postId is null
Compliancemandatory This method must be implemented.
MethodclearPostIdTerms
Description

Clears the post Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsPostQuery
Description

Tests if a PostQuery is available.

Returnboolean true if a post query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetPostQuery
Description

Gets the query for a post query. Multiple retrievals produce a nested OR term.

Returnosid.forum.PostQuery the post query
ErrorsUNIMPLEMENTED supportsPostQuery() is false
Complianceoptional This method must be implemented if supportsPostQuery() is true.
MethodmatchAnyPost
Description

Matches forums with any post.

Parametersbooleanmatch true to match forums with any post, false to match forums with no posts
Compliancemandatory This method must be implemented.
MethodclearPostTerms
Description

Clears the post terms.

Compliancemandatory This method must be implemented.
MethodmatchAncestorForumId
Description

Sets the forum Id for this query to match forums that have the specified forum as an ancestor.

Parametersosid.id.IdforumId a forum Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT forumId is null
Compliancemandatory This method must be implemented.
MethodclearAncestorForumIdTerms
Description

Clears the ancestor forum Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAncestorForumQuery
Description

Tests if a ForumQuery is available.

Returnboolean true if a forum query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetAncestorForumQuery
Description

Gets the query for a forum. Multiple retrievals produce a nested OR term.

Returnosid.forum.ForumQuery the forum query
ErrorsUNIMPLEMENTED supportsAncestorForumQuery() is false
Complianceoptional This method must be implemented if supportsAncestorForumQuery() is true.
MethodmatchAnyAncestorForum
Description

Matches forums with any ancestor.

Parametersbooleanmatch true to match forums with any ancestor, false to match root forums
Compliancemandatory This method must be implemented.
MethodclearAncestorForumTerms
Description

Clears the ancestor forum terms.

Compliancemandatory This method must be implemented.
MethodmatchDescendantForumId
Description

Sets the forum Id for this query to match forums that have the specified forum as a descendant.

Parametersosid.id.IdforumId a forum Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT forumId is null
Compliancemandatory This method must be implemented.
MethodclearDescendantForumIdTerms
Description

Clears the descendant forum Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsDescendantForumQuery
Description

Tests if a ForumQuery is available.

Returnboolean true if a forum query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetDescendantForumQuery
Description

Gets the query for a forum. Multiple retrievals produce a nested OR term.

Returnosid.forum.ForumQuery the forum query
ErrorsUNIMPLEMENTED supportsDescendantForumQuery() is false
Complianceoptional This method must be implemented if supportsDescendantForumQuery() is true.
MethodmatchAnyDescendantForum
Description

Matches forums with any descendant.

Parametersbooleanmatch true to match forums with any descendant, false to match leaf forums
Compliancemandatory This method must be implemented.
MethodclearDescendantForumTerms
Description

Clears the descendant forum terms.

Compliancemandatory This method must be implemented.
MethodgetForumQueryRecord
Description

Gets the forum query record corresponding to the given Forum record Type.Multiple record retrievals produce a nested boolean OR term.

Parametersosid.type.TypeforumRecordType a forum record type
Returnosid.forum.records.ForumQueryRecord the forum query record
ErrorsNULL_ARGUMENT forumRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(forumRecordType) is false
Compliancemandatory This method must be implemented.