OSID Logo
OSID Specifications
lexicon package
Version 3.0.0
Interfaceosid.lexicon.IdiomPressSession
Implementsosid.OsidSession
Used Byosid.lexicon.LexiconManager
osid.lexicon.LexiconProxyManager
Description

This session provides methods to retrieve Idiom to Press mappings. An Idiom may appear in multiple Press objects. Each press may have its own authorizations governing who is allowed to look at it.

This lookup session defines several views:

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete result set or is an error condition
MethodcanLookupIdiomPressMappings
Description

Tests if this user can perform lookups of idiom/press mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known lookup methods in this session will result in a PERMISSION_DENIED . This is intended as a hint to an press that may opt not to offer lookup operations to unauthorized users.

Returnbooleanfalse if looking up mappings is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseComparativeIdiomPressView
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.
MethodusePlenaryIdiomPressView
Description

A complete view of the Idiom and Press 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.
MethodgetIdiomIdsByPress
Description

Gets the list of Idiom Ids associated with a Press .

Parametersosid.id.IdpressIdId of the Press
Returnosid.id.IdListlist of related idiom Ids
ErrorsNOT_FOUNDpressId is not found
NULL_ARGUMENTpressId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetIdiomsByPress
Description

Gets the list of Idioms associated with a Press .

Parametersosid.id.IdpressIdId of the Press
Returnosid.lexicon.IdiomListlist of related idioms
ErrorsNOT_FOUNDpressId is not found
NULL_ARGUMENTpressId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetIdiomIdsByPresses
Description

Gets the list of Idiom Ids corresponding to a list of Presses .

Parametersosid.id.IdListpressIdslist of press Ids
Returnosid.id.IdListlist of idiom Ids
ErrorsNULL_ARGUMENTpressIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetIdiomsByPresses
Description

Gets the list of Idiom corresponding to a list of Presses .

Parametersosid.id.IdListpressIdslist of press Ids
Returnosid.lexicon.IdiomListlist of idioms
ErrorsNULL_ARGUMENTpressIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetPressIdsByIdiom
Description

Gets the Press Ids mapped to an Idiom .

Parametersosid.id.IdidiomIdId of an Idiom
Returnosid.id.IdListlist of presses
ErrorsNOT_FOUNDidiomId is not found
NULL_ARGUMENTidiomId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetPressesByIdiom
Description

Gets the Presses mapped to an Idiom .

Parametersosid.id.IdidiomIdId of an Idiom
Returnosid.lexicon.PressListlist of presses
ErrorsNOT_FOUNDidiomId is not found
NULL_ARGUMENTidiomId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.