Interface SubjectSmartOntologySession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A SubjectQuery can be retrieved from this session and
mapped to this Ontology to create a virtual collection of
Subjects . The entries may be sequenced using the
SubjectSearchOrder from this session.
This Ontology has a default query that matches any subject and
a default search order that specifies no sequencing. The queries may be
examined using a SubjectQueryInspector . The query may be modified
by converting the inspector back to a SubjectQuery .
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplySubjectQuery(SubjectQuery subjectQuery) Applies a subject query to this ontology.voidapplySubjectSequencing(SubjectSearchOrder subjectSearchOrder) Applies a subject search order to this ontology.booleanTests if this user can manage smart ontologies.Gets theOntologyassociated with this session.Gets theOntologyIdassociated with this session.Gets a subject query.getSubjectQueryFromInspector(SubjectQueryInspector subjectQueryInspector) Gets a subject query from an inspector.Gets a subject search order.Gets a subject query inspector for this ontology.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
-
getOntologyId
Id getOntologyId()Gets theOntologyIdassociated with this session.- Returns:
- the
Ontology Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getOntology
Gets theOntologyassociated with this session.- Returns:
- the
Ontologyassociated with this session - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageSmartOntologies
boolean canManageSmartOntologies()Tests if this user can manage smart ontologies. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer smart operations.- Returns:
falseif smart ontology methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getSubjectQuery
SubjectQuery getSubjectQuery()Gets a subject query.- Returns:
- the subject query
- Compliance:
mandatory- This method must be implemented.
-
getSubjectSearchOrder
SubjectSearchOrder getSubjectSearchOrder()Gets a subject search order.- Returns:
- the subject search order
- Compliance:
mandatory- This method must be implemented.
-
applySubjectQuery
void applySubjectQuery(SubjectQuery subjectQuery) throws OperationFailedException, PermissionDeniedException Applies a subject query to this ontology.- Parameters:
subjectQuery- the subject query- Throws:
NullArgumentException-subjectQueryisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-subjectQuerynot of this service- Compliance:
mandatory- This method must be implemented.
-
inspectSubjectQuery
SubjectQueryInspector inspectSubjectQuery() throws OperationFailedException, PermissionDeniedExceptionGets a subject query inspector for this ontology.- Returns:
- the subject query inspector
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
applySubjectSequencing
void applySubjectSequencing(SubjectSearchOrder subjectSearchOrder) throws OperationFailedException, PermissionDeniedException Applies a subject search order to this ontology.- Parameters:
subjectSearchOrder- the subject search order- Throws:
NullArgumentException-subjectSearchOrderisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-subjectSearchOrdernot of this service- Compliance:
mandatory- This method must be implemented.
-
getSubjectQueryFromInspector
Gets a subject query from an inspector.- Parameters:
subjectQueryInspector- a subject query inspector- Returns:
- the subject query
- Throws:
NullArgumentException-subjectQueryInspectorisnullUnsupportedException-subjectQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-