OSID Logo
OSID Specifications
blogging package
Version 3.0.0
Release Candidate Preview
Interfaceosid.blogging.BlogQuery
Implementsosid.OsidCatalogQuery
Description

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

MethodmatchEntryId
Description

Sets the entry Id for this query.

Parametersosid.id.IdentryIdan entry Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT entryId is null
CompliancemandatoryThis method must be implemented.
MethodclearEntryIdTerms
Description

Clears the entry Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsEntryQuery
Description

Tests if a EntryQuery is available.

Returnboolean true if an entry query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetEntryQuery
Description

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

Returnosid.blogging.EntryQuerythe entry query
ErrorsUNIMPLEMENTED supportsEntryQuery() is false
ComplianceoptionalThis method must be implemented if supportsEntryQuery() is true.
MethodmatchAnyEntry
Description

Matches blogs with any entries.

Parametersbooleanmatch true to match blogs with any entries, false to match blogs with no entries
CompliancemandatoryThis method must be implemented.
MethodclearEntryTerms
Description

Clears the entry terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAncestorBlogId
Description

Sets the blog Id for this query to match blogs that have the specified blog as an ancestor.

Parametersosid.id.IdblogIda blog Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT blogId is null
CompliancemandatoryThis method must be implemented.
MethodclearAncestorBlogIdTerms
Description

Clears the ancestor blog Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAncestorBlogQuery
Description

Tests if a BlogQuery is available.

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

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

Returnosid.blogging.BlogQuerythe blog query
ErrorsUNIMPLEMENTED supportsAncestorBlogQuery() is false
ComplianceoptionalThis method must be implemented if supportsAncestorBlogQuery() is true.
MethodmatchAnyAncestorBlog
Description

Matches blogs with any ancestor.

Parametersbooleanmatch true to match blogs with any ancestor, false to match root blogs
CompliancemandatoryThis method must be implemented.
MethodclearAncestorBlogTerms
Description

Clears the ancestor blog terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDescendantBlogId
Description

Sets the blog Id for this query to match blogs that have the specified blog as a descendant.

Parametersosid.id.IdblogIda blog Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT blogId is null
CompliancemandatoryThis method must be implemented.
MethodclearDescendantBlogIdTerms
Description

Clears the descendant blog Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDescendantBlogQuery
Description

Tests if a BlogQuery is available.

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

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

Returnosid.blogging.BlogQuerythe blog query
ErrorsUNIMPLEMENTED supportsDescendantBlogQuery() is false
ComplianceoptionalThis method must be implemented if supportsDescendantBlogQuery() is true.
MethodmatchAnyDescendantBlog
Description

Matches blogs with any descendant.

Parametersbooleanmatch true to match blogs with any descendant, false to match leaf blogs
CompliancemandatoryThis method must be implemented.
MethodclearDescendantBlogTerms
Description

Clears the descendant blog terms.

CompliancemandatoryThis method must be implemented.
MethodgetBlogQueryRecord
Description

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

Parametersosid.type.TypeblogRecordTypea blog record type
Returnosid.blogging.records.BlogQueryRecordthe blog query record
ErrorsNULL_ARGUMENT blogRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(blogRecordType) is false
CompliancemandatoryThis method must be implemented.