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

This session manages queries and sequencing to create "smart" dynamic catalogs. An IdiomQuery can be retrieved from this session and pressped to this Press to create a virtual collection of Idioms . The idioms may be sequenced using the IdiomSearchOrder from this session.

This Press has a default query that matches any idiom and a default search order that specifies no sequencing. The queries may be examined using an IdiomQueryInspector . The query may be modified by converting the inspector back to an IdiomQuery .

MethodgetPressId
Description

Gets the Press Id associated with this session.

Returnosid.id.Idthe Press Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetPress
Description

Gets the Press associated with this session.

Returnosid.lexicon.Pressthe press
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageSmartPresses
Description

Tests if this user can manage smart presses. A return of true does not guarantee successful authorization. A return of false indicates that it is known 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 operations to unauthorized users.

Returnbooleanfalse if smart press management is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetIdiomQuery
Description

Gets an idiom query.

Returnosid.lexicon.IdiomQuerythe idiom query
CompliancemandatoryThis method must be implemented.
MethodgetIdiomSearchOrder
Description

Gets an idiom search order.

Returnosid.lexicon.IdiomSearchOrderthe idiom search order
CompliancemandatoryThis method must be implemented.
MethodapplyIdiomQuery
Description

Applies an idiom query to this press.

Parametersosid.lexicon.IdiomQueryidiomQuerythe idiom query
ErrorsNULL_ARGUMENTidiomQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTEDidiomQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectIdiomQuery
Description

Gets an idiom query inspector for this press.

Returnosid.lexicon.IdiomQueryInspectorthe idiom query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyIdiomSequencing
Description

Applies an idiom search order to this press.

Parametersosid.lexicon.IdiomSearchOrderidiomSearchOrderthe idiom search order
ErrorsNULL_ARGUMENTidiomSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTEDidiomSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetIdiomQueryFromInspector
Description

Gets an idiom query from an inspector.

Parametersosid.lexicon.IdiomQueryInspectoridiomQueryInspectoran idiom query inspector
Returnosid.lexicon.IdiomQuerythe idiom query
ErrorsNULL_ARGUMENTidiomQueryInspector is null
UNSUPPORTEDidiomQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.