Interface AuctionConstrainerEnablerAuctionHouseAssignmentSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to re-assign
AuctionConstrainerEnabler to AuctionHouse mappings. An
AuctionConstrainerEnabler may appear in multiple AuctionHouse
objects and removing the last reference to an
AuctionConstrainerEnabler is the equivalent of deleting it. Each
AuctionHouse may have its own authorizations governing who is allowed to
operate on it.
Adding a reference of an AuctionConstrainerEnabler to another
AuctionHouse is not a copy operation (eg: does not change its
Id ).
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignAuctionConstrainerEnablerToAuctionHouse(Id auctionConstrainerEnablerId, Id auctionHouseId) Adds an existingAuctionConstrainerEnablerto anAuctionHouse.booleanTests if this user can alter auction constrainer enabler/auction house mappings.booleancanAssignAuctionConstrainerEnablersToAuctionHouse(Id auctionHouseId) Tests if this user can alter auction constrainer enabler/auction house mappings.getAssignableAuctionHouseIds(Id auctionHouseId) Gets a list of auction houses including and under the given auction house node in which any auction constrainer enabler can be assigned.getAssignableAuctionHouseIdsForAuctionConstrainerEnabler(Id auctionHouseId, Id auctionConstrainerEnablerId) Gets a list of auction houses including and under the given auction house node in which a specific auction constrainer enabler can be assigned.voidreassignAuctionConstrainerEnablerToAuctionHouse(Id auctionConstrainerEnablerId, Id fromAuctionHouseId, Id toAuctionHouseId) Moves anAuctionConstrainerEnablerfrom oneAuctionHouseto another.voidunassignAuctionConstrainerEnablerFromAuctionHouse(Id auctionConstrainerEnablerId, Id auctionHouseId) Removes anAuctionConstrainerEnablerfrom anAuctionHouse.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
-
canAssignAuctionConstrainerEnablers
boolean canAssignAuctionConstrainerEnablers()Tests if this user can alter auction constrainer enabler/auction house 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.
-
canAssignAuctionConstrainerEnablersToAuctionHouse
Tests if this user can alter auction constrainer enabler/auction house 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.- Parameters:
auctionHouseId- theIdof theAuctionHouse- Returns:
falseif mapping is not authorized,trueotherwise- Throws:
NullArgumentException-auctionHouseIdisnull- Compliance:
mandatory- This method must be implemented.
-
getAssignableAuctionHouseIds
Gets a list of auction houses including and under the given auction house node in which any auction constrainer enabler can be assigned.- Parameters:
auctionHouseId- theIdof theAuctionHouse- Returns:
- list of assignable auction house
Ids - Throws:
NullArgumentException-auctionHouseIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getAssignableAuctionHouseIdsForAuctionConstrainerEnabler
IdList getAssignableAuctionHouseIdsForAuctionConstrainerEnabler(Id auctionHouseId, Id auctionConstrainerEnablerId) throws OperationFailedException Gets a list of auction houses including and under the given auction house node in which a specific auction constrainer enabler can be assigned.- Parameters:
auctionHouseId- theIdof theAuctionHouseauctionConstrainerEnablerId- theIdof theAuctionConstrainerEnabler- Returns:
- list of assignable auction house
Ids - Throws:
NullArgumentException-auctionHouseIdorauctionConstrainerEnablerIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
assignAuctionConstrainerEnablerToAuctionHouse
void assignAuctionConstrainerEnablerToAuctionHouse(Id auctionConstrainerEnablerId, Id auctionHouseId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingAuctionConstrainerEnablerto anAuctionHouse.- Parameters:
auctionConstrainerEnablerId- theIdof theAuctionConstrainerEnablerauctionHouseId- theIdof theAuctionHouse- Throws:
AlreadyExistsException-auctionConstrainerEnablerIdalready assigned toauctionHouseIdNotFoundException-auctionConstrainerEnablerIdorauctionHouseIdnot foundNullArgumentException-auctionConstrainerEnablerIdorauctionHouseIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignAuctionConstrainerEnablerFromAuctionHouse
void unassignAuctionConstrainerEnablerFromAuctionHouse(Id auctionConstrainerEnablerId, Id auctionHouseId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes anAuctionConstrainerEnablerfrom anAuctionHouse.- Parameters:
auctionConstrainerEnablerId- theIdof theAuctionConstrainerEnablerauctionHouseId- theIdof theAuctionHouse- Throws:
NotFoundException-auctionConstrainerEnablerIdorauctionHouseIdnot found orauctionConstrainerEnablerIdalready assigned toauctionHouseIdNullArgumentException-auctionConstrainerEnablerIdorauctionHouseIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
reassignAuctionConstrainerEnablerToAuctionHouse
void reassignAuctionConstrainerEnablerToAuctionHouse(Id auctionConstrainerEnablerId, Id fromAuctionHouseId, Id toAuctionHouseId) throws NotFoundException, OperationFailedException, PermissionDeniedException Moves anAuctionConstrainerEnablerfrom oneAuctionHouseto another. Mappings to otherAuctionHousesare unaffected.- Parameters:
auctionConstrainerEnablerId- theIdof theAuctionConstrainerEnablerfromAuctionHouseId- theIdof the currentAuctionHousetoAuctionHouseId- theIdof the destinationAuctionHouse- Throws:
NotFoundException-auctionConstrainerEnablerId, fromAuctionHouseId, ortoAuctionHouseIdnot found orauctionConstrainerEnablerIdnot mapped tofromAuctionHouseIdNullArgumentException-auctionConstrainerEnablerId, fromAuctionHouseId, ortoAuctionHouseIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-