Interface ProcessSearchSession

All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession, ProcessQuerySession

public interface ProcessSearchSession extends ProcessQuerySession

This session provides methods for searching among Processes . The search query is constructed using the ProcessQuery .

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

This session defines views that offer differing behaviors for searching.

  • federated office view: searches include processes in offices of which this office is an ancestor in the office hierarchy
  • isolated office view: searches are restricted to processes in this office

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

  • Method Details

    • getProcessSearch

      ProcessSearch getProcessSearch()
      Gets a process search.
      Returns:
      the process search
      Compliance:
      mandatory - This method must be implemented.
    • getProcessSearchOrder

      ProcessSearchOrder getProcessSearchOrder()
      Gets a process search order. The ProcessSearchOrder is supplied to a ProcessSearch to specify the ordering of results.
      Returns:
      the process search order
      Compliance:
      mandatory - This method must be implemented.
    • getProcessesBySearch

      ProcessSearchResults getProcessesBySearch(ProcessQuery processQuery, ProcessSearch processSearch) throws OperationFailedException, PermissionDeniedException
      Gets the search results matching the given search query using the given search.
      Parameters:
      processQuery - the process query
      processSearch - the process search
      Returns:
      the process search results
      Throws:
      NullArgumentException - processQuery or processSearch is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      UnsupportedException - processQuery or processSearch is not of this service
      Compliance:
      mandatory - This method must be implemented.
    • getProcessQueryFromInspector

      ProcessQuery getProcessQueryFromInspector(ProcessQueryInspector processQueryInspector)
      Gets a process query from an inspector. The inspector is available from a ProcessSearchResults .
      Parameters:
      processQueryInspector - a process query inspector
      Returns:
      the process query
      Throws:
      NullArgumentException - processQueryInspector is null
      UnsupportedException - processQueryInspector is not of this service
      Compliance:
      mandatory - This method must be implemented.