Interface AuctionConstrainerEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply
AuctionConstrainerEnablers to AuctionConstrainers . An
AuctionConstrainer with multiple AuctionConstrainerEnablers means
any positive rule evaluation across the enablers result in an effective
AuctionConstrainer .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignAuctionConstrainerEnablerToAuctionConstrainer(Id auctionConstrainerEnablerId, Id auctionConstrainerId) Adds an existingAuctionConstrainerEnablerto anAuctionConstrainer.booleanTests if this user can alter auction constrainer enabler/auction constrainer mappings.booleanTests if this user can orderAuctionConstrainerEnablers.Gets theAuctionHouseassociated with this session.Gets theAuctionHouseIdassociated with this session.voidmoveAuctionConstrainerEnablerAhead(Id auctionConstrainerEnablerId, Id auctionConstrainerId, Id referenceId) Reorders auction constrainer enablers for an auction constrainer by moving the specified auction constrainer enabler in front of a reference auction constrainer enabler.voidmoveAuctionConstrainerEnablerBehind(Id auctionConstrainerEnablerId, Id auctionConstrainerId, Id referenceId) Reorders auction constrainer enablers for an auction by moving the specified auction constrainer enabler behind a reference auction constrainer enabler.voidorderAuctionConstrainerEnablers(Id[] auctionConstrainerEnablerIds, Id auctionConstrainerId) Reorders a set of auction constrainer enablers for an auction constrainer.voidunassignAuctionConstrainerEnablerFromAuctionConstrainer(Id auctionConstrainerEnablerId, Id auctionConstrainerId) Removes anAuctionConstrainerEnablerfrom anAuctionConstrainer.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.
-
canAssignAuctionConstrainerEnablers
boolean canAssignAuctionConstrainerEnablers()Tests if this user can alter auction constrainer enabler/auction constrainer 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.
-
assignAuctionConstrainerEnablerToAuctionConstrainer
void assignAuctionConstrainerEnablerToAuctionConstrainer(Id auctionConstrainerEnablerId, Id auctionConstrainerId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingAuctionConstrainerEnablerto anAuctionConstrainer.- Parameters:
auctionConstrainerEnablerId- theIdof theAuctionConstrainerEnablerauctionConstrainerId- theIdof theAuctionConstrainer- Throws:
AlreadyExistsException-auctionConstrainerEnablerIdalready applied toauctionConstrainerIdNotFoundException-auctionConstrainerEnablerIdorauctionConstrainerIdnot foundNullArgumentException-auctionConstrainerEnablerIdorauctionConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignAuctionConstrainerEnablerFromAuctionConstrainer
void unassignAuctionConstrainerEnablerFromAuctionConstrainer(Id auctionConstrainerEnablerId, Id auctionConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes anAuctionConstrainerEnablerfrom anAuctionConstrainer.- Parameters:
auctionConstrainerEnablerId- theIdof theAuctionConstrainerEnablerauctionConstrainerId- theIdof theAuctionConstrainer- Throws:
NotFoundException-auctionConstrainerEnablerIdorauctionConstrainerIdnot found orauctionConstrainerEnablerIdnot applied toauctionConstrainerIdNullArgumentException-auctionConstrainerEnablerIdorauctionConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceAuctionConstrainerEnablers
boolean canSequenceAuctionConstrainerEnablers()Tests if this user can orderAuctionConstrainerEnablers. 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:
falseifAuctionConstrainerEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveAuctionConstrainerEnablerAhead
void moveAuctionConstrainerEnablerAhead(Id auctionConstrainerEnablerId, Id auctionConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders auction constrainer enablers for an auction constrainer by moving the specified auction constrainer enabler in front of a reference auction constrainer enabler.- Parameters:
auctionConstrainerEnablerId- theIdof anAuctionConstrainerEnablerauctionConstrainerId- theIdof anAuctionConstrainerreferenceId- the reference auction constrainer enablerId- Throws:
NotFoundException-auctionConstrainerEnablerId, auctionConstrainerId, orreferenceIdnot found or,auctionConstrainerEnablerIdorreferenceIdnot related toauctionConstrainerIdNullArgumentException-auctionConstrainerEnablerId, auctionConstrainerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveAuctionConstrainerEnablerBehind
void moveAuctionConstrainerEnablerBehind(Id auctionConstrainerEnablerId, Id auctionConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders auction constrainer enablers for an auction by moving the specified auction constrainer enabler behind a reference auction constrainer enabler.- Parameters:
auctionConstrainerEnablerId- theIdof anAuctionConstrainerEnablerauctionConstrainerId- theIdof anAuctionConstrainerreferenceId- the reference auction constrainer enablerId- Throws:
NotFoundException-auctionConstrainerEnablerId, auctionConstrainerId, orreferenceIdnot found or,auctionConstrainerEnablerIdorreferenceIdnot related toauctionConstrainerIdNullArgumentException-auctionConstrainerEnablerId, auctionConstrainerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderAuctionConstrainerEnablers
void orderAuctionConstrainerEnablers(Id[] auctionConstrainerEnablerIds, Id auctionConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of auction constrainer enablers for an auction constrainer.- Parameters:
auctionConstrainerEnablerIds- theIdsfor a set ofAuctionConstrainerEnablersauctionConstrainerId- theIdof anAuctionConstrainer- Throws:
NotFoundException-auctionConstraienrIdnot found or, anauctionConstrainerEnablerIdnot related toauctionConstrainerIdNullArgumentException-auctionConstrainerEnablerIdsorauctionConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-