OSID Logo
OSID Specifications
forum package
Version 3.0.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.IdreplyIda reply Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTreplyId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsReplyQuery() is false
ComplianceoptionalThis method must be implemented if supportsReplyQuery() is true .
MethodmatchAnyReply
Description

Matches forums with any reply.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTpostId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsPostQuery() is false
ComplianceoptionalThis method must be implemented if supportsPostQuery() is true .
MethodmatchAnyPost
Description

Matches forums with any post.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTforumId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsAncestorForumQuery() is false
ComplianceoptionalThis method must be implemented if supportsAncestorForumQuery() is true .
MethodmatchAnyAncestorForum
Description

Matches forums with any ancestor.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTforumId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsDescendantForumQuery() is false
ComplianceoptionalThis method must be implemented if supportsDescendantForumQuery() is true .
MethodmatchAnyDescendantForum
Description

Matches forums with any descendant.

Parametersbooleanmatchtrue 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_ARGUMENTforumRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(forumRecordType) is false
CompliancemandatoryThis method must be implemented.