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

This session is used to retrieve 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.
  • 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.

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

MethoduseActiveValueView
Description

Only active values are returned by methods in this session.

CompliancemandatoryThis method is must be implemented.
MethoduseAnyStatusValueView
Description

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

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

Parametersosid.id.IdvalueIdthe Id of the Value to retrieve
Returnosid.configuration.Valuethe returned Value
ErrorsNOT_FOUNDno Value found with the given Id
NULL_ARGUMENT valueId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.

Parametersosid.id.IdListvalueIdsthe list of Ids to retrieve
Returnosid.configuration.ValueListthe returned Value list
ErrorsNOT_FOUNDan Id was not found
NULL_ARGUMENT valueIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.TypevalueGenusTypea value genus type
Returnosid.configuration.ValueListthe returned Value list
ErrorsNULL_ARGUMENT valueGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.TypevalueGenusTypea value genus type
Returnosid.configuration.ValueListthe returned Value list
ErrorsNULL_ARGUMENT valueGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.TypevalueRecordTypea value type
Returnosid.configuration.ValueListthe returned Value list
ErrorsNULL_ARGUMENT valueRecordType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.ValueListthe value list
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetValuesOnCondition
Description

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

Parametersosid.configuration.ValueConditionvalueConditiona value condition
Returnosid.configuration.ValueListthe value list
ErrorsNULL_ARGUMENT valueCondition is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED valueCondition not of this service
CompliancemandatoryThis method must be implemented.