OSID Logo
OSID Specifications
blogging package
Version 3.1.0
Interfaceosid.blogging.EntryQuery
Implementsosid.OsidObjectQuery
osid.OsidSourceableQuery
Used Byosid.blogging.BlogQuery
osid.blogging.EntryQuerySession
osid.blogging.EntrySearchSession
osid.blogging.EntrySmartBlogSession
Description

This is the query for searching entries. 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.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 Id of a Resource 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 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 Id of an Agent 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 senders.

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 subject line 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.
MethodmatchSummary
Description

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

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

Matches entries with any summary.

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

Clears the summary 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.
MethodmatchBlogId
Description

Sets the blog Id for this query.

Parametersosid.id.IdblogId the blog Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT blogId is null
Compliancemandatory This method must be implemented.
MethodclearBlogIdTerms
Description

Clears the blog Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsBlogQuery
Description

Tests if a BlogQuery is available.

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

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

Returnosid.blogging.BlogQuery the blog query
ErrorsUNIMPLEMENTED supportsBlogQuery() is false
Complianceoptional This method must be implemented if supportsBlogQuery() is true.
MethodclearBlogTerms
Description

Clears the blog terms.

Compliancemandatory This method must be implemented.
MethodgetEntryQueryRecord
Description

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

Parametersosid.type.TypeentryRecordType an entry record type
Returnosid.blogging.records.EntryQueryRecord the entry query record
ErrorsNULL_ARGUMENT entryRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(entryRecordType) is false
Compliancemandatory This method must be implemented.