Interface SceneSearchSession

All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession, SceneQuerySession

public interface SceneSearchSession extends SceneQuerySession

This session provides methods for searching among Scenes . The search query is constructed using the SceneQuery .

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

This session defines views that offer differing behaviors for searching.

  • federated system view: searches include scenes in systems of which this system is an ancestor in the system hierarchy
  • isolated system view: searches are restricted to scenes in this system

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

  • Method Details

    • getSceneSearch

      SceneSearch getSceneSearch()
      Gets a scene search.
      Returns:
      the scene search
      Compliance:
      mandatory - This method must be implemented.
    • getSceneSearchOrder

      SceneSearchOrder getSceneSearchOrder()
      Gets a scene search order. The SceneSearchOrder is supplied to a SceneSearch to specify the ordering of results.
      Returns:
      the scene search order
      Compliance:
      mandatory - This method must be implemented.
    • getScenesBySearch

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

      SceneQuery getSceneQueryFromInspector(SceneQueryInspector sceneQueryInspector)
      Gets a scene query from an inspector. The inspector is available from a SceneSearchResults .
      Parameters:
      sceneQueryInspector - a scene query inspector
      Returns:
      the scene query
      Throws:
      NullArgumentException - sceneQueryInspector is null
      UnsupportedException - sceneQueryInspector is not of this service
      Compliance:
      mandatory - This method must be implemented.