OSID Logo
OSID Specifications
forum package
Version 3.0.0
Interfaceosid.forum.PostQuery
Implementsosid.OsidObjectQuery
Used Byosid.forum.ForumQuery
osid.forum.PostQuerySession
osid.forum.PostSearchSession
osid.forum.PostSmartForumSession
osid.forum.ReplyQuery
Description

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

MethodmatchTimestamp
Description

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

Parametersosid.calendaring.DateTimestartTimestart time
osid.calendaring.DateTimeendTimeend time
booleanmatchtrue if for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTstartTime is greater than endTime
NULL_ARGUMENTstartTime or endTime is null
CompliancemandatoryThis method must be implemented.
MethodclearTimestampTerms
Description

Clears the timestamp terms.

CompliancemandatoryThis method must be implemented.
MethodmatchPosterId
Description

Matches the poster of the entry.

Parametersosid.id.IdresourceIdId to match
booleanmatchtrue if for a positive match, false for a negative match
ErrorsNULL_ARGUMENTresourceId is null
CompliancemandatoryThis method must be implemented.
MethodclearPosterIdTerms
Description

Clears the poster Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsPosterQuery
Description

Tests if a ResourceQuery is available for querying senders.

Returnbooleantrue if a resource query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetPosterQuery
Description

Gets the query for a resource.

Returnosid.resource.ResourceQuerythe resource query
ErrorsUNIMPLEMENTEDsupportsPosterQuery() is false
ComplianceoptionalThis method must be implemented if supportsPosterQuery() is true .
MethodclearPosterTerms
Description

Clears the poster terms.

CompliancemandatoryThis method must be implemented.
MethodmatchPostingAgentId
Description

Matches the posting agent of the entry.

Parametersosid.id.IdagentIdId to match
booleanmatchtrue if for a positive match, false for a negative match
ErrorsNULL_ARGUMENTagentId is null
CompliancemandatoryThis method must be implemented.
MethodclearPostingAgentIdTerms
Description

Clears the posting agent Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsPostingAgentQuery
Description

Tests if an AgentQuery is available for querying posters.

Returnbooleantrue if an agent query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetPostingAgentQuery
Description

Gets the query for an agent.

Returnosid.authentication.AgentQuerythe agent query
ErrorsUNIMPLEMENTEDsupportsPostingAgentQuery() is false
ComplianceoptionalThis method must be implemented if supportsPostingAgentQuery() is true .
MethodclearPostingAgentTerms
Description

Clears the posting agent terms.

CompliancemandatoryThis 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.

Parametersstringsubjectdisplay name to match
osid.type.TypestringMatchTypethe string match type
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTsubject is not of stringMatchType
NULL_ARGUMENTsubject or stringMatchType is null
UNSUPPORTEDsupportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnySubjectLine
Description

Matches entries with any subject line.

Parametersbooleanmatchtrue to match entries with any subject line, false to match entries with no subject line
CompliancemandatoryThis method must be implemented.
MethodclearSubjectLineTerms
Description

Clears the subject line terms.

CompliancemandatoryThis method must be implemented.
MethodmatchText
Description

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

Parametersstringtexttext to match
osid.type.TypestringMatchTypethe string match type
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTtext is not of stringMatchType
NULL_ARGUMENTtext or stringMatchType is null
UNSUPPORTEDsupportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyText
Description

Matches entries with any text.

Parametersbooleanmatchtrue to match entries with any text, false to match entries with no text
CompliancemandatoryThis method must be implemented.
MethodclearTextTerms
Description

Clears the text terms.

CompliancemandatoryThis method must be implemented.
MethodmatchReplyId
Description

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

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 post.

Returnosid.forum.ReplyQuerythe reply query
ErrorsUNIMPLEMENTEDsupportsReplyQuery() is false
ComplianceoptionalThis method must be implemented if supportsReplyQuery() is true .
MethodmatchAnyReply
Description

Matches posts with any reply.

Parametersbooleanmatchtrue to match posts with any reply, false to match posts with no replies
CompliancemandatoryThis method must be implemented.
MethodclearReplyTerms
Description

Clears the reply terms.

CompliancemandatoryThis method must be implemented.
MethodmatchForumId
Description

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

Parametersosid.id.IdforumIda forum Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTforumId is null
CompliancemandatoryThis method must be implemented.
MethodclearForumIdTerms
Description

Clears the forum Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsForumQuery
Description

Tests if a ForumQuery is available.

Returnbooleantrue if a forum query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetForumQuery
Description

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

Returnosid.forum.ForumQuerythe forum query
ErrorsUNIMPLEMENTEDsupportsForumQuery() is false
ComplianceoptionalThis method must be implemented if supportsForumQuery() is true .
MethodclearForumTerms
Description

Clears the forum terms.

CompliancemandatoryThis method must be implemented.
MethodgetPostQueryRecord
Description

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

Parametersosid.type.TypepostRecordTypea post record type
Returnosid.forum.records.PostQueryRecordthe post query record
ErrorsNULL_ARGUMENTpostRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(postRecordType) is false
CompliancemandatoryThis method must be implemented.