OSID Logo
OSID Specifications
dictionary package
Version 3.0.0
Release Candidate Preview
Interfaceosid.dictionary.EntryLookupSession
Implementsosid.dictionary.EntryRetrievalSession
Description

EntryLookupSession is used to look up dictionary entries. This session includes the methods defined in the EntryRetrievalSession.

This session defines two views which offer differing behaviors when retrieving multiple objects.

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete and ordered result set or is an error condition

Generally, the comparative view should be used for most applications as it permits operation even if there is data out of sync or there is an authorization block in a particular element.

MethoduseComparativeEntryView
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.
MethodusePlenaryEntryView
Description

A complete view of the Entry 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.
MethodgetEntry
Description

Gets the Entry specified by its Id. The identifier represents the union of the key, keyType and valueType.In plenary mode, the exact Id is found or a NOT_FOUND results. Otherwise, the returned Entry may have a different Id than requested, such as the case where a duplicate Id was assigned to an Agency and retained for compatibility.

Parametersosid.id.IdentryId Id of the Entry
Returnosid.dictionary.Entrythe entry
ErrorsNOT_FOUND entryId not found
NULL_ARGUMENT entryId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetEntriesByIds
Description

Gets an EntryList corresponding to the given IdList. In plenary mode, the returned list contains all of the entries 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 Entry elements may be omitted from the list and may present the elements in any order including returning a unique set.

Parametersosid.id.IdListentryIdsa list of Entry Ids
Returnosid.dictionary.EntryListthe entry list
ErrorsNOT_FOUND entryId not found
NULL_ARGUMENT entryIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetEntriesByGenusType
Description

Gets an EntryList corresponding to the given entry genus Type which does not include entries of genus types derived from the specified Type. In plenary mode, the returned list contains all known entries or an error results. Otherwise, the returned list may contain only those entries that are accessible through this session.

Parametersosid.type.TypeentryGenusTypean entry genus type
Returnosid.dictionary.EntryListthe returned Entry list
ErrorsNULL_ARGUMENT entryGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetEntriesByParentGenusType
Description

Gets an EntryList corresponding to the given entry genus Type and include any additional entries with genus types derived from the specified Type. In plenary mode, the returned list contains all known entries or an error results. Otherwise, the returned list may contain only those entries that are accessible through this session.

Parametersosid.type.TypeentryGenusTypean entry genus type
Returnosid.dictionary.EntryListthe returned Entry list
ErrorsNULL_ARGUMENT entryGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetEntriesByRecordType
Description

Gets an EntryList containing the given entry record Type. In plenary mode, the returned list contains all known entries or an error results. Otherwise, the returned list may contain only those entries that are accessible through this session.

Parametersosid.type.TypeentryyRecordTypean entry record type
Returnosid.dictionary.EntryListthe returned Entry list
ErrorsNULL_ARGUMENT entryRecordType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetEntriesByKeyType
Description

Gets all the Dictionary entries matching the given key Type. In plenary mode, the returned list contains all of the entries 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 Entry elements may be omitted from the list and may present the elements in any order including returning a unique set.

Parametersosid.type.TypekeyTypethe type of the key to match
Returnosid.dictionary.EntryListthe list of entries matching keyType
ErrorsNULL_ARGUMENT keyType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetEntriesByKeyTypeAndValueType
Description

Gets all the Dictionary entries matching the given key and value Type. In plenary mode, the returned list contains all of the entries 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 Entry elements may be omitted from the list and may present the elements in any order including returning a unique set.

Parametersosid.type.TypekeyTypethe type of the key to match
osid.type.TypevalueTypethe type of the value to match
Returnosid.dictionary.EntryListthe list of entries matching keyType
ErrorsNULL_ARGUMENT keyType or valueType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetEntriesByKeyAndKeyType
Description

Gets all the Dictionary entries matching the given key and key Type . In plenary mode, the returned list contains all of the entries 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 Entry elements may be omitted from the list and may present the elements in any order including returning a unique set.

Parametersobjectkeythe key to match
osid.type.TypekeyTypethe type of the value to match
Returnosid.dictionary.EntryListthe list of entries matching keyType
ErrorsNULL_ARGUMENT key or keyType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetEntries
Description

Gets all the Dictionary entries. In plenary mode, the returned list contains all of the entries 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 Entry elements may be omitted from the list and may present the elements in any order including returning a unique set.

Returnosid.dictionary.EntryListthe list of entries
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.