public interface RelevancyEnablerSmartOntologySession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
ontologies. A RelevancyEnablerQuery
can be retrieved from
this session and mapped to this Ontology
to create a
virtual collection of relevancy enablers. The relevancy enablers may be
sequenced using the RelevancyEnablerSearchOrder
from this
session.
This Ontology
has a default query that matches any
relevancy enabler and a default search order that specifies no sequencing.
The queries may be examined using a RelevancyEnablerQueryInspector.
The query may be modified by converting the inspector back to a
RelevancyEnablerQuery.
Modifier and Type | Method and Description |
---|---|
void |
applyRelevancyEnablerQuery(RelevancyEnablerQuery relevancyEnablerQuery)
Applies a relevancy enabler query to this ontology.
|
void |
applyRelevancyEnablerSequencing(RelevancyEnablerSearchOrder relevancyEnablerSearchOrder)
Applies a relevancy enabler 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. |
RelevancyEnablerQuery |
getRelevancyEnablerQuery()
Gets a relevancy enabler query.
|
RelevancyEnablerQuery |
getRelevancyEnablerQueryFromInspector(RelevancyEnablerQueryInspector relevancyEnablerQueryInspector)
Gets a relevancy enabler query from an inspector.
|
RelevancyEnablerSearchOrder |
getRelevancyEnablerSearchOrder()
Gets a relevancy enabler search order.
|
RelevancyEnablerQueryInspector |
inspectRelevancyEnablerQuery()
Gets a relevancy enabler 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.OperationFailedException
- 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 operations to unauthorized
users. false
if smart ontology management is not
authorized, true
otherwisemandatory
- This method must be implemented. RelevancyEnablerQuery getRelevancyEnablerQuery()
mandatory
- This method must be implemented. RelevancyEnablerSearchOrder getRelevancyEnablerSearchOrder()
mandatory
- This method must be implemented. void applyRelevancyEnablerQuery(RelevancyEnablerQuery relevancyEnablerQuery) throws OperationFailedException, PermissionDeniedException
relevancyEnablerQuery
- the relevancy enabler queryNullArgumentException
- relevancyEnablerQuery
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- relevancyEnablerQuery
not of this servicemandatory
- This method must be implemented. RelevancyEnablerQueryInspector inspectRelevancyEnablerQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void applyRelevancyEnablerSequencing(RelevancyEnablerSearchOrder relevancyEnablerSearchOrder) throws OperationFailedException, PermissionDeniedException
relevancyEnablerSearchOrder
- the relevancy enabler search orderNullArgumentException
-
relevancyEnablerSearchOrder
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
-
relevancyEnablerSearchOrder
not of this servicemandatory
- This method must be implemented. RelevancyEnablerQuery getRelevancyEnablerQueryFromInspector(RelevancyEnablerQueryInspector relevancyEnablerQueryInspector)
relevancyEnablerQueryInspector
- a relevancy enabler query
inspectorNullArgumentException
-
relevancyEnablerQueryInspector
is null
UnsupportedException
-
relevancyEnablerQueryInspector
is not of this servicemandatory
- This method must be implemented.