Interface BidAuctionHouseSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to retrieve Bid to
AuctionHouse mappings. A Bid may appear in multiple
AuctionHouse objects. Each auction house may have its own authorizations
governing who is allowed to look at it.
This lookup session defines several views:
- comparative view: elements may be silently omitted or re-ordered
- plenary view: provides a complete result set or is an error condition
Like all OsidSessions, BidAuctionHouseSessions are
dedicated to single processing threads and a single authenticated user.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this user can perform lookups of bid/auction house mappings.getAuctionHouseIdsByBid(Id bidId) Gets theAuctionHouseIdsmapped to aBid.getAuctionHousesByBid(Id bidId) Gets theAuctionHousesmapped to aBid.getBidIdsByAuctionHouse(Id auctionHouseId) Gets the list ofBid Idsassociated with anAuctionHouse.getBidIdsByAuctionHouses(IdList auctionHouseIds) Gets the list ofBid Idscorresponding to a list ofAuctionHouses.getBidsByAuctionHouse(Id auctionHouseId) Gets the list ofBidsassociated with anAuctionHouse.getBidsByAuctionHouses(IdList auctionHouseIds) Gets the list ofBidcorresponding to a list ofAuctionHouses.voidThe returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.voidA complete view of theBidandAuctionHousereturns is desired.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatTypes, getLocales, isAuthenticated, startTransaction, supportsTransactions
-
Method Details
-
canLookupBidAuctionHouseMappings
boolean canLookupBidAuctionHouseMappings()Tests if this user can perform lookups of bid/auction house mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known lookup 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 looking up mappings is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
useComparativeBidAuctionHouseView
void useComparativeBidAuctionHouseView()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 must be implemented.
-
usePlenaryBidAuctionHouseView
void usePlenaryBidAuctionHouseView()A complete view of theBidandAuctionHousereturns 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 must be implemented.
-
getBidIdsByAuctionHouse
IdList getBidIdsByAuctionHouse(Id auctionHouseId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the list ofBid Idsassociated with anAuctionHouse.- Parameters:
auctionHouseId-Idof theAuctionHouse- Returns:
- list of related bid
Ids - Throws:
NotFoundException-auctionHouseIdis not foundNullArgumentException-auctionHouseIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getBidsByAuctionHouse
BidList getBidsByAuctionHouse(Id auctionHouseId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the list ofBidsassociated with anAuctionHouse.- Parameters:
auctionHouseId-Idof theAuctionHouse- Returns:
- list of related bids
- Throws:
NotFoundException-auctionHouseIdis not foundNullArgumentException-auctionHouseIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getBidIdsByAuctionHouses
IdList getBidIdsByAuctionHouses(IdList auctionHouseIds) throws OperationFailedException, PermissionDeniedException Gets the list ofBid Idscorresponding to a list ofAuctionHouses.- Parameters:
auctionHouseIds- list of auction houseIds- Returns:
- list of bid
Ids - Throws:
NullArgumentException-auctionHouseIdsisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getBidsByAuctionHouses
BidList getBidsByAuctionHouses(IdList auctionHouseIds) throws OperationFailedException, PermissionDeniedException Gets the list ofBidcorresponding to a list ofAuctionHouses.- Parameters:
auctionHouseIds- list of auction houseIds- Returns:
- list of bids
- Throws:
NullArgumentException-auctionHouseIdsisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getAuctionHouseIdsByBid
IdList getAuctionHouseIdsByBid(Id bidId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets theAuctionHouseIdsmapped to aBid.- Parameters:
bidId-Idof aBid- Returns:
- list of auction houses
- Throws:
NotFoundException-bidIdis not foundNullArgumentException-bidIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getAuctionHousesByBid
AuctionHouseList getAuctionHousesByBid(Id bidId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets theAuctionHousesmapped to aBid.- Parameters:
bidId-Idof aBid- Returns:
- list of auction houses
- Throws:
NotFoundException-bidIdis not foundNullArgumentException-bidIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-