OSID Logo
OSID Specifications
configuration package
Version 3.1.0
Interfaceosid.configuration.ValueQuerySession
Implementsosid.OsidSession
Implemented Byosid.configuration.ValueSearchSession
Used Byosid.configuration.ConfigurationManager
osid.configuration.ConfigurationProxyManager
Description

This session provides methods for searching Values. The search query is constructed using the ValueQuery. The parameter Type also specifies the record for the value query.

Two views of the configuration data are defined;

  • federated: values defined in configurations that are a parent of this configuration in the configuration hierarchy are included
  • isolated: values are contained to within this configuration
MethodgetConfigurationId
Description

Gets the Configuration Id associated with this session.

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

Gets the Configuration associated with this session.

Returnosid.configuration.Configuration the Configuration associated with this session
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanSearchValues
Description

Tests if this user can perform Value 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 lookup methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseFederatedConfigurationView
Description

Federates the view for methods in this session. A federated view will include values from parent configurations in the configuration hierarchy.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedConfigurationView
Description

Isolates the view for methods in this session. An isolated view restricts searches to this configuration only.

Compliancemandatory This method is must be implemented.
MethodgetValueQuery
Description

Gets a value query.

Returnosid.configuration.ValueQuery the value query
Compliancemandatory This method must be implemented.
MethodgetValuesByQuery
Description

Gets a list of Values matching the given value query.

Parametersosid.configuration.ValueQueryvalueQuery the value query
Returnosid.configuration.ValueList the returned ValueList
ErrorsNULL_ARGUMENT valueQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED a query form is not of this service
Compliancemandatory This method must be implemented.