Interface BidEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply BidEnablers to
Bids . Multiple BidEnablers applied to an Bid may be
sequenced such that the first positive evaluation results in the
BidEnablers used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignBidEnablerToBid(Id bidEnablerId, Id bidId) Adds an existingBidEnablerto aBid.booleanTests if this user can alter bid enabler/bid mappings.booleanTests if this user can orderBidEnablers.Gets theAuctionHouseassociated with this session.Gets theAuctionHouseIdassociated with this session.voidmoveBidEnablerAhead(Id bidEnablerId, Id bidId, Id referenceId) Reorders bid enablers for a bid by moving the specified bid enabler in front of a reference bid enabler.voidmoveBidEnablerBehind(Id bidEnablerId, Id bidId, Id referenceId) Reorders bid enablers for a bid by moving the specified bid enabler behind a reference bid enabler.voidorderBidEnablers(Id[] bidEnablerIds, Id bidId) Reorders a set of bid enablers for a bid.voidunassignBidEnablerFromBid(Id bidEnablerId, Id bidId) Removes an existingBidEnablerfrom aBid.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.
-
canAssignBidEnablers
boolean canAssignBidEnablers()Tests if this user can alter bid enabler/bid mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping 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 mapping is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
assignBidEnablerToBid
void assignBidEnablerToBid(Id bidEnablerId, Id bidId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingBidEnablerto aBid.- Parameters:
bidEnablerId- theIdof theBidEnablerbidId- theIdof theBid- Throws:
AlreadyExistsException-bidEnablerIdalready applied tobidIdNotFoundException-bidEnablerIdorbidIdnot foundNullArgumentException-bidEnablerIdorbidIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignBidEnablerFromBid
void unassignBidEnablerFromBid(Id bidEnablerId, Id bidId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingBidEnablerfrom aBid.- Parameters:
bidEnablerId- theIdof theBidEnablerbidId- theIdof theBid- Throws:
NotFoundException-bidEnablerIdorbidIdnot found orbidEnablerIdalready applied tobidIdNullArgumentException-bidEnablerIdorbidIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceBidEnablers
boolean canSequenceBidEnablers()Tests if this user can orderBidEnablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.- Returns:
falseifBidEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveBidEnablerAhead
void moveBidEnablerAhead(Id bidEnablerId, Id bidId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders bid enablers for a bid by moving the specified bid enabler in front of a reference bid enabler.- Parameters:
bidEnablerId- theIdof theBidEnablerbidId- theIdof theBidreferenceId- the reference bid enablerId- Throws:
NotFoundException-bidEnablerId, bidId, orreferenceIdnot found or,bidEnablerIdorreferenceIdnot related tobidIdNullArgumentException-bidEnablerId, bidId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveBidEnablerBehind
void moveBidEnablerBehind(Id bidEnablerId, Id bidId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders bid enablers for a bid by moving the specified bid enabler behind a reference bid enabler.- Parameters:
bidEnablerId- theIdof theBidEnablerbidId- theIdof theBidreferenceId- the reference bid enablerId- Throws:
NotFoundException-bidEnablerId, bidId, orreferenceIdnot found or,bidEnablerIdorreferenceIdnot related tobidIdNullArgumentException-bidEnablerId, bidId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderBidEnablers
void orderBidEnablers(Id[] bidEnablerIds, Id bidId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of bid enablers for a bid.- Parameters:
bidEnablerIds- theIdsfor a set ofBidEnablersbidId- theIdof theBid- Throws:
NotFoundException-bidEnablerId, bidId, orreferenceIdnot found or,bidEnablerIdorreferenceIdnot related tobidIdNullArgumentException-bidEnablerIds, bidId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-