Interface TextSmartPressSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
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 .
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTextQuery(TextQuery textQuery) Applies a text query to this press.voidapplyTextSequencing(TextSearchOrder textSearchOrder) Applies a text search order to this press.booleanTests if this user can manage smart presses.getPress()Gets thePressassociated with this session.Gets thePressIdassociated with this session.Gets a text query.getTextQueryFromInspector(TextQueryInspector textQueryInspector) Gets a text query from an inspector.Gets a text search order.Gets a text query inspector for this press.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getPressId
Id getPressId()Gets thePressIdassociated with this session.- Returns:
- the
Press Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getPress
Gets thePressassociated with this session.- Returns:
- the press
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageSmartPresses
boolean canManageSmartPresses()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 aPERMISSION_DENIED. This is intended as a hint to an press that may opt not to offer operations to unauthorized users.- Returns:
falseif smart press management is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getTextQuery
TextQuery getTextQuery()Gets a text query.- Returns:
- the text query
- Compliance:
mandatory- This method must be implemented.
-
getTextSearchOrder
TextSearchOrder getTextSearchOrder()Gets a text search order.- Returns:
- the text search order
- Compliance:
mandatory- This method must be implemented.
-
applyTextQuery
Applies a text query to this press.- Parameters:
textQuery- the text query- Throws:
NullArgumentException-textQueryisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-textQuerynot of this service- Compliance:
mandatory- This method must be implemented.
-
inspectTextQuery
Gets a text query inspector for this press.- Returns:
- the text query inspector
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
applyTextSequencing
void applyTextSequencing(TextSearchOrder textSearchOrder) throws OperationFailedException, PermissionDeniedException Applies a text search order to this press.- Parameters:
textSearchOrder- the text search order- Throws:
NullArgumentException-textSearchOrderisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-textSearchOrdernot of this service- Compliance:
mandatory- This method must be implemented.
-
getTextQueryFromInspector
Gets a text query from an inspector.- Parameters:
textQueryInspector- a text query inspector- Returns:
- the text query
- Throws:
NullArgumentException-textQueryInspectorisnullUnsupportedException-textQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-