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

EntryRetrievalSession is used to query dictionary entries. A dictionary entry contains a key and a value. The uniqeness of the entry depends on the key, the key type and the value type.

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

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

Returnboolean false if lookup methods are not authorized, true otherwise
CompliancemandatoryThis method 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.
MethodretrieveEntry
Description

Gets the Dictionary entry associated with the given key and types. The keyType indicates the key object type and the valueType indicates the value object return.

Parametersobjectkeythe key of the entry to retrieve
osid.type.TypekeyTypethe key type of the entry to retrieve
osid.type.TypevalueTypethe value type of the entry to retrieve
Returnobjectthe returned object
ErrorsINVALID_ARGUMENT key is not of keyType
NOT_FOUNDno entry found
NULL_ARGUMENT key, keyType, or valueType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.