OSID Logo
OSID Specifications
process package
Version 3.0.0
Release Candidate Preview
Interfaceosid.process.StateQuerySession
Implementsosid.OsidSession
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.Idthe Process Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetProcess
Description

Gets the Process associated with this session.

Returnosid.process.Processthe Process associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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
CompliancemandatoryThis 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.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedProcessView
Description

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

CompliancemandatoryThis method is must be implemented.
MethodgetStateQuery
Description

Gets a state query.

Returnosid.process.StateQuerythe state query
CompliancemandatoryThis method must be implemented.
MethodgetStatesByQuery
Description

Gets a list of States matching the given state query.

Parametersosid.process.StateQuerystateQuerythe state query
Returnosid.process.StateListthe returned StateList
ErrorsNULL_ARGUMENT stateQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED stateQuery is not of this service
CompliancemandatoryThis method must be implemented.