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

This session manages queries and sequencing to create "smart" dynamic catalogs. A ParameterQuery can be retrieved from this session and mapped to this Press to create a virtual collection of parameters. The parameters may be sequenced using the ParameterSearchOrder from this session.

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

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.
MethodgetParameterQuery
Description

Gets a parameter query.

Returnosid.lexicon.ParameterQuerythe parameter query
CompliancemandatoryThis method must be implemented.
MethodgetParameterSearchOrder
Description

Gets a parameter search order.

Returnosid.lexicon.ParameterSearchOrderthe parameter search order
CompliancemandatoryThis method must be implemented.
MethodapplyParameterQuery
Description

Applies a parameter query to this press.

Parametersosid.lexicon.ParameterQueryparameterQuerythe parameter query
ErrorsNULL_ARGUMENTparameterQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTEDparameterQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspecParameterQuery
Description

Gets a parameter query inspector for this press.

Returnosid.lexicon.ParameterQueryInspectorthe parameter query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyParameterSequencing
Description

Applies a parameter search order to this press.

Parametersosid.lexicon.ParameterSearchOrderparameterSearchOrderthe parameter search order
ErrorsNULL_ARGUMENTparameterSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTEDparameterSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetParameterQueryFromInspector
Description

Gets a parameter query from an inspector.

Parametersosid.lexicon.ParameterQueryInspectorparameterQueryInspectora parameter query inspector
Returnosid.lexicon.ParameterQuerythe parameter query
ErrorsNULL_ARGUMENTparameterQueryInspector is null
UNSUPPORTEDparameterQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.