public interface AuctionAuctionHouseSession extends OsidSession
This session provides methods to retrieve Auction
to
AuctionHouse
mappings. An Auction
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:
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupAuctionAuctionHouseMappings()
Tests if this user can perform lookups of auction/auction house
mappings.
|
IdList |
getAuctionHouseIdsByAuction(Id auctionId)
Gets the
AuctionHouse Ids mapped to an
Auction. |
AuctionHouseList |
getAuctionHousesByAuction(Id auctionId)
Gets the
AuctionHouses mapped to an Auction. |
IdList |
getAuctionIdsByAuctionHouse(Id auctionHouseId)
Gets the list of
Auction Ids associated with an
AuctionHouse. |
IdList |
getAuctionIdsByAuctionHouses(IdList auctionHouseIds)
Gets the list of
Auction Ids corresponding to a list of
Auction Houses. |
AuctionList |
getAuctionsByAuctionHouse(Id auctionHouseId)
Gets the list of
Auctions associated with an
AuctionHouse. |
AuctionList |
getAuctionsByAuctionHouses(IdList auctionHouseIds)
Gets the list of
Auction corresponding to a list of
Auction Houses. |
void |
useComparativeAuctionAuctionHouseView()
The returns from the lookup methods may omit or translate elements
based on this session, such as authorization, and not result in an
error.
|
void |
usePlenaryAuctionAuctionHouseView()
A complete view of the
Auction and AuctionHouse
returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canLookupAuctionAuctionHouseMappings()
PERMISSION_DENIED.
This is intended as a hint to an application that may opt not
to offer lookup operations to unauthorized users. false
if looking up mappings is not authorized,
true
otherwisemandatory
- This method must be implemented. void useComparativeAuctionAuctionHouseView()
mandatory
- This method is must be implemented. void usePlenaryAuctionAuctionHouseView()
Auction
and AuctionHouse
returns 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.mandatory
- This method is must be implemented. IdList getAuctionIdsByAuctionHouse(Id auctionHouseId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Auction Ids
associated with an
AuctionHouse.
auctionHouseId
- Id
of the AuctionHouse
Ids
NotFoundException
- auctionHouseId
is
not foundNullArgumentException
- auctionHouseId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. AuctionList getAuctionsByAuctionHouse(Id auctionHouseId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Auctions
associated with an
AuctionHouse.
auctionHouseId
- Id
of the AuctionHouse
NotFoundException
- auctionHouseId
is
not foundNullArgumentException
- auctionHouseId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getAuctionIdsByAuctionHouses(IdList auctionHouseIds) throws OperationFailedException, PermissionDeniedException
Auction Ids
corresponding to a list of
Auction Houses.
auctionHouseIds
- list of auction house Ids
Ids
NullArgumentException
- auctionHouseIds
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. AuctionList getAuctionsByAuctionHouses(IdList auctionHouseIds) throws OperationFailedException, PermissionDeniedException
Auction
corresponding to a list of
Auction Houses.
auctionHouseIds
- list of auction house Ids
NullArgumentException
- auctionHouseIds
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getAuctionHouseIdsByAuction(Id auctionId) throws NotFoundException, OperationFailedException, PermissionDeniedException
AuctionHouse
Ids
mapped to an
Auction.
auctionId
- Id
of an Auction
NotFoundException
- auctionId
is not
foundNullArgumentException
- auctionId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. AuctionHouseList getAuctionHousesByAuction(Id auctionId) throws NotFoundException, OperationFailedException, PermissionDeniedException
AuctionHouses
mapped to an Auction.
auctionId
- Id
of an Auction
NotFoundException
- auctionId
is not
foundNullArgumentException
- auctionId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.