OSID Logo
OSID Specifications
forum package
Version 3.0.0
Release Candidate Preview
Interfaceosid.forum.ForumQuery
Implementsosid.OsidCatalogQuery
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.IdreplyIda reply Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT replyId is null
CompliancemandatoryThis method must be implemented.
MethodclearReplyIdTerms
Description

Clears the reply Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsReplyQuery
Description

Tests if a reply query is available.

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

Gets the query for a forum.

Returnosid.forum.ReplyQuerythe reply query
ErrorsUNIMPLEMENTED supportsReplyQuery() is false
ComplianceoptionalThis 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
CompliancemandatoryThis method must be implemented.
MethodclearReplyTerms
Description

Clears the reply terms.

CompliancemandatoryThis method must be implemented.
MethodmatchPostId
Description

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

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

Clears the post Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsPostQuery
Description

Tests if a PostQuery is available.

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

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

Returnosid.forum.PostQuerythe post query
ErrorsUNIMPLEMENTED supportsPostQuery() is false
ComplianceoptionalThis 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
CompliancemandatoryThis method must be implemented.
MethodclearPostTerms
Description

Clears the post terms.

CompliancemandatoryThis 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.IdforumIda forum Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT forumId is null
CompliancemandatoryThis method must be implemented.
MethodclearAncestorForumIdTerms
Description

Clears the ancestor forum Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAncestorForumQuery
Description

Tests if a ForumQuery is available.

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

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

Returnosid.forum.ForumQuerythe forum query
ErrorsUNIMPLEMENTED supportsAncestorForumQuery() is false
ComplianceoptionalThis 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
CompliancemandatoryThis method must be implemented.
MethodclearAncestorForumTerms
Description

Clears the ancestor forum terms.

CompliancemandatoryThis 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.IdforumIda forum Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT forumId is null
CompliancemandatoryThis method must be implemented.
MethodclearDescendantForumIdTerms
Description

Clears the descendant forum Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDescendantForumQuery
Description

Tests if a ForumQuery is available.

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

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

Returnosid.forum.ForumQuerythe forum query
ErrorsUNIMPLEMENTED supportsDescendantForumQuery() is false
ComplianceoptionalThis 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
CompliancemandatoryThis method must be implemented.
MethodclearDescendantForumTerms
Description

Clears the descendant forum terms.

CompliancemandatoryThis 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.TypeforumRecordTypea forum record type
Returnosid.forum.records.ForumQueryRecordthe forum query record
ErrorsNULL_ARGUMENT forumRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(forumRecordType) is false
CompliancemandatoryThis method must be implemented.