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

This session is used to retrieve active and applicable configuration values through evaluation of active and pertinent values based on the context or conditional input.

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.
MethodcanRetrieveValues
Description

Tests if this user can perform Value retrievals. 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.
MethodgetApplicableValueByParameter
Description

Gets an applicable 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.IdparameterId the Id of the Parameter to retrieve
Returnosid.configuration.Value the value
ErrorsNOT_FOUND the parameterId not found or no value available
NULL_ARGUMENT the parameterId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetApplicableValuesByParameter
Description

Gets all the applicable Values for the given parameter Id.

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.
MethodgetApplicableValuesByParameters
Description

Gets the applicable Values for the given parameter Ids.

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

Gets a value condition for the given parameter.

Parametersosid.id.IdparameterId the Id of a Parameter
Returnosid.configuration.ValueCondition a value condition
ErrorsNULL_ARGUMENT parameterId is null
Compliancemandatory This method must be implemented.
MethodgetApplicableValueByParameterOnCondition
Description

Gets an applicable 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.IdparameterId the Id of a Parameter
osid.configuration.ValueConditionvalueCondition the condition
Returnosid.configuration.Value the value
ErrorsNOT_FOUND parameter Id is not found
NULL_ARGUMENT parameterId or valueCondition is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED valueCondition did not originate from getValueCondition()
Compliancemandatory This method must be implemented.
MethodgetApplicableValuesByParameterOnCondition
Description

Gets all the applicable values for a parameter based on a condition.

Parametersosid.id.IdparameterId the Id of a Parameter
osid.configuration.ValueConditionvalueCondition the condition
Returnosid.configuration.ValueList the value list
ErrorsNOT_FOUND parameter Id is not found
NULL_ARGUMENT parameterId or valueCondition is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED valueCondition did not originate from getValueCondition()
Compliancemandatory This method must be implemented.
MethodgetApplicableValuesByParametersOnCondition
Description

Gets the applicable values for parameters based on a condition. The specified condition is applied to any or all of the parameters as applicable.

Parametersosid.id.IdListparameterIds the Id of a Parameter
osid.configuration.ValueConditionvalueCondition the condition
Returnosid.configuration.ValueList the value list
ErrorsNOT_FOUND a parameter Id is not found
NULL_ARGUMENT parameterIds or valueCondition is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED valueCondition did not originate from getValueCondition()
Compliancemandatory This method must be implemented.