Interface BlogSearchSession

All Superinterfaces:
AutoCloseable, BlogQuerySession, Closeable, OsidSession, OsidSession

public interface BlogSearchSession extends BlogQuerySession

This session provides methods for searching among Blogs . The search query is constructed using the BlogQuery .

getBlogsByQuery() is the basic search method and returns a list of Blog objects.A more advanced search may be performed with getBlogsBySearch() .It accepts a BlogSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getBlogsBySearch() returns a BlogSearchResults that can be used to access the resulting BlogList or be used to perform a search within the result set through BlogSearch .

Blogs may have a query record indicated by their respective record types. The query record is accessed via the BlogQuery .

  • Method Details

    • getBlogSearch

      BlogSearch getBlogSearch()
      Gets a blog search.
      Returns:
      the blog search
      Compliance:
      mandatory - This method must be implemented.
    • getBlogSearchOrder

      BlogSearchOrder getBlogSearchOrder()
      Gets a blog search order. The BlogSearchOrder is supplied to a BlogSearch to specify the ordering of results.
      Returns:
      the blog search order
      Compliance:
      mandatory - This method must be implemented.
    • getBlogsBySearch

      Gets the search results matching the given search query using the given search.
      Parameters:
      blogQuery - the blog query
      blogSearch - the blog search
      Returns:
      the search results
      Throws:
      NullArgumentException - blogQuery or blogSearch is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      UnsupportedException - blogQuery or blogSearch is not of this service
      Compliance:
      mandatory - This method must be implemented.
    • getBlogQueryFromInspector

      BlogQuery getBlogQueryFromInspector(BlogQueryInspector blogQueryInspector)
      Gets a blog query from an inspector. The inspector is available from an BlogSearchResults .
      Parameters:
      blogQueryInspector - a query inspector
      Returns:
      the blog query
      Throws:
      NullArgumentException - blogQueryInspector is null
      UnsupportedException - blogQueryInspector is not of this service
      Compliance:
      mandatory - This method must be implemented.