Interface BidSearchSession
- All Superinterfaces:
AutoCloseable, BidQuerySession, Closeable, OsidSession, OsidSession
This session provides methods for searching among Bids . The
search query is constructed using the BidQuery .
getBidsByQuery() is the basic search method and returns a list of
Bids . A more advanced search may be performed with
getBidsBySearch() . It accepts a BidSearch in addition to the
query for the purpose of specifying additional options affecting the
entire search, such as ordering. getBidsBySearch() returns a
BidSearchResults that can be used to access the resulting
BidList or be used to perform a search within the result set through
BidSearch .
This session defines views that offer differing behaviors for searching.
- federated auction house view: searches include bids in auction houses of which this auction house is an ancestor in the auction house hierarchy
- isolated auction house view: searches are restricted to bids in this auction house
Bids may have a query record indicated by their respective record
types. The query record is accessed via the BidQuery .
-
Method Summary
Modifier and TypeMethodDescriptiongetBidQueryFromInspector(BidQueryInspector bidQueryInspector) Gets a bid query from an inspector.getBidsBySearch(BidQuery bidQuery, BidSearch bidSearch) Gets the search results matching the given search query using the given search.Gets a bid search.Gets a bid search order.Methods inherited from interface BidQuerySession
canSearchBids, getAuctionHouse, getAuctionHouseId, getBidQuery, getBidsByQuery, useFederatedAuctionHouseView, useIsolatedAuctionHouseViewModifier and TypeMethodDescriptionbooleanTests if this user can performBidlookups.Gets theAuctionHouseassociated with this session.Gets theAuctionHouseIdassociated with this session.Gets a bid query.getBidsByQuery(BidQuery bidQuery) Gets a list ofBidsmatching the given search.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
-
getBidSearch
BidSearch getBidSearch()Gets a bid search.- Returns:
- the bid search
- Compliance:
mandatory- This method must be implemented.
-
getBidSearchOrder
BidSearchOrder getBidSearchOrder()Gets a bid search order. TheBidSearchOrderis supplied to aBidSearchto specify the ordering of results.- Returns:
- the bid search order
- Compliance:
mandatory- This method must be implemented.
-
getBidsBySearch
BidSearchResults getBidsBySearch(BidQuery bidQuery, BidSearch bidSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
bidQuery- the bid querybidSearch- the bid search- Returns:
- the returned search results
- Throws:
NullArgumentException-bidQueryorbidSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-bidQueryorbidSearchis not of this service- Compliance:
mandatory- This method must be implemented.
-
getBidQueryFromInspector
Gets a bid query from an inspector. The inspector is available from aBidSearchResults.- Parameters:
bidQueryInspector- a bid query inspector- Returns:
- the bid query
- Throws:
NullArgumentException-bidQueryInspectorisnullUnsupportedException-bidQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-