OSID Logo
OSID Specifications
configuration package
Version 3.0.0
Release Candidate Preview
Interfaceosid.configuration.ValueRetrievalSession
Implementsosid.OsidSession
Description

This session is used to retrieve active configuration values. Two 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.

This session assumes an active view.

Values are not OSID objects and are obtained using a reference to a Parameter.

MethodgetConfigurationId
Description

Gets the Configuration Id associated with this session.

Returnosid.id.Idthe Configuration Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetConfiguration
Description

Gets the Configuration associated with this session.

Returnosid.configuration.Configurationthe Configuration associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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
CompliancemandatoryThis 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.

CompliancemandatoryThis 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.

CompliancemandatoryThis 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.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedConfigurationView
Description

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

CompliancemandatoryThis method is must be implemented.
MethoduseConditionalView
Description

Returns only values that pass the defined parameter condition. Some parameter conditions do not require explicit conditional data to be passed and the Values returned from any method in this session are filtered on an implicit condition.

CompliancemandatoryThis method is must be implemented.
MethoduseUnconditionalView
Description

Values that are filtered based on an implicit condition are not filtered out from methods in this session. Methods that take an explicit condition as a parameter are filtered on only those conditions that are specified.

CompliancemandatoryThis method is must be implemented.
MethodgetValueByParameter
Description

Gets a Value for the given parameter Id. If more than one value exists for the given parameter, the most preferred value is returned. This method can be used as a convenience when only one value is expected. getValuesByParameters() should be used for getting all the active values.

Parametersosid.id.IdparameterIdthe Id of the Parameter to retrieve
Returnosid.configuration.Valuethe value
ErrorsNOT_FOUNDthe parameterId not found or no value available
NULL_ARGUMENTthe parameterId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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 conditional mode, the values are filtered through evaluation. In unconditional mode, the values are returned unfiltered.

Parametersosid.id.IdparameterIdthe Id of the Parameter to retrieve
Returnosid.configuration.ValueListthe value list
ErrorsNOT_FOUNDthe parameterId not found
NULL_ARGUMENTthe parameterId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetValuesByParameters
Description

Gets the Values for the given parameter Ids.

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

In conditional mode, the values are filtered through evaluation. In unconditional mode, the values are returned unfiltered.

Parametersosid.id.IdListparameterIdsthe Id of the Parameter to retrieve
Returnosid.configuration.ValueListthe value list
ErrorsNOT_FOUNDa parameter Id is not found
NULL_ARGUMENT parameterIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetValueCondition
Description

Gets a value condition for the given parameter.

Parametersosid.id.IdparameterIdthe Id of a Parameter
Returnosid.configuration.ValueConditiona value condition
ErrorsNULL_ARGUMENT parameterId is null
CompliancemandatoryThis method must be implemented.
MethodgetValueByParameterOnCondition
Description

Gets a value in this configuration based on a condition. If multiple values are available the most preferred one is returned. The condition specified is applied to any or all parameters in this configuration as applicable.

Parametersosid.id.IdparameterIdthe Id of a Parameter
osid.configuration.ValueConditionvalueConditionthe condition
Returnosid.configuration.Valuethe value
ErrorsNOT_FOUNDparameter Id is not found
NULL_ARGUMENT parameterId or valueCondition is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED valueCondition not of this service
CompliancemandatoryThis method must be implemented.
MethodgetValuesByParameterOnCondition
Description

Gets all the values for a parameter based on a condition. In plenary mode, all values are returned or an error results. In comparative mode, inaccessible values may be omitted.

Parametersosid.id.IdparameterIdthe Id of a Parameter
osid.configuration.ValueConditionvalueConditionthe condition
Returnosid.configuration.ValueListthe value list
ErrorsNOT_FOUNDparameter Id is not found
NULL_ARGUMENT parameterId or valueCondition is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED valueCondition is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetValuesByParametersOnCondition
Description

Gets the values for parameters based on a condition. The specified condition is applied to any or all of the parameters as applicable. In plenary mode, all values are returned or an error results. In comparative mode, inaccessible values may be omitted.

Parametersosid.id.IdListparameterIdsthe Id of a Parameter
osid.configuration.ValueConditionvalueConditionthe condition
Returnosid.configuration.ValueListthe value list
ErrorsNOT_FOUNDa parameter Id is not found
NULL_ARGUMENT parameterIds or valueCondition is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED valueCondition not of this service
CompliancemandatoryThis method must be implemented.