Interface AuctionProcessorRuleApplicationSession

All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession

public interface AuctionProcessorRuleApplicationSession extends OsidSession

This session provides methods to apply AuctionProcessors to Auctions .

  • 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.
    • canAssignAuctionProcessors

      boolean canAssignAuctionProcessors()
      Tests if this user can alter auction processor/auction 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.
    • assignAuctionProcessorToAuction

      void assignAuctionProcessorToAuction(Id auctionProcessorId, Id auctionId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
      Adds an existing AuctionProcessor to an Auction .
      Parameters:
      auctionProcessorId - the Id of the AuctionProcessor
      auctionId - the Id of the Auction
      Throws:
      AlreadyExistsException - auctionProcessorId already applied to auctionId
      NotFoundException - auctionProcessorId or auctionId not found
      NullArgumentException - auctionProcessorId or auctionId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • unassignAuctionProcessorFromAuction

      void unassignAuctionProcessorFromAuction(Id auctionProcessorId, Id auctionId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Removes an AuctionProcessor from an Auction .
      Parameters:
      auctionProcessorId - the Id of the AuctionProcessor
      auctionId - the Id of the Auction
      Throws:
      NotFoundException - auctionProcessorId or auctionId not found or auctionProcessorId not applied to auctionId
      NullArgumentException - auctionProcessorId or auctionId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • canSequenceAuctionProcessors

      boolean canSequenceAuctionProcessors()
      Tests if this user can order AuctionProcessors . 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 AuctionProcessor ordering is not authorized, true otherwise
      Compliance:
      mandatory - This method must be implemented.
    • moveAuctionProcessorAhead

      void moveAuctionProcessorAhead(Id auctionProcessorId, Id auctionId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders auction processors for an auction by moving the specified auction processor in front of a reference auction processor.
      Parameters:
      auctionProcessorId - the Id of an AuctionProcessor
      auctionId - the Id of an Auction
      referenceId - the reference auction processor Id
      Throws:
      NotFoundException - auctionProcessorId, auctionId , or referenceId not found or, auctionProcessorId or referenceId not related to auctionId
      NullArgumentException - auctionProcessorId, auctionId , or referenceId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • moveAuctionProcessorBehind

      void moveAuctionProcessorBehind(Id auctionProcessorId, Id auctionId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders auction processors for an auction by moving the specified auction processor behind a reference auction processor.
      Parameters:
      auctionProcessorId - the Id of an AuctionProcessor
      auctionId - the Id of an Auction
      referenceId - the reference auction processor Id
      Throws:
      NotFoundException - auctionProcessorId, auctionId , or referenceId not found or, auctionProcessorId or referenceId not related to auctionId
      NullArgumentException - auctionProcessorId, auctionId , or referenceId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • orderAuctionProcessors

      void orderAuctionProcessors(Id[] auctionProcessorIds, Id auctionId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders a set of auction processors for an auction.
      Parameters:
      auctionProcessorIds - the Ids for a set of AuctionProcessors
      auctionId - the Id of an Auction
      Throws:
      NotFoundException - auctionId not found or, an auctionProcessorId not related to auctionId
      NullArgumentException - auctionProcessorIds or auctionId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.