OSID Logo
OSID Specifications
dictionary package
Version 3.1.0
Interfaceosid.dictionary.EntryRetrievalSession
Implementsosid.OsidSession
Used Byosid.dictionary.DictionaryManager
osid.dictionary.DictionaryProxyManager
Description

EntryRetrievalSession is used to get 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.

MethodgetDictionaryId
Description

Gets the Dictionary Id associated with this session.

Returnosid.id.Id the Dictionary Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetDictionary
Description

Gets the Dictionary associated with this session.

Returnosid.dictionary.Dictionary the Dictionary associated with this session
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanRetrieveEntries
Description

Tests if this user can perform Entry 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 retrieval methods are not authorized, true otherwise
Compliancemandatory This method 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.

Parametersobjectkey the key of the entry to retrieve
osid.type.TypekeyType the key type of the entry to retrieve
osid.type.TypevalueType the value type of the entry to retrieve
Returnobject the returned object
ErrorsINVALID_ARGUMENT key is not of keyType
NOT_FOUND no entry found
NULL_ARGUMENT key, keyType, or valueType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.