Interface FoundrySearchSession

All Superinterfaces:
AutoCloseable, Closeable, FoundryQuerySession, OsidSession, OsidSession

public interface FoundrySearchSession extends FoundryQuerySession

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

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

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

  • Method Details

    • getFoundrySearch

      FoundrySearch getFoundrySearch()
      Gets a foundry search.
      Returns:
      the foundry search
      Compliance:
      mandatory - This method must be implemented.
    • getFoundrySearchOrder

      FoundrySearchOrder getFoundrySearchOrder()
      Gets a foundry search order. The FoundrySearchOrder is supplied to a FoundrySearch to specify the ordering of results.
      Returns:
      the foundry search order
      Compliance:
      mandatory - This method must be implemented.
    • getFoundriesBySearch

      FoundrySearchResults getFoundriesBySearch(FoundryQuery foundryQuery, FoundrySearch foundrySearch) throws OperationFailedException, PermissionDeniedException
      Gets the search results matching the given search query using the given search.
      Parameters:
      foundryQuery - the foundry query
      foundrySearch - the foundry search
      Returns:
      the returned search results
      Throws:
      NullArgumentException - foundryQuery or foundrySearch is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      UnsupportedException - foundryQuery or foundrySearch is not of this service
      Compliance:
      mandatory - This method must be implemented.
    • getFoundryQueryFromInspector

      FoundryQuery getFoundryQueryFromInspector(FoundryQueryInspector foundryQueryInspector)
      Gets a foundry query from an inspector. The inspector is available from a FoundrySearchResults .
      Parameters:
      foundryQueryInspector - a foundry query inspector
      Returns:
      the foundry query
      Throws:
      NullArgumentException - foundryQueryInspector is null
      UnsupportedException - foundryQueryInspector is not of this service
      Compliance:
      mandatory - This method must be implemented.