OSID Logo
OSID Specifications
lexicon package
Version 3.1.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.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.
MethodgetTextQuery
Description

Gets a text query.

Returnosid.lexicon.TextQuery the text query
Compliancemandatory This method must be implemented.
MethodgetTextSearchOrder
Description

Gets a text search order.

Returnosid.lexicon.TextSearchOrder the text search order
Compliancemandatory This method must be implemented.
MethodapplyTextQuery
Description

Applies a text query to this press.

Parametersosid.lexicon.TextQuerytextQuery the text query
ErrorsNULL_ARGUMENT textQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED textQuery not of this service
Compliancemandatory This method must be implemented.
MethodinspectTextQuery
Description

Gets a text query inspector for this press.

Returnosid.lexicon.TextQueryInspector the text query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyTextSequencing
Description

Applies a text search order to this press.

Parametersosid.lexicon.TextSearchOrdertextSearchOrder the text search order
ErrorsNULL_ARGUMENT textSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED textSearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetTextQueryFromInspector
Description

Gets a text query from an inspector.

Parametersosid.lexicon.TextQueryInspectortextQueryInspector a text query inspector
Returnosid.lexicon.TextQuery the text query
ErrorsNULL_ARGUMENT textQueryInspector is null
UNSUPPORTED textQueryInspector is not of this service
Compliancemandatory This method must be implemented.