public interface BidAuctionHouseAssignmentSession extends OsidSession
This session provides methods to re-assign Bids
to
AuctionHouse
mappings. A Bid
may appear in
multiple AuctionHouse
objects and removing the last
reference to a Bid
is the equivalent of deleting it. Each
AuctionHouse
may have its own authorizations governing who
is allowed to operate on it.
Adding a reference of a Bid
to another
AuctionHouse
is not a copy operation (eg: does not change its
Id
).
Modifier and Type | Method and Description |
---|---|
void |
assignBidToAuctionHouse(Id bidId,
Id auctionHouseId)
Adds an existing
Bid to an AuctionHouse. |
boolean |
canAssignBids()
Tests if this user can alter bid/auction house mappings.
|
boolean |
canAssignBidsToAuctionHouse(Id auctionHouseId)
Tests if this user can alter bid/auction house mappings.
|
IdList |
getAssignableAuctionHouseIds(Id auctionHouseId)
Gets a list of auction houses including and under the given auction
house node in which any bid can be assigned.
|
IdList |
getAssignableAuctionHouseIdsForBid(Id auctionHouseId,
Id bidId)
Gets a list of auction houses including and under the given auction
house node in which a specific bid can be assigned.
|
void |
unassignBidFromAuctionHouse(Id bidId,
Id auctionHouseId)
Removes a
Bid from an AuctionHouse. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canAssignBids()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer assignment operations to
unauthorized users. false
if mapping is not authorized, true
otherwisemandatory
- This method must be implemented. boolean canAssignBidsToAuctionHouse(Id auctionHouseId)
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer assignment operations to
unauthorized users.auctionHouseId
- the Id
of the
AuctionHouse
false
if mapping is not authorized, true
otherwiseNullArgumentException
- auctionHouseId
is null
mandatory
- This method must be implemented. IdList getAssignableAuctionHouseIds(Id auctionHouseId) throws OperationFailedException
auctionHouseId
- the Id
of the
AuctionHouse
Ids
NullArgumentException
- auctionHouseId
is null
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. IdList getAssignableAuctionHouseIdsForBid(Id auctionHouseId, Id bidId) throws OperationFailedException
auctionHouseId
- the Id
of the
AuctionHouse
bidId
- the Id
of the Bid
Ids
NullArgumentException
- auctionHouseId
or bidId
is null
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. void assignBidToAuctionHouse(Id bidId, Id auctionHouseId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Bid
to an AuctionHouse.
bidId
- the Id
of the Bid
auctionHouseId
- the Id
of the
AuctionHouse
AlreadyExistsException
- bidId
is
already assigned tio auctionHouseId
NotFoundException
- bidId
or
auctionHouseId
not foundNullArgumentException
- bidId
or
auctionHouseId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void unassignBidFromAuctionHouse(Id bidId, Id auctionHouseId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Bid
from an AuctionHouse.
bidId
- the Id
of the Bid
auctionHouseId
- the Id
of the
AuctionHouse
NotFoundException
- bidId
or
auctionHouseId
not found or bidId
not
assigned to auctionHouseId
NullArgumentException
- bidId
or
auctionHouseId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.