Interface ProcessSearchSession

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

public interface ProcessSearchSession extends ProcessQuerySession

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

getProcessesByQuery() is the basic search method and returns a list of Process objects.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.

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 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 proces 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.