OSID Logo
OSID Specifications
forum package
Version 3.1.0
Interfaceosid.forum.ReplyQuery
Implementsosid.OsidObjectQuery
osid.OsidContainableQuery
osid.OsidSubjugateableQuery
Used Byosid.forum.ForumQuery
osid.forum.PostQuery
osid.forum.ReplyQuery
Description

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

MethodmatchPostId
Description

Sets the post Id for this query to match replies 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.
MethodclearPostTerms
Description

Clears the post terms.

Compliancemandatory This method must be implemented.
MethodmatchTimestamp
Description

Matches entries whose sent time is between the supplied range inclusive.

Parametersosid.calendaring.DateTimestartTime start time
osid.calendaring.DateTimeendTime end time
booleanmatch true if for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT startTime is greater than endTime
NULL_ARGUMENT startTime or endTime is null
Compliancemandatory This method must be implemented.
MethodclearTimestampTerms
Description

Clears the timestamp terms.

Compliancemandatory This method must be implemented.
MethodmatchPosterId
Description

Matches the poster of the entry.

Parametersosid.id.IdresourceId resource Id to match
booleanmatch true if for a positive match, false for a negative match
ErrorsNULL_ARGUMENT resourceId is null
Compliancemandatory This method must be implemented.
MethodclearPosterIdTerms
Description

Clears the poster resource Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsPosterQuery
Description

Tests if a ResourceQuery is available for querying posters.

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

Gets the query for a resource.

Returnosid.resource.ResourceQuery the resource query
ErrorsUNIMPLEMENTED supportsPosterQuery() is false
Complianceoptional This method must be implemented if supportsPosterQuery() is true.
MethodclearPosterTerms
Description

Clears the poster terms.

Compliancemandatory This method must be implemented.
MethodmatchPostingAgentId
Description

Matches the posting agent of the entry.

Parametersosid.id.IdagentId agent Id to match
booleanmatch true if for a positive match, false for a negative match
ErrorsNULL_ARGUMENT agentId is null
Compliancemandatory This method must be implemented.
MethodclearPostingAgentIdTerms
Description

Clears the posting agent Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsPostingAgentQuery
Description

Tests if an AgentQuery is available for querying posting agents.

Returnboolean true if an agent query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetPostingAgentQuery
Description

Gets the query for an agent.

Returnosid.authentication.AgentQuery the agent query
ErrorsUNIMPLEMENTED supportsPostingAgentQuery() is false
Complianceoptional This method must be implemented if supportsPostingAgentQuery() is true.
MethodclearPostingAgentTerms
Description

Clears the posting agent terms.

Compliancemandatory This method must be implemented.
MethodmatchSubjectLine
Description

Adds a subject line to match. Multiple subject line matches can be added to perform a boolean OR among them.

Parametersstringsubject display name to match
osid.type.TypestringMatchType the string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT subject is not of stringMatchType
NULL_ARGUMENT subject or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
Compliancemandatory This method must be implemented.
MethodmatchAnySubjectLine
Description

Matches entries with any subject line.

Parametersbooleanmatch true to match entries with any subject line, false to match entries with no subject line
Compliancemandatory This method must be implemented.
MethodclearSubjectLineTerms
Description

Clears the subject line terms.

Compliancemandatory This method must be implemented.
MethodmatchText
Description

Adds text to match. Multiple text matches can be added to perform a boolean OR among them.

Parametersstringtext text to match
osid.type.TypestringMatchType the string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT text is not of stringMatchType
NULL_ARGUMENT text or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
Compliancemandatory This method must be implemented.
MethodmatchAnyText
Description

Matches entries with any text.

Parametersbooleanmatch true to match entries with any text, false to match entries with no text
Compliancemandatory This method must be implemented.
MethodclearTextTerms
Description

Clears the text terms.

Compliancemandatory This method must be implemented.
MethodmatchContainingReplyId
Description

Sets the reply Id for this query to match replies that have the specified reply as an ancestor.

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.
MethodclearContainingReplyIdTerms
Description

Clears the containing reply Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsContainingReplyQuery
Description

Tests if a containing reply query is available.

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

Gets the query for a containing reply.

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

Matches replies with any ancestor reply.

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

Clears the containing reply terms.

Compliancemandatory This method must be implemented.
MethodmatchContainedReplyId
Description

Sets the reply Id for this query to match replies that have the specified reply as a descendant.

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.
MethodclearContainedReplyIdTerms
Description

Clears the contained reply Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsContainedReplyQuery
Description

Tests if a contained reply query is available.

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

Gets the query for a contained reply.

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

Matches replies with any descednant reply.

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

Clears the contained reply terms.

Compliancemandatory This method must be implemented.
MethodmatchForumId
Description

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

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.
MethodclearForumIdTerms
Description

Clears the forum Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsForumQuery
Description

Tests if a ForumQuery is available.

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

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

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

Clears the forum terms.

Compliancemandatory This method must be implemented.
MethodgetReplyQueryRecord
Description

Gets the reply query record corresponding to the given Reply record Type.Multiple record retrievals produce a nested OR term.

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