OSID Logo
OSID Specifications
configuration package
Version 3.1.0
Interfaceosid.configuration.ValueLookupSession
Implementsosid.configuration.ValueRetrievalSession
Used Byosid.OsidRuntimeManager
osid.configuration.ConfigurationManager
osid.configuration.ConfigurationProxyManager
Description

This session is used to retrieve configuration values. Several views of the configuration data are defined:

  • federated: parameters defined in configurations that are a parent of this configuration in the configuration hierarchy are included
  • isolated: parameters are contained to within this configuration
  • conditional: values are filtered that do not pass any defined conditions, whether or not they are explciity passed into the lookup methods of this session
  • unconditional: values are filtered only for the conditions that are explicity passed as parameters. Any conditions defined for the value that do not require explicit data for retrieval are ignored.
  • active value view: All value lookup methods return active values.
  • any status value view: Values of any active or inactive status are returned from methods.
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.
MethodcanLookupValues
Description

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

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

The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.

Compliancemandatory This method is must be implemented.
MethodusePlenaryValueView
Description

A complete view of the Value returns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.

Compliancemandatory This method is 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 lookups to this configuration only.

Compliancemandatory This method is must be implemented.
MethoduseActiveValueView
Description

Only active values are returned by methods in this session.

Compliancemandatory This method is must be implemented.
MethoduseAnyStatusValueView
Description

All active and inactive values are returned by methods in this session.

Compliancemandatory This method is must be implemented.
MethodgetValue
Description

Gets the Value specified by its Id.

In plenary mode, the exact Id is found or a NOT_FOUND results. Otherwise, the returned Value may have a different Id than requested, such as the case where a duplicate Id was assigned to a Value and retained for compatibility.

In active mode, values are returned that are currently active. In any status mode, active and inactive values are returned.

Parametersosid.id.IdvalueId the Id of the Value to retrieve
Returnosid.configuration.Value the returned Value
ErrorsNOT_FOUND no Value found with the given Id
NULL_ARGUMENT valueId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetValuesByIds
Description

Gets a ValueList corresponding to the given IdList.

In plenary mode, the returned list contains all of the values specified in the Id list, in the order of the list, including duplicates, or an error results if an Id in the supplied list is not found or inaccessible. Otherwise, inaccessible Values may be omitted from the list and may present the elements in any order including returning a unique set.

In active mode, values are returned that are currently active. In any status mode, active and inactive values are returned.

Parametersosid.id.IdListvalueIds the list of Ids to retrieve
Returnosid.configuration.ValueList the returned Value list
ErrorsNOT_FOUND an Id was not found
NULL_ARGUMENT valueIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetValuesByGenusType
Description

Gets a ValueList corresponding to the given value genus Type which does not include values of genus types derived from the specified Type.

In plenary mode, the returned list contains all known values or an error results. Otherwise, the returned list may contain only those values that are accessible through this session.

In active mode, values are returned that are currently active. In any status mode, active and inactive values are returned.

Parametersosid.type.TypevalueGenusType a value genus type
Returnosid.configuration.ValueList the returned Value list
ErrorsNULL_ARGUMENT valueGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetValuesByParentGenusType
Description

Gets a ValueList corresponding to the given value genus Type and include any additional values with genus types derived from the specified Type.

In plenary mode, the returned list contains all known values or an error results. Otherwise, the returned list may contain only those values that are accessible through this session.

In active mode, values are returned that are currently active. In any status mode, active and inactive values are returned.

Parametersosid.type.TypevalueGenusType a value genus type
Returnosid.configuration.ValueList the returned Value list
ErrorsNULL_ARGUMENT valueGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetValuesByRecordType
Description

Gets a ValueList corresponding to the given value record Type which does not include values of record types derived from the specified Type.

In plenary mode, the returned list contains all known values or an error results. Otherwise, the returned list may contain only those values that are accessible through this session.

In active mode, values are returned that are currently active. In any status mode, active and inactive values are returned.

Parametersosid.type.TypevalueRecordType a value type
Returnosid.configuration.ValueList the returned Value list
ErrorsNULL_ARGUMENT valueRecordType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetValuesByParameter
Description

Gets all the Values for the given parameter Id.

In plenary mode, all values are returned in the order requested or an error results. In comparative mode, inaccessible values may be omitted or the values reordered.

In active mode, values are returned that are currently active. In any status mode, active and inactive values are returned.

Parametersosid.id.IdparameterId the Id of the Parameter to retrieve
Returnosid.configuration.ValueList the value list
ErrorsNOT_FOUND the parameterId not found
NULL_ARGUMENT the parameterId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetValues
Description

Gets all the values in this configuration. In plenary mode, all values are returned or an error results. In comparative mode, inaccessible values may be omitted.

In plenary mode, the returned list contains all known values or an error results. Otherwise, the returned list may contain only those values that are accessible through this session.

In active mode, values are returned that are currently active. In any status mode, active and inactive values are returned.

Returnosid.configuration.ValueList the value list
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.