Interface InstallationSearchSession

All Superinterfaces:
AutoCloseable, Closeable, InstallationQuerySession, OsidSession, OsidSession

public interface InstallationSearchSession extends InstallationQuerySession

This session provides methods for searching Installations . The search query is constructed using the InstallationQuery . The installation record Type also specifies the record for the installation query.

getInstallationsByQuery() is the basic search method and returns a list of Installations . A more advanced search may be performed with getInstallationsBySearch() .It accepts an InstallationSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getInstallationsBySearch() returns an InstallationSearchResults that can be used to access the resulting InstallationList or be used to perform a search within the result set through InstallationSearch .

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

  • Method Details

    • getInstallationSearch

      InstallationSearch getInstallationSearch()
      Gets an installation search.
      Returns:
      the installation search
      Compliance:
      mandatory - This method must be implemented.
    • getInstallationSearchOrder

      InstallationSearchOrder getInstallationSearchOrder()
      Gets an installation search order. The InstallationSearchOrder is supplied to an InstallationSearch to specify the ordering of results.
      Returns:
      the installation search order
      Compliance:
      mandatory - This method must be implemented.
    • getInstallationsBySearch

      InstallationSearchResults getInstallationsBySearch(InstallationQuery installationQuery, InstallationSearch installationSearch) throws OperationFailedException, PermissionDeniedException
      Gets the search results matching the given search query using the given search.
      Parameters:
      installationQuery - the installation query
      installationSearch - the installation search
      Returns:
      the returned search results
      Throws:
      NullArgumentException - installationQuery or installationSearch is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      UnsupportedException - installationSearch or installationQuery is not of this service
      Compliance:
      mandatory - This method must be implemented.
    • getInstallationsQueryFromInspector

      InstallationQuery getInstallationsQueryFromInspector(InstallationQueryInspector installatonQueryInspector)
      Gets an installation query from an inspector. The inspector is available from a InstallationSearchResults .
      Parameters:
      installatonQueryInspector - an installation query inspector
      Returns:
      the installaton query
      Throws:
      NullArgumentException - installationQueryInspector is null
      UnsupportedException - installationQueryInspector is not of this service
      Compliance:
      mandatory - This method must be implemented.