public interface RelevancySmartOntologySession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A RelevancyQuery
can be retrieved from this
session and mapped to this Ontology
to create a virtual
collection of Relevancies.
The entries may be sequenced
using the RelevancySearchOrder
from this session.
This Ontology
has a default query that matches any
relevancy and a default search order that specifies no sequencing. The
queries may be examined using a RelevancyQueryInspector.
The query may be modified by converting the inspector back to a
RelevancyQuery.
Modifier and Type | Method and Description |
---|---|
void |
applyRelevancyQuery(RelevancyQuery relevancyQuery)
Applies a relevancy query to this ontology.
|
void |
applyRelevancySequencing(RelevancySearchOrder relevancySearchOrder)
Applies a relevancy search order to this ontology.
|
boolean |
canManageSmartOntologies()
Tests if this user can manage smart ontologies.
|
Ontology |
getOntology()
Gets the
Ontology associated with this session. |
Id |
getOntologyId()
Gets the
Ontology Id associated with
this session. |
RelevancyQuery |
getRelevancyQuery()
Gets a relevancy query.
|
RelevancyQuery |
getRelevancyQueryFromInspector(RelevancyQueryInspector relevancyQueryInspector)
Gets a relevancy query from an inspector.
|
RelevancySearchOrder |
getRelevancySearchOrder()
Gets a relevancy search order.
|
RelevancyQueryInspector |
inspectRelevancyQuery()
Gets a relevancy query inspector for this ontology.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getOntologyId()
Ontology
Id
associated with
this session. Ontology Id
associated with this sessionmandatory
- This method must be implemented. Ontology getOntology() throws OperationFailedException, PermissionDeniedException
Ontology
associated with this session. Ontology
associated with this sessionOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canManageSmartOntologies()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer smart operations. false
if smart ontology methods are not
authorized, true
otherwisemandatory
- This method must be implemented. RelevancyQuery getRelevancyQuery()
mandatory
- This method must be implemented. RelevancySearchOrder getRelevancySearchOrder()
mandatory
- This method must be implemented. void applyRelevancyQuery(RelevancyQuery relevancyQuery) throws OperationFailedException, PermissionDeniedException
relevancyQuery
- the relevancy queryNullArgumentException
- relevancyQuery
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- relevancyQuery
not of this servicemandatory
- This method must be implemented. RelevancyQueryInspector inspectRelevancyQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void applyRelevancySequencing(RelevancySearchOrder relevancySearchOrder) throws OperationFailedException, PermissionDeniedException
relevancySearchOrder
- the relevancy search orderNullArgumentException
- relevancySearchOrder
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- relevancySearchOrder
not of this servicemandatory
- This method must be implemented. RelevancyQuery getRelevancyQueryFromInspector(RelevancyQueryInspector relevancyQueryInspector)
relevancyQueryInspector
- a relevancy query inspectorNullArgumentException
- relevancyQueryInspector
is null
UnsupportedException
- relevancyQueryInspector
is not of this servicemandatory
- This method must be implemented.