Interface BidLookupSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods for retrieving Bid relationships.
This session defines views that offer differing behaviors when retrieving multiple objects.
- comparative view: elements may be silently omitted or re-ordered
- plenary view: provides a complete set or is an error condition
- isolated auction house view: All bid methods in this session
operate, retrieve and pertain to bids defined explicitly in the
current auction house. Using an isolated view is useful for managing
Bidswith theBidAdminSession. - federated auction house view: All bid methods in this session operate, retrieve and pertain to all bids defined in this auction house and any other bids implicitly available in this auction house through auction house inheritence.
- effective bid view: All bid lookup methods return bids where the current date falls in between the effective dates inclusive.
- any effective bid view: Bids of any effective date are returned from methods.
Generally, the comparative view should be used for most applications
as it permits operation even if there is data that cannot be accessed. The
methods useFederatedAuctionHouseView() and
useIsolatedAuctionHouseView() behave as a radio group and one should be
selected before invoking any lookup methods.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this user can performBidlookups.Gets theAuctionHouseassociated with this session.Gets theAuctionHouseIdassociated with this session.Gets theBidspecified by itsId.getBids()Gets allBids.getBidsByGenusType(Type bidGenusType) Gets aBidListcorresponding to the given bid genusTypewhich does not include bids of genus types derived from the specifiedType.getBidsByIds(IdList bidIds) Gets aBidListcorresponding to the givenIdList.getBidsByParentGenusType(Type bidGenusType) Gets aBidListcorresponding to the given bid genusTypeand include any additional bids with genus types derived from the specifiedType.getBidsByRecordType(Type bidRecordType) Gets aBidListcontaining the given bid recordType.getBidsForAuction(Id auctionId) Gets a list of bids for an auction.getBidsForAuctionAndBidder(Id auctionId, Id resourceId) Gets a list of bids for an auction and bidder.getBidsForAuctionAndBidderOnDate(Id auctionId, Id resourceId, DateTime from, DateTime to) Gets a list of bids for an auction and bidder and effective during the entire given date range inclusive but not confined to the date range.getBidsForAuctionOnDate(Id auctionId, DateTime from, DateTime to) Gets a list of bids for an auction and effective during the entire given date range inclusive but not confined to the date range.getBidsForBidder(Id resourceId) Gets a list of bids for a bidder.getBidsForBidderOnDate(Id resourceId, DateTime from, DateTime to) Gets a list of bids for a bidder and effective during the entire given date range inclusive but not confined to the date range.getBidsOnDate(DateTime from, DateTime to) Gets aBidListeffective during the entire given date range inclusive but not confined to the date range.Gets all winningBids.getWinningBidsForAuction(Id auctionId) Gets a list of all winning bids for an auction.getWinningBidsForAuctionOnDate(Id auctionId, DateTime from, DateTime to) Gets a list of winning bids for an auction and effectiveduring the entire given date range inclusive but not confined to the date range.getWinningBidsForBidder(Id resourceId) Gets a list of all winning bids for a bidder.getWinningBidsForBidderOnDate(Id resourceId, DateTime from, DateTime to) Gets a list of winning bids for a bidder and effective during the entire given date range inclusive but not confined to the date range.getWinningBidsOnDate(DateTime from, DateTime to) Gets a list of all winning bids effective during the entire given date range inclusive but not confined to the date range.voidAll bids of any effective dates are returned by methods in this session.voidThe returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.voidOnly bids whose effective dates are current are returned by methods in this session.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.voidA complete view of theBidreturns is desired.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
-
getAuctionHouseId
Id getAuctionHouseId()Gets theAuctionHouseIdassociated with this session.- Returns:
- the
AuctionHouse Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getAuctionHouse
Gets theAuctionHouseassociated with this session.- Returns:
- the auction house
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canLookupBids
boolean canLookupBids()Tests if this user can performBidlookups. 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 lookup operations to unauthorized users.- Returns:
falseif lookup methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
useComparativeBidView
void useComparativeBidView()The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.- Compliance:
mandatory- This method is must be implemented.
-
usePlenaryBidView
void usePlenaryBidView()A complete view of theBidreturns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.- Compliance:
mandatory- This method is must be implemented.
-
useFederatedAuctionHouseView
void useFederatedAuctionHouseView()Federates the view for methods in this session. A federated view will include bids in auction houses which are children of this auction house in the auction house hierarchy.- Compliance:
mandatory- This method is must be implemented.
-
useIsolatedAuctionHouseView
void useIsolatedAuctionHouseView()Isolates the view for methods in this session. An isolated view restricts lookups to this auction house only.- Compliance:
mandatory- This method is must be implemented.
-
useEffectiveBidView
void useEffectiveBidView()Only bids whose effective dates are current are returned by methods in this session.- Compliance:
mandatory- This method is must be implemented.
-
useAnyEffectiveBidView
void useAnyEffectiveBidView()All bids of any effective dates are returned by methods in this session.- Compliance:
mandatory- This method is must be implemented.
-
getBid
Gets theBidspecified by itsId. In plenary mode, the exactIdis found or aNOT_FOUNDresults. Otherwise, the returnedBidmay have a differentIdthan requested, such as the case where a duplicateIdwas assigned to aBidand retained for compatibility. In effective mode, bids are returned that are currently effective. In any effective mode, effective bids and those currently expired are returned.- Parameters:
bidId-Idof theBid- Returns:
- the bid
- Throws:
NotFoundException-bidIdnot foundNullArgumentException-bidIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method is must be implemented.
-
getBidsByIds
BidList getBidsByIds(IdList bidIds) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets aBidListcorresponding to the givenIdList. In plenary mode, the returned list contains all of the bids specified in theIdlist, in the order of the list, including duplicates, or an error results if anIdin the supplied list is not found or inaccessible. Otherwise, inaccessibleBidsmay be omitted from the list and may present the elements in any order including returning a unique set. In effective mode, bids are returned that are currently effective. In any effective mode, effective bids and those currently expired are returned.- Parameters:
bidIds- the list ofIdsto retrieve- Returns:
- the returned
Bidlist - Throws:
NotFoundException- anId wasnot foundNullArgumentException-bidIdsisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getBidsByGenusType
BidList getBidsByGenusType(Type bidGenusType) throws OperationFailedException, PermissionDeniedException Gets aBidListcorresponding to the given bid genusTypewhich does not include bids of genus types derived from the specifiedType. In plenary mode, the returned list contains all known bids or an error results. Otherwise, the returned list may contain only those bids that are accessible through this session. In effective mode, bids are returned that are currently effective. In any effective mode, effective bids and those currently expired are returned.- Parameters:
bidGenusType- a bid genus type- Returns:
- the returned
Bidlist - Throws:
NullArgumentException-bidGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getBidsByParentGenusType
BidList getBidsByParentGenusType(Type bidGenusType) throws OperationFailedException, PermissionDeniedException Gets aBidListcorresponding to the given bid genusTypeand include any additional bids with genus types derived from the specifiedType. In plenary mode, the returned list contains all known bids or an error results. Otherwise, the returned list may contain only those bids that are accessible through this session. In effective mode, bids are returned that are currently effective. In any effective mode, effective bids and those currently expired are returned.- Parameters:
bidGenusType- a bid genus type- Returns:
- the returned
Bidlist - Throws:
NullArgumentException-bidGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getBidsByRecordType
BidList getBidsByRecordType(Type bidRecordType) throws OperationFailedException, PermissionDeniedException Gets aBidListcontaining the given bid recordType. In plenary mode, the returned list contains all known bids or an error results. Otherwise, the returned list may contain only those bids that are accessible through this session. In effective mode, bids are returned that are currently effective. In any effective mode, effective bids and those currently expired are returned.- Parameters:
bidRecordType- a bid record type- Returns:
- the returned
Bidlist - Throws:
NullArgumentException-bidRecordTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getBidsOnDate
BidList getBidsOnDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets aBidListeffective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known bids or an error results. Otherwise, the returned list may contain only those bids that are accessible through this session. In effective mode, bids are returned that are currently effective. In any effective mode, effective bids and those currently expired are returned.- Parameters:
from- start of date rangeto- end of date range- Returns:
- the returned
Bidlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getBidsForAuction
Gets a list of bids for an auction. In plenary mode, the returned list contains all known auctions or an error results. Otherwise, the returned list may contain only those auctions that are accessible through this session. In effective mode, bids are returned that are currently effective. In any effective mode, effective bids and those currently expired are returned.- Parameters:
auctionId- an auctionId- Returns:
- the returned
Bidlist - Throws:
NullArgumentException-auctionIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getBidsForAuctionOnDate
BidList getBidsForAuctionOnDate(Id auctionId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of bids for an auction and effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known bids or an error results. Otherwise, the returned list may contain only those bids that are accessible through this session. In effective mode, bids are returned that are currently effective. In any effective mode, effective bids and those currently expired are returned.- Parameters:
auctionId- an auctionIdfrom- start of date rangeto- end of date range- Returns:
- the returned
Bidlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-auctionId, from, ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getBidsForBidder
Gets a list of bids for a bidder. In plenary mode, the returned list contains all known bids or an error results. Otherwise, the returned list may contain only those bids that are accessible through this session. In effective mode, bids are returned that are currently effective. In any effective mode, effective bids and those currently expired are returned.- Parameters:
resourceId- a resourceId- Returns:
- the returned C
ommissionlist - Throws:
NullArgumentException-resourceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getBidsForBidderOnDate
BidList getBidsForBidderOnDate(Id resourceId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of bids for a bidder and effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known bids or an error results. Otherwise, the returned list may contain only those bids that are accessible through this session. In effective mode, bids are returned that are currently effective. In any effective mode, effective bids and those currently expired are returned.- Parameters:
resourceId- a resourceIdfrom- start of date rangeto- end of date range- Returns:
- the returned C
ommissionlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-resourceId, from, ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getBidsForAuctionAndBidder
BidList getBidsForAuctionAndBidder(Id auctionId, Id resourceId) throws OperationFailedException, PermissionDeniedException Gets a list of bids for an auction and bidder. In plenary mode, the returned list contains all known bids or an error results. Otherwise, the returned list may contain only those bids that are accessible through this session. In effective mode, bids are returned that are currently effective. In any effective mode, effective bids and those currently expired are returned.- Parameters:
auctionId- an auctionIdresourceId- a resourceId- Returns:
- the returned C
ommissionlist - Throws:
NullArgumentException-auctionIdorresourceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getBidsForAuctionAndBidderOnDate
BidList getBidsForAuctionAndBidderOnDate(Id auctionId, Id resourceId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of bids for an auction and bidder and effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known bids or an error results. Otherwise, the returned list may contain only those bids that are accessible through this session. In effective mode, bids are returned that are currently effective. In any effective mode, effective bids and those currently expired are returned.- Parameters:
auctionId- an auctionIdresourceId- a resourceIdfrom- start of date rangeto- end of date range- Returns:
- the returned C
ommissionlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-auctionId, resourceId, from, ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getWinningBids
Gets all winningBids. In plenary mode, the returned list contains all known bids or an error results. Otherwise, the returned list may contain only those bids that are accessible through this session. In both cases, the order of the set is by start effective date. In effective mode, bids are returned that are currently effective. In any effective mode, effective bids and those currently expired are returned.- Returns:
- a list of
Bids - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getWinningBidsOnDate
BidList getWinningBidsOnDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of all winning bids effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known bids or an error results. Otherwise, the returned list may contain only those bids that are accessible through this session. In both cases, the order of the set is by the start of the effective date. In effective mode, bids are returned that are currently effective. In any effective mode, effective bids and those currently expired are returned.- Parameters:
from- start of date rangeto- end of date range- Returns:
- the returned
Bidlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getWinningBidsForAuction
BidList getWinningBidsForAuction(Id auctionId) throws OperationFailedException, PermissionDeniedException Gets a list of all winning bids for an auction. In plenary mode, the returned list contains all known auctions or an error results. Otherwise, the returned list may contain only those auctions that are accessible through this session. In effective mode, bids are returned that are currently effective. In any effective mode, effective bids and those currently expired are returned.- Parameters:
auctionId- an auctionId- Returns:
- the returned
Bidlist - Throws:
NullArgumentException-auctionIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getWinningBidsForAuctionOnDate
BidList getWinningBidsForAuctionOnDate(Id auctionId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of winning bids for an auction and effectiveduring the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known bids or an error results. Otherwise, the returned list may contain only those bids that are accessible through this session. In effective mode, bids are returned that are currently effective. In any effective mode, effective bids and those currently expired are returned.- Parameters:
auctionId- an auctionIdfrom- start of date rangeto- end of date range- Returns:
- the returned
Bidlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-auctionId, from, ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getWinningBidsForBidder
BidList getWinningBidsForBidder(Id resourceId) throws OperationFailedException, PermissionDeniedException Gets a list of all winning bids for a bidder. In plenary mode, the returned list contains all known auctions or an error results. Otherwise, the returned list may contain only those auctions that are accessible through this session. In effective mode, bids are returned that are currently effective. In any effective mode, effective bids and those currently expired are returned.- Parameters:
resourceId- a resourceIdId- Returns:
- the returned
Bidlist - Throws:
NullArgumentException-resourceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getWinningBidsForBidderOnDate
BidList getWinningBidsForBidderOnDate(Id resourceId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of winning bids for a bidder and effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known bids or an error results. Otherwise, the returned list may contain only those bids that are accessible through this session. In effective mode, bids are returned that are currently effective. In any effective mode, effective bids and those currently expired are returned.- Parameters:
resourceId- a resourceIdfrom- start of date rangeto- end of date range- Returns:
- the returned C
ommissionlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-resourceId, from, ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getBids
Gets allBids. In plenary mode, the returned list contains all known bids or an error results. Otherwise, the returned list may contain only those bids that are accessible through this session. In effective mode, bids are returned that are currently effective. In any effective mode, effective bids and those currently expired are returned.- Returns:
- a list of
Bids - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-