public interface ResultSmartCatalogueSession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. An ResultQuery
can be retrieved from this session
and mapped to this Catalogue
to create a virtual collection
of Results.
The results may be sequenced using the
ResultSearchOrder
from this session.
This Catalogue
has a default query that matches any
result and a default search order that specifies no sequencing. The
queries may be examined using an ResultQueryInspector.
The
query may be modified by converting the inspector back to an
ResultQuery.
Modifier and Type | Method and Description |
---|---|
void |
applyResultQuery(ResultQuery resultQuery)
Applies an result query to this catalogue.
|
void |
applyResultSequencing(ResultSearchOrder resultSearchOrder)
Applies an result search order to this catalogue.
|
boolean |
canManageSmartCatalogues()
Tests if this user can manage smart catalogues.
|
Catalogue |
getCatalogue()
Gets the
Catalogue associated with this session. |
Id |
getCatalogueId()
Gets the
Catalogue Id associated with
this session. |
ResultQuery |
getResultQuery()
Gets an result query.
|
ResultQuery |
getResultQueryFromInspector(ResultQueryInspector resultQueryInspector)
Gets an result query from an inspector.
|
ResultSearchOrder |
getResultSearchOrder()
Gets an result search order.
|
ResultQueryInspector |
inspectResultQuery()
Gets an result query inspector for this catalogue.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getCatalogueId()
Catalogue
Id
associated with
this session. Catalogue Id
associated with this sessionmandatory
- This method must be implemented. Catalogue getCatalogue() throws OperationFailedException, PermissionDeniedException
Catalogue
associated with this session. Catalogue
associated with this sessionOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canManageSmartCatalogues()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer operations to unauthorized
users. false
if smart catalogue management is not
authorized, true
otherwisemandatory
- This method must be implemented. ResultQuery getResultQuery()
mandatory
- This method must be implemented. ResultSearchOrder getResultSearchOrder()
mandatory
- This method must be implemented. void applyResultQuery(ResultQuery resultQuery) throws OperationFailedException, PermissionDeniedException
resultQuery
- the result queryNullArgumentException
- resultQuery
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- resultQuery
not
of this servicemandatory
- This method must be implemented. ResultQueryInspector inspectResultQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void applyResultSequencing(ResultSearchOrder resultSearchOrder) throws OperationFailedException, PermissionDeniedException
resultSearchOrder
- the result search orderNullArgumentException
- resultSearchOrder
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- resultSearchOrder
not of this servicemandatory
- This method must be implemented. ResultQuery getResultQueryFromInspector(ResultQueryInspector resultQueryInspector)
resultQueryInspector
- a query inspectorNullArgumentException
- resultQueryInspector
is null
UnsupportedException
- resultQueryInspector
is not of this servicemandatory
- This method must be implemented.