Interface BidEnablerRuleApplicationSession

All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession

public interface BidEnablerRuleApplicationSession extends 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 Details

    • getAuctionHouseId

      Id getAuctionHouseId()
      Gets the AuctionHouse Id associated with this session.
      Returns:
      the AuctionHouse Id associated with this session
      Compliance:
      mandatory - This method must be implemented.
    • getAuctionHouse

      Gets the AuctionHouse associated with this session.
      Returns:
      the auction house
      Throws:
      OperationFailedException - unable to complete request
      PermissionDeniedException - 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 a PERMISSION_DENIED.This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.
      Returns:
      false if mapping is not authorized, true otherwise
      Compliance:
      mandatory - This method must be implemented.
    • assignBidEnablerToBid

      void assignBidEnablerToBid(Id bidEnablerId, Id bidId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
      Adds an existing BidEnabler to a Bid.
      Parameters:
      bidEnablerId - the Id of the BidEnabler
      bidId - the Id of the Bid
      Throws:
      AlreadyExistsException - bidEnablerId already applied to bidId
      NotFoundException - bidEnablerId or bidId not found
      NullArgumentException - bidEnablerId or bidId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • unassignBidEnablerFromBid

      void unassignBidEnablerFromBid(Id bidEnablerId, Id bidId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Removes an existing BidEnabler from a Bid.
      Parameters:
      bidEnablerId - the Id of the BidEnabler
      bidId - the Id of the Bid
      Throws:
      NotFoundException - bidEnablerId or bidId not found or bidEnablerId already applied to bidId
      NullArgumentException - bidEnablerId or bidId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • canSequenceBidEnablers

      boolean canSequenceBidEnablers()
      Tests if this user can order BidEnablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.
      Returns:
      false if BidEnabler ordering is not authorized, true otherwise
      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 - the Id of the BidEnabler
      bidId - the Id of the Bid
      referenceId - the reference bid enabler Id
      Throws:
      NotFoundException - bidEnablerId, bidId, or referenceId not found or, bidEnablerId or referenceId not related to bidId
      NullArgumentException - bidEnablerId, bidId, or referenceId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - 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 - the Id of the BidEnabler
      bidId - the Id of the Bid
      referenceId - the reference bid enabler Id
      Throws:
      NotFoundException - bidEnablerId, bidId, or referenceId not found or, bidEnablerId or referenceId not related to bidId
      NullArgumentException - bidEnablerId, bidId, or referenceId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - 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 - the Ids for a set of BidEnablers
      bidId - the Id of the Bid
      Throws:
      NotFoundException - bidEnablerId, bidId, or referenceId not found or, bidEnablerId or referenceId not related to bidId
      NullArgumentException - bidEnablerIds, bidId, or referenceId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.