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

This session manages queries and sequencing to create "smart" dynamic catalogs. A TextQuery can be retrieved from this session and pressped to this Press to create a virtual collection of Texts . The texts may be sequenced using the TextSearchOrder from this session.

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

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

Gets a text query.

Returnosid.lexicon.TextQuerythe text query
CompliancemandatoryThis method must be implemented.
MethodgetTextSearchOrder
Description

Gets a text search order.

Returnosid.lexicon.TextSearchOrderthe text search order
CompliancemandatoryThis method must be implemented.
MethodapplyTextQuery
Description

Applies a text query to this press.

Parametersosid.lexicon.TextQuerytextQuerythe text query
ErrorsNULL_ARGUMENTtextQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTEDtextQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectTextQuery
Description

Gets a text query inspector for this press.

Returnosid.lexicon.TextQueryInspectorthe text query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyTextSequencing
Description

Applies a text search order to this press.

Parametersosid.lexicon.TextSearchOrdertextSearchOrderthe text search order
ErrorsNULL_ARGUMENTtextSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTEDtextSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetTextQueryFromInspector
Description

Gets a text query from an inspector.

Parametersosid.lexicon.TextQueryInspectortextQueryInspectora text query inspector
Returnosid.lexicon.TextQuerythe text query
ErrorsNULL_ARGUMENTtextQueryInspector is null
UNSUPPORTEDtextQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.