Interface FrontOfficeSearchSession

All Superinterfaces:
AutoCloseable, Closeable, FrontOfficeQuerySession, OsidSession, OsidSession

public interface FrontOfficeSearchSession extends FrontOfficeQuerySession

This session provides methods for searching among FrontOffice objects. The search query is constructed using the FrontOfficeQuery .

getFrontOfficesByQuery() is the basic search method and returns a list of FrontOffices . A more advanced search may be performed with getFrontOfficesBySearch() .It accepts a FrontOfficeSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getFrontOfficesBySearch() returns a FrontOfficeSearchResults that can be used to access the resulting FrontOfficeList or be used to perform a search within the result set through FrontOfficeSearch .

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

  • Method Details

    • getFrontOfficeSearch

      FrontOfficeSearch getFrontOfficeSearch()
      Gets a front office search.
      Returns:
      the front office search
      Compliance:
      mandatory - This method must be implemented.
    • getFrontOfficeSearchOrder

      FrontOfficeSearchOrder getFrontOfficeSearchOrder()
      Gets a front office search order. The FrontOfficeSearchOrder is supplied to a FrontOfficeSearch to specify the ordering of results.
      Returns:
      the front office search order
      Compliance:
      mandatory - This method must be implemented.
    • getFrontOfficesBySearch

      FrontOfficeSearchResults getFrontOfficesBySearch(FrontOfficeQuery frontOfficeQuery, FrontOfficeSearch frontOfficeSearch) throws OperationFailedException, PermissionDeniedException
      Gets the search results matching the given search query using the given search.
      Parameters:
      frontOfficeQuery - the front office query
      frontOfficeSearch - the front office search
      Returns:
      the returned search results
      Throws:
      NullArgumentException - frontOfficeQuery or frontOfficeSearch is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      UnsupportedException - frontOfficeQuery or frontOfficeSearch is not of this service
      Compliance:
      mandatory - This method must be implemented.
    • getFrontOfficeQueryFromInspector

      FrontOfficeQuery getFrontOfficeQueryFromInspector(FrontOfficeQueryInspector frontOfficeQueryInspector)
      Gets a front office query from an inspector. The inspector is available from a FrontOfficeSearchResults .
      Parameters:
      frontOfficeQueryInspector - a front office query inspector
      Returns:
      the front office query
      Throws:
      NullArgumentException - frontOfficeQueryInspector is null
      UnsupportedException - frontOfficeQueryInspector is not of this service
      Compliance:
      mandatory - This method must be implemented.