OSID Logo
OSID Specifications
dictionary package
Version 3.0.0
Interfaceosid.dictionary.EntryLookupSession
Implementsosid.OsidSession
Used Byosid.dictionary.DictionaryManager
osid.dictionary.DictionaryProxyManager
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
  • federated view: entries are accessible from the dictionary associated with this session and any descedant dictionaries in the dictionary hierarchy
  • isolated view: entries are accessible from this dictionary only

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.

MethodgetDictionaryId
Description

Gets the Dictionary Id associated with this session.

Returnosid.id.Idthe Dictionary Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetDictionary
Description

Gets the Dictionary associated with this session.

Returnosid.dictionary.Dictionarythe Dictionary associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanLookupEntries
Description

Tests if this user can perform Entry 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.

Returnbooleanfalse if lookup methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
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.
MethoduseFederatedDictionaryView
Description

Federates the view for methods in this session. A federated view will include entries from descendant dictionaries in the dictionary hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedDictionaryView
Description

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

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.IdentryIdId of the Entry
Returnosid.dictionary.Entrythe entry
ErrorsNOT_FOUNDentryId not found
NULL_ARGUMENTentryId 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_FOUNDentryId not found
NULL_ARGUMENTentryIds 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_ARGUMENTentryGenusType 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_ARGUMENTentryGenusType 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_ARGUMENTentryRecordType 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_ARGUMENTkeyType 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_ARGUMENTkeyType 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_ARGUMENTkey or keyType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetEntries
Description

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

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