Interface AuctionProcessorRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply AuctionProcessors to
Auctions .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignAuctionProcessorToAuction(Id auctionProcessorId, Id auctionId) Adds an existingAuctionProcessorto anAuction.booleanTests if this user can alter auction processor/auction mappings.booleanTests if this user can orderAuctionProcessors.Gets theAuctionHouseassociated with this session.Gets theAuctionHouseIdassociated with this session.voidmoveAuctionProcessorAhead(Id auctionProcessorId, Id auctionId, Id referenceId) Reorders auction processors for an auction by moving the specified auction processor in front of a reference auction processor.voidmoveAuctionProcessorBehind(Id auctionProcessorId, Id auctionId, Id referenceId) Reorders auction processors for an auction by moving the specified auction processor behind a reference auction processor.voidorderAuctionProcessors(Id[] auctionProcessorIds, Id auctionId) Reorders a set of auction processors for an auction.voidunassignAuctionProcessorFromAuction(Id auctionProcessorId, Id auctionId) Removes anAuctionProcessorfrom anAuction.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.
-
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 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.
-
assignAuctionProcessorToAuction
void assignAuctionProcessorToAuction(Id auctionProcessorId, Id auctionId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingAuctionProcessorto anAuction.- Parameters:
auctionProcessorId- theIdof theAuctionProcessorauctionId- theIdof theAuction- Throws:
AlreadyExistsException-auctionProcessorIdalready applied toauctionIdNotFoundException-auctionProcessorIdorauctionIdnot foundNullArgumentException-auctionProcessorIdorauctionIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignAuctionProcessorFromAuction
void unassignAuctionProcessorFromAuction(Id auctionProcessorId, Id auctionId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes anAuctionProcessorfrom anAuction.- Parameters:
auctionProcessorId- theIdof theAuctionProcessorauctionId- theIdof theAuction- Throws:
NotFoundException-auctionProcessorIdorauctionIdnot found orauctionProcessorIdnot applied toauctionIdNullArgumentException-auctionProcessorIdorauctionIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceAuctionProcessors
boolean canSequenceAuctionProcessors()Tests if this user can orderAuctionProcessors. 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:
falseifAuctionProcessorordering is not authorized,trueotherwise- 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- theIdof anAuctionProcessorauctionId- theIdof anAuctionreferenceId- the reference auction processorId- Throws:
NotFoundException-auctionProcessorId, auctionId, orreferenceIdnot found or,auctionProcessorIdorreferenceIdnot related toauctionIdNullArgumentException-auctionProcessorId, auctionId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- 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- theIdof anAuctionProcessorauctionId- theIdof anAuctionreferenceId- the reference auction processorId- Throws:
NotFoundException-auctionProcessorId, auctionId, orreferenceIdnot found or,auctionProcessorIdorreferenceIdnot related toauctionIdNullArgumentException-auctionProcessorId, auctionId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- 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- theIdsfor a set ofAuctionProcessorsauctionId- theIdof anAuction- Throws:
NotFoundException-auctionIdnot found or, anauctionProcessorIdnot related toauctionIdNullArgumentException-auctionProcessorIdsorauctionIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-