OSID Logo
OSID Specifications
lexicon package
Version 3.1.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.Id the Press Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetPress
Description

Gets the Press associated with this session.

Returnosid.lexicon.Press the press
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.

Returnboolean false if smart press management is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetIdiomQuery
Description

Gets an idiom query.

Returnosid.lexicon.IdiomQuery the idiom query
Compliancemandatory This method must be implemented.
MethodgetIdiomSearchOrder
Description

Gets an idiom search order.

Returnosid.lexicon.IdiomSearchOrder the idiom search order
Compliancemandatory This method must be implemented.
MethodapplyIdiomQuery
Description

Applies an idiom query to this press.

Parametersosid.lexicon.IdiomQueryidiomQuery the idiom query
ErrorsNULL_ARGUMENT idiomQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED idiomQuery not of this service
Compliancemandatory This method must be implemented.
MethodinspectIdiomQuery
Description

Gets an idiom query inspector for this press.

Returnosid.lexicon.IdiomQueryInspector the idiom query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyIdiomSequencing
Description

Applies an idiom search order to this press.

Parametersosid.lexicon.IdiomSearchOrderidiomSearchOrder the idiom search order
ErrorsNULL_ARGUMENT idiomSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED idiomSearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetIdiomQueryFromInspector
Description

Gets an idiom query from an inspector.

Parametersosid.lexicon.IdiomQueryInspectoridiomQueryInspector an idiom query inspector
Returnosid.lexicon.IdiomQuery the idiom query
ErrorsNULL_ARGUMENT idiomQueryInspector is null
UNSUPPORTED idiomQueryInspector is not of this service
Compliancemandatory This method must be implemented.