Interface EntrySearchSession

All Superinterfaces:
AutoCloseable, Closeable, EntryQuerySession, OsidSession, OsidSession

public interface EntrySearchSession extends EntryQuerySession

This session provides methods for searching among entries. The search query is constructed using the EntryQuery .

getEntryByQuery() is the basic search method and returns a list of Entries . A more advanced search may be performed with getEntriesBySearch() .It accepts an EntrySearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getEntriesBySearch() returns an EntrySearchResult that can be used to access the resulting EntryList or be used to perform a search within the result set through EntrySearch .
  • Method Details

    • getEntrySearch

      EntrySearch getEntrySearch()
      Gets an entry search.
      Returns:
      the entry search
      Compliance:
      mandatory - This method must be implemented.
    • getEntrySearchOrder

      EntrySearchOrder getEntrySearchOrder()
      Gets an entry search order. The EntrySearchOrder is supplied to an EntrySearch to specify the ordering of results.
      Returns:
      the entry search order
      Compliance:
      mandatory - This method must be implemented.
    • getEntriesBySearch

      EntrySearchResults getEntriesBySearch(EntryQuery entryQuery, EntrySearch entrySearch) throws OperationFailedException, PermissionDeniedException
      Gets a list of Entry elements matching the given search.
      Parameters:
      entryQuery - the entry query
      entrySearch - the entry search
      Returns:
      the returned search results
      Throws:
      NullArgumentException - entryQuery or entrySearch is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      UnsupportedException - entrySearch or entryQuery is not of this service
      Compliance:
      mandatory - This method must be implemented.
    • getEntryQueryFromInspector

      EntryQuery getEntryQueryFromInspector(EntryQueryInspector entryQueryInspector)
      Gets an entry query from an inspector. The inspector is available from an EntrySearchResults .
      Parameters:
      entryQueryInspector - an entry query inspector
      Returns:
      the entry query
      Throws:
      NullArgumentException - entryQueryInspector is null
      UnsupportedException - entryQueryInspector is not of this service
      Compliance:
      mandatory - This method must be implemented.