Interface MapSearchSession
- All Superinterfaces:
AutoCloseable, Closeable, MapQuerySession, OsidSession, OsidSession
This session provides methods for searching among Maps . The
search query is constructed using the MapQuery .
getMapsByQuery() is the basic search method and returns a list of
Maps . A more advanced search may be performed with
getMapsBySearch() . It accepts a MapSearch in addition to the
query for the purpose of specifying additional options affecting the
entire search, such as ordering. getMapsBySearch() returns a
MapSearchResults that can be used to access the resulting
MapList or be used to perform a search within the result set through
MapSearch .
Maps may have a query record indicated by their respective record
types. The query record is accessed via the MapQuery .
-
Method Summary
Modifier and TypeMethodDescriptiongetMapQueryFromInspector(MapQueryInspector mapQueryInspector) Gets a map query from an inspector.getMapsBySearch(MapQuery mapQuery, MapSearch mapSearch) Gets the search results matching the given search query using the given search.Gets a map search.Gets a map search order.Methods inherited from interface MapQuerySession
canSearchMaps, getMapQuery, getMapsByQueryModifier and TypeMethodDescriptionbooleanTests if this user can performMapsearches.Gets a map query.getMapsByQuery(MapQuery mapQuery) Gets a list ofMapsmatching the given map query.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
-
getMapSearch
MapSearch getMapSearch()Gets a map search.- Returns:
- the map search
- Compliance:
mandatory- This method must be implemented.
-
getMapSearchOrder
MapSearchOrder getMapSearchOrder()Gets a map search order. TheMapSearchOrderis supplied to aMapSearchto specify the ordering of results.- Returns:
- the map search order
- Compliance:
mandatory- This method must be implemented.
-
getMapsBySearch
MapSearchResults getMapsBySearch(MapQuery mapQuery, MapSearch mapSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
mapQuery- the map querymapSearch- the map search- Returns:
- the returned search results
- Throws:
NullArgumentException-mapQueryormapSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-mapQueryormapSearchis not of this service- Compliance:
mandatory- This method must be implemented.
-
getMapQueryFromInspector
Gets a map query from an inspector. The inspector is available from aMapSearchResults.- Parameters:
mapQueryInspector- a map query inspector- Returns:
- the map query
- Throws:
NullArgumentException-mapQueryInspectorisnullUnsupportedException-mapQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-