Interface DirectionSearchSession
- All Superinterfaces:
AutoCloseable, Closeable, DirectionQuerySession, OsidSession, OsidSession
This session provides methods for searching among Direction
objects. The search query is constructed using the DirectionQuery
.
getDirectionsByQuery() is the basic search method and returns a
list of Directions . A more advanced search may be performed with
getDirectionsBySearch() .It accepts a DirectionSearch in
addition to the query for the purpose of specifying additional options
affecting the entire search, such as ordering.
getDirectionsBySearch() returns a DirectionSearchResults that can
be used to access the resulting DirectionList or be used to
perform a search within the result set through DirectionSearch .
This session defines views that offer differing behaviors for searching.
- federated cookbook view: searches include directions in cookbooks of which this cookbook is an ancestor in the cookbook hierarchy
- isolated cookbook view: searches are restricted to directions in this cookbooks
Directions may have a query record indicated by their respective
record types. The query record is accessed via the DirectionQuery
.
-
Method Summary
Modifier and TypeMethodDescriptiongetDirectionQueryFromInspector(DirectionQueryInspector directionQueryInspector) Gets a direction query.getDirectionsBySearch(DirectionQuery directionQuery, DirectionSearch directionSearch) Gets the search results matching the given search query using the given search.Gets a direction search.Gets a direction search order.Methods inherited from interface DirectionQuerySession
canSearchDirections, getCookbook, getCookbookId, getDirectionQuery, getDirectionsByQuery, useFederatedCookbookView, useIsolatedCookbookViewModifier and TypeMethodDescriptionbooleanTests if this user can performDirectionlookups.Gets theCookbookassociated with this session.Gets theCookbookIdassociated with this session.Gets a direction query.getDirectionsByQuery(DirectionQuery directionQuery) Gets a list ofDirectionsmatching the given direction query.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.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
-
getDirectionSearch
DirectionSearch getDirectionSearch()Gets a direction search.- Returns:
- the direction search
- Compliance:
mandatory- This method must be implemented.
-
getDirectionSearchOrder
DirectionSearchOrder getDirectionSearchOrder()Gets a direction search order. TheDirectionSearchOrderis supplied to aDirectionSearchto specify the ordering of results.- Returns:
- the direction search order
- Compliance:
mandatory- This method must be implemented.
-
getDirectionsBySearch
DirectionSearchResults getDirectionsBySearch(DirectionQuery directionQuery, DirectionSearch directionSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
directionQuery- the direction querydirectionSearch- the direction search- Returns:
- the direction search results
- Throws:
NullArgumentException-directionQueryordirectionSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-directionQueryordirectionSearchis not of this service- Compliance:
mandatory- This method must be implemented.
-
getDirectionQueryFromInspector
Gets a direction query. from an inspector. The inspector is available from aDirectionSearchResults.- Parameters:
directionQueryInspector- a direction query inspector- Returns:
- the direction query
- Throws:
NullArgumentException-directionQueryInspectorisnullUnsupportedException-directionQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-