Interface AuctionConstrainerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply AuctionConstrainers to
Auctions .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignAuctionConstrainerToAuction(Id auctionConstrainerId, Id auctionId) Adds an existingAuctionConstrainerto anAuction.booleanTests if this user can alter auction constrainer/auction mappings.booleanTests if this user can orderAuctionConstrainers.Gets theAuctionHouseassociated with this session.Gets theAuctionHouseIdassociated with this session.voidmoveAuctionConstrainerAhead(Id auctionConstrainerId, Id auctionId, Id referenceId) Reorders auction constrainers for an auction by moving the specified auction constrainer in front of a reference auction constrainer.voidmoveAuctionConstrainerBehind(Id auctionConstrainerId, Id auctionId, Id referenceId) Reorders auction constrainers for an auction by moving the specified auction constrainer behind a reference auction constrainer.voidorderAuctionConstrainers(Id[] auctionConstrainerIds, Id auctionId) Reorders a set of auction constrainers for an auction.voidunassignAuctionConstrainerFromAuction(Id auctionConstrainerId, Id auctionId) Removes anAuctionConstrainerfrom 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.
-
canAssignAuctionConstrainers
boolean canAssignAuctionConstrainers()Tests if this user can alter auction constrainer/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.
-
assignAuctionConstrainerToAuction
void assignAuctionConstrainerToAuction(Id auctionConstrainerId, Id auctionId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingAuctionConstrainerto anAuction.- Parameters:
auctionConstrainerId- theIdof theAuctionConstrainerauctionId- theIdof theAuction- Throws:
AlreadyExistsException-auctionConstrainerIdalready applied toauctionIdNotFoundException-auctionConstrainerIdorauctionIdnot foundNullArgumentException-auctionConstrainerIdorauctionIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignAuctionConstrainerFromAuction
void unassignAuctionConstrainerFromAuction(Id auctionConstrainerId, Id auctionId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes anAuctionConstrainerfrom anAuction.- Parameters:
auctionConstrainerId- theIdof theAuctionConstrainerauctionId- theIdof theAuction- Throws:
NotFoundException-auctionConstrainerIdorauctionIdnot found orauctionConstrainerIdalready applied toauctionIdNullArgumentException-auctionConstrainerIdorauctionIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceAuctionConstrainers
boolean canSequenceAuctionConstrainers()Tests if this user can orderAuctionConstrainers. 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:
falseifAuctionConstrainerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveAuctionConstrainerAhead
void moveAuctionConstrainerAhead(Id auctionConstrainerId, Id auctionId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders auction constrainers for an auction by moving the specified auction constrainer in front of a reference auction constrainer.- Parameters:
auctionConstrainerId- theIdof anAuctionConstrainerauctionId- theIdof anAuctionreferenceId- the reference auction constrainerId- Throws:
NotFoundException-auctionConstrainerId, auctionId, orreferenceIdnot found or,auctionConstrainerIdorreferenceIdnot related toauctionIdNullArgumentException-auctionConstrainerId, auctionId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveAuctionConstrainerBehind
void moveAuctionConstrainerBehind(Id auctionConstrainerId, Id auctionId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders auction constrainers for an auction by moving the specified auction constrainer behind a reference auction constrainer.- Parameters:
auctionConstrainerId- theIdof anAuctionConstrainerauctionId- theIdof anAuctionreferenceId- the reference auction constrainerId- Throws:
NotFoundException-auctionConstrainerId, auctionId, orreferenceIdnot found or,auctionConstrainerIdorreferenceIdnot related toauctionIdNullArgumentException-auctionConstrainerId, auctionId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderAuctionConstrainers
void orderAuctionConstrainers(Id[] auctionConstrainerIds, Id auctionId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of auction constrainers for an auction.- Parameters:
auctionConstrainerIds- theIdsfor a set ofAuctionConstrainersauctionId- theIdof anAuction- Throws:
NotFoundException-auctionIdnot found or, anauctionConstrainerIdnot related toauctionIdNullArgumentException-auctionConstrainerIdsorauctionIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-