OSID Logo
OSID Specifications
process package
Version 3.1.0
Interfaceosid.process.StateQuerySession
Implementsosid.OsidSession
Implemented Byosid.process.StateSearchSession
Used Byosid.process.ProcessManager
osid.process.ProcessProxyManager
Description

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

This session defines views that offer differing behaviors for searching.

  • federated process view: searches include states in processes of which this process is a ancestor in the process hierarchy
  • isolated process view: searches are restricted to states in this process

States may have a query record indicated by their respective types. The queryrecord is accessed via the StateQuery.

MethodgetProcessId
Description

Gets the Process Id associated with this session.

Returnosid.id.Id the Process Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetProcess
Description

Gets the Process associated with this session.

Returnosid.process.Process the Process associated with this session
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanSearchStates
Description

Tests if this user can perform State searches. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer search operations to unauthorized users.

Returnboolean false if search methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseFederatedProcessView
Description

Federates the view for methods in this session. A federated view will include states in processes which are children of this process in the process hierarchy.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedProcessView
Description

Isolates the view for methods in this session. An isolated view restricts lookups to this process only.

Compliancemandatory This method is must be implemented.
MethodgetStateQuery
Description

Gets a state query.

Returnosid.process.StateQuery the state query
Compliancemandatory This method must be implemented.
MethodgetStatesByQuery
Description

Gets a list of States matching the given state query.

Parametersosid.process.StateQuerystateQuery the state query
Returnosid.process.StateList the returned StateList
ErrorsNULL_ARGUMENT stateQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED stateQuery is not of this service
Compliancemandatory This method must be implemented.