| Interface | osid.lexicon.IdiomLookupSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Used By | osid.lexicon.LexiconManager | ||
osid.lexicon.LexiconProxyManager | |||
| Description |
This session provides methods for retrieving
This session defines views that offer differing behaviors when retrieving multiple objects.
Generally, the comparative view should be used for most
presses as it permits operation even if there is data that
cannot be accessed. The methods
| ||
| Method | getPressId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the Press Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getPress | ||
| Description |
Gets the | ||
| Return | osid.lexicon.Press | the press | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canLookupIdioms | ||
| 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 | useComparativeIdiomView | ||
| 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 | usePlenaryIdiomView | ||
| Description |
A complete view of the | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useFederatedPressView | ||
| Description |
Federates the view for methods in this session. A federated view will include idioms in presses which are children of this press in the press hierarchy. | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useIsolatedPressView | ||
| Description |
Isolates the view for methods in this session. An isolated view restricts lookups to this press only. | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getIdiom | ||
| Description |
Gets the In plenary mode, the exact | ||
| Parameters | osid.id.Id | idiomId | Id of the Idiom |
| Return | osid.lexicon.Idiom | the idiom | |
| Errors | NOT_FOUND | idiomId not found | |
| NULL_ARGUMENT | idiomId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getIdiomsByIds | ||
| Description |
Gets an In plenary mode, the returned list contains all of the
idioms specified in the | ||
| Parameters | osid.id.IdList | idiomIds | the list of Ids to retrieve |
| Return | osid.lexicon.IdiomList | the returned Idiom list | |
| Errors | NOT_FOUND | an Id was not found | |
| NULL_ARGUMENT | idiomIds is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getIdiomsByGenusType | ||
| Description |
Gets an In plenary mode, the returned list contains all known idioms or an error results. Otherwise, the returned list may contain only those idioms that are accessible through this session. | ||
| Parameters | osid.type.Type | idiomGenusType | an idiom genus type |
| Return | osid.lexicon.IdiomList | the returned Idiom list | |
| Errors | NULL_ARGUMENT | idiomGenusType is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getIdiomsByParentGenusType | ||
| Description |
Gets an In plenary mode, the returned list contains all known idioms or an error results. Otherwise, the returned list may contain only those idioms that are accessible through this session. | ||
| Parameters | osid.type.Type | idiomGenusType | an idiom genus type |
| Return | osid.lexicon.IdiomList | the returned Idiom list | |
| Errors | NULL_ARGUMENT | idiomGenusType is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getIdiomsByRecordType | ||
| Description |
Gets an In plenary mode, the returned list contains all known idioms or an error results. Otherwise, the returned list may contain only those idioms that are accessible through this session. | ||
| Parameters | osid.type.Type | idiomRecordType | an idiom record type |
| Return | osid.lexicon.IdiomList | the returned Idiom list | |
| Errors | NULL_ARGUMENT | idiomRecordType is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getIdiomsForText | ||
| Description |
Gets an In plenary mode, the returned list contains all known idioms or an error results. Otherwise, the returned list may contain only those idioms that are accessible through this session. | ||
| Parameters | osid.id.Id | textId | a text Id |
| Return | osid.lexicon.IdiomList | the returned Idiom list | |
| Errors | NULL_ARGUMENT | textId is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getIdioms | ||
| Description |
Gets all In plenary mode, the returned list contains all known idioms or an error results. Otherwise, the returned list may contain only those idioms that are accessible through this session. | ||
| Return | osid.lexicon.IdiomList | a list of Idioms | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |