Interface EngineSearchSession
- All Superinterfaces:
AutoCloseable, Closeable, EngineQuerySession, OsidSession, OsidSession
This session provides methods for searching Engines . The
search query is constructed using the EngineQuery . The engine
record Type also specifies the recod for the engine query.
getEnginesByQuery() is the basic search method and returns a list
of Engine elements. A more advanced search may be performed with
getEnginesBySearch() . It accepts an EngineSearch in
addition to the query for the purpose of specifying additional options
affecting the entire search, such as ordering.
getEnginesBySearch() returns an EngineSearchResults that can be
used to access the resulting EngineList or be used to perform a
search within the result set through EngineSearch .
Engines may have an engine query record indicated by their respective
record types. The engine query record is accessed via the
EngineQuery . The returns in this session may not be cast directly to
these interfaces.
-
Method Summary
Modifier and TypeMethodDescriptiongetEngineQueryFromInspector(EngineQueryInspector engineQueryInspector) Gets an engine query from an inspector.getEnginesBySearch(EngineQuery engineQuery, EngineSearch engineSearch) Gets the search results matching the given search.Gets an engine search.Gets an engine search order.Methods inherited from interface EngineQuerySession
canSearchEngines, getEngineQuery, getEnginesByQueryModifier and TypeMethodDescriptionbooleanTests if this user can performEnginesearches.Gets an engine query.getEnginesByQuery(EngineQuery engineQuery) Gets a list ofEnginesmatching the given search.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
-
getEngineSearch
EngineSearch getEngineSearch()Gets an engine search.- Returns:
- the engine search
- Compliance:
mandatory- This method must be implemented.
-
getEngineSearchOrder
EngineSearchOrder getEngineSearchOrder()Gets an engine search order. TheEngineSearchOrderis supplied to anEngineSearchto specify the ordering of results.- Returns:
- the engine search order
- Compliance:
mandatory- This method must be implemented.
-
getEnginesBySearch
EngineSearchResults getEnginesBySearch(EngineQuery engineQuery, EngineSearch engineSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search.- Parameters:
engineQuery- the engine queryengineSearch- the engine search- Returns:
- the engine search results
- Throws:
NullArgumentException-engineQueryorengineSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-engineQueryorengineSearchis not of this service- Compliance:
mandatory- This method must be implemented.
-
getEngineQueryFromInspector
Gets an engine query from an inspector. The inspector is available from anEngineSearchResults.- Parameters:
engineQueryInspector- an engine query inspector- Returns:
- the engine query
- Throws:
NullArgumentException-engineQueryInspectorisnullUnsupportedException-engineQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-