OSID Logo
OSID Specifications
sequencing package
Version 3.1.0
Interfaceosid.sequencing.ChainQuerySession
Implementsosid.OsidSession
Implemented Byosid.sequencing.ChainSearchSession
Used Byosid.sequencing.SequencingManager
osid.sequencing.SequencingProxyManager
Description

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

This session defines views that offer differing behaviors for searching.

  • federated antimatroid view: searches include chains in antimatroids of which this antimatroid is an ancestor in the antimatroid hierarchy
  • isolated antimatroid view: searches are restricted to chains in this antimatroid

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

MethodgetAntimatroidId
Description

Gets the Antimatroid Id associated with this session.

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

Gets the Antimatroid associated with this session.

Returnosid.sequencing.Antimatroid the antimatroid
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanSearchChains
Description

Tests if this user can perform Chain lookups. 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 not offer lookup operations to unauthorized users.

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

Federates the view for methods in this session. A federated view will include chains in antimatroids which are children of this antimatroid in the antimatroid hierarchy.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedAntimatroidView
Description

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

Compliancemandatory This method is must be implemented.
MethodgetChainQuery
Description

Gets a chain query.

Returnosid.sequencing.ChainQuery the chain query
Compliancemandatory This method must be implemented.
MethodgetChainsByQuery
Description

Gets a list of Chains matching the given chain query.

Parametersosid.sequencing.ChainQuerychainQuery the chain query
Returnosid.sequencing.ChainList the returned ChainList
ErrorsNULL_ARGUMENT chainQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED chainQuery is not of this service
Compliancemandatory This method must be implemented.