Interface BlogQuery

All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidCatalogQuery, OsidExtensibleQuery, OsidFederateableQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, OsidSourceableQuery, Suppliable

public interface BlogQuery extends OsidCatalogQuery

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

  • Method Details

    • matchEntryId

      void matchEntryId(Id entryId, boolean match)
      Sets the entry Id for this query.
      Parameters:
      entryId - an entry Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - entryId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearEntryIdTerms

      void clearEntryIdTerms()
      Clears the entry Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsEntryQuery

      boolean supportsEntryQuery()
      Tests if a EntryQuery is available.
      Returns:
      true if an entry query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getEntryQuery

      EntryQuery getEntryQuery()
      Gets the query for an entry. Multiple retrievals produce a nested OR term.
      Returns:
      the entry query
      Throws:
      UnimplementedException - supportsEntryQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsEntryQuery()} is {@code true} .
    • matchAnyEntry

      void matchAnyEntry(boolean match)
      Matches blogs with any entries.
      Parameters:
      match - true to match blogs with any entries, false to match blogs with no entries
      Compliance:
      mandatory - This method must be implemented.
    • clearEntryTerms

      void clearEntryTerms()
      Clears the entry terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchAncestorBlogId

      void matchAncestorBlogId(Id blogId, boolean match)
      Sets the blog Id for this query to match blogs that have the specified blog as an ancestor.
      Parameters:
      blogId - a blog Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - blogId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearAncestorBlogIdTerms

      void clearAncestorBlogIdTerms()
      Clears the ancestor blog Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsAncestorBlogQuery

      boolean supportsAncestorBlogQuery()
      Tests if a BlogQuery is available.
      Returns:
      true if a blog query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getAncestorBlogQuery

      BlogQuery getAncestorBlogQuery()
      Gets the query for a blog. Multiple retrievals produce a nested OR term.
      Returns:
      the blog query
      Throws:
      UnimplementedException - supportsAncestorBlogQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsAncestorBlogQuery()} is {@code true} .
    • matchAnyAncestorBlog

      void matchAnyAncestorBlog(boolean match)
      Matches blogs with any ancestor.
      Parameters:
      match - true to match blogs with any ancestor, false to match root blogs
      Compliance:
      mandatory - This method must be implemented.
    • clearAncestorBlogTerms

      void clearAncestorBlogTerms()
      Clears the ancestor blog terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchDescendantBlogId

      void matchDescendantBlogId(Id blogId, boolean match)
      Sets the blog Id for this query to match blogs that have the specified blog as a descendant.
      Parameters:
      blogId - a blog Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - blogId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearDescendantBlogIdTerms

      void clearDescendantBlogIdTerms()
      Clears the descendant blog Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsDescendantBlogQuery

      boolean supportsDescendantBlogQuery()
      Tests if a BlogQuery is available.
      Returns:
      true if a blog query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getDescendantBlogQuery

      BlogQuery getDescendantBlogQuery()
      Gets the query for a blog. Multiple retrievals produce a nested OR term.
      Returns:
      the blog query
      Throws:
      UnimplementedException - supportsDescendantBlogQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsDescendantBlogQuery()} is {@code true} .
    • matchAnyDescendantBlog

      void matchAnyDescendantBlog(boolean match)
      Matches blogs with any descendant.
      Parameters:
      match - true to match blogs with any descendant, false to match leaf blogs
      Compliance:
      mandatory - This method must be implemented.
    • clearDescendantBlogTerms

      void clearDescendantBlogTerms()
      Clears the descendant blog terms.
      Compliance:
      mandatory - This method must be implemented.
    • getBlogQueryRecord

      BlogQueryRecord getBlogQueryRecord(Type blogRecordType) throws OperationFailedException
      Gets the blog query record corresponding to the given Blog record Type .Multiple retrievals produce a nested OR term.
      Parameters:
      blogRecordType - a blog record type
      Returns:
      the blog query record
      Throws:
      NullArgumentException - blogRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(blogRecordType) is false
      Compliance:
      mandatory - This method must be implemented.