| Interface | osid.dictionary.EntryLookupSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Used By | osid.dictionary.DictionaryManager | ||
osid.dictionary.DictionaryProxyManager | |||
| Description |
This session defines two views which offer differing behaviors when retrieving multiple objects.
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. | ||
| Method | getDictionaryId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the Dictionary Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getDictionary | ||
| Description |
Gets the | ||
| Return | osid.dictionary.Dictionary | the Dictionary associated with this session | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canLookupEntries | ||
| Description |
Tests if this user can perform | ||
| Return | boolean | false if lookup methods are not authorized, true
otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | useComparativeEntryView | ||
| 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. | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | usePlenaryEntryView | ||
| Description |
A complete view of the | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useFederatedDictionaryView | ||
| Description |
Federates the view for methods in this session. A federated view will include entries from descendant dictionaries in the dictionary hierarchy. | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useIsolatedDictionaryView | ||
| Description |
Isolates the view for methods in this session. An isolated view restricts lookups to this dictionary only. | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getEntry | ||
| Description |
Gets the | ||
| Parameters | osid.id.Id | entryId | Id of the Entry |
| Return | osid.dictionary.Entry | the entry | |
| Errors | NOT_FOUND | entryId not found | |
| NULL_ARGUMENT | entryId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getEntriesByIds | ||
| Description |
Gets an | ||
| Parameters | osid.id.IdList | entryIds | a list of Entry Ids |
| Return | osid.dictionary.EntryList | the entry list | |
| Errors | NOT_FOUND | entryId not found | |
| NULL_ARGUMENT | entryIds is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getEntriesByGenusType | ||
| Description |
Gets an | ||
| Parameters | osid.type.Type | entryGenusType | an entry genus type |
| Return | osid.dictionary.EntryList | the returned Entry list | |
| Errors | NULL_ARGUMENT | entryGenusType is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getEntriesByParentGenusType | ||
| Description |
Gets an | ||
| Parameters | osid.type.Type | entryGenusType | an entry genus type |
| Return | osid.dictionary.EntryList | the returned Entry list | |
| Errors | NULL_ARGUMENT | entryGenusType is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getEntriesByRecordType | ||
| Description |
Gets an | ||
| Parameters | osid.type.Type | entryyRecordType | an entry record type |
| Return | osid.dictionary.EntryList | the returned Entry list | |
| Errors | NULL_ARGUMENT | entryRecordType is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getEntriesByKeyType | ||
| Description |
Gets all the | ||
| Parameters | osid.type.Type | keyType | the type of the key to match |
| Return | osid.dictionary.EntryList | the list of entries matching keyType | |
| Errors | NULL_ARGUMENT | keyType is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getEntriesByKeyTypeAndValueType | ||
| Description |
Gets all the | ||
| Parameters | osid.type.Type | keyType | the type of the key to match |
osid.type.Type | valueType | the type of the value to match | |
| Return | osid.dictionary.EntryList | the list of entries matching keyType | |
| Errors | NULL_ARGUMENT | keyType or valueType is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getEntriesByKeyAndKeyType | ||
| Description |
Gets all the | ||
| Parameters | object | key | the key to match |
osid.type.Type | keyType | the type of the value to match | |
| Return | osid.dictionary.EntryList | the list of entries matching keyType | |
| Errors | NULL_ARGUMENT | key or keyType is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getEntries | ||
| Description |
Gets all | ||
| Return | osid.dictionary.EntryList | the list of entries | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |