OSID Logo
OSID Specifications
bidding rules package
Version 3.1.0
Interfaceosid.bidding.rules.BidEnablerAuctionHouseAssignmentSession
Implementsosid.OsidSession
Used Byosid.bidding.rules.BiddingRulesManager
osid.bidding.rules.BiddingRulesProxyManager
Description

This session provides methods to re-assign BidEnabler to AuctionHouse mappings. A BidEnabler may appear in multiple AuctionHouse catalogs and removing the last reference to a BidEnabler 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 a BidEnabler to another AuctionHouse is not a copy operation (eg: does not change its Id).

MethodcanAssignBidEnablers
Description

Tests if this user can alter bid 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 a PERMISSION_DENIED. T his is intended as a hint to an application that may opt not to offer assignment operations to unauthorized users.

Returnboolean false if mapping is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodcanAssignBidEnablerToAuctionHouse
Description

Tests if this user can alter bid 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 a PERMISSION_DENIED. T his is intended as a hint to an application that may opt not to offer assignment operations to unauthorized users.

Parametersosid.id.IdauctionHouseId the Id of the AuctionHouse
Returnboolean false if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENT auctionHouseId is null
Compliancemandatory This method must be implemented.
MethodgetAssignableAuctionHouseIds
Description

Gets a list of auction houses including and under the given auction house node in which any bid enabler can be assigned.

Parametersosid.id.IdauctionHouseId the Id of the AuctionHouse
Returnosid.id.IdList list of assignable auction house Ids
ErrorsNULL_ARGUMENT auctionHouseId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetAssignableAuctionHouseIdsForBidEnabler
Description

Gets a list of auction houses including and under the given auction house node in which a specific bid enabler can be assigned.

Parametersosid.id.IdauctionHouseId the Id of the AuctionHouse
osid.id.IdbidEnablerId the Id of the BidEnabler
Returnosid.id.IdList list of assignable auction house Ids
ErrorsNULL_ARGUMENT auctionHouseId or bidEnablerId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodassignBidEnablerToAuctionHouse
Description

Adds an existing BidEnabler to an AuctionHouse.

Parametersosid.id.IdbidEnablerId the Id of the BidEnabler
osid.id.IdauctionHouseId the Id of the AuctionHouse
ErrorsALREADY_EXISTS bidEnablerId is already assigned to auctionHouseId
NOT_FOUND bidEnablerId or auctionHouseId not found
NULL_ARGUMENT bidEnablerId or auctionHouseId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodunassignBidEnablerFromAuctionHouse
Description

Removes a BidEnabler from an AuctionHouse.

Parametersosid.id.IdbidEnablerId the Id of the BidEnabler
osid.id.IdauctionHouseId the Id of the AuctionHouse
ErrorsNOT_FOUND bidEnablerId or auctionHouseId not found or bidEnablerId not assigned to auctionHouseId
NULL_ARGUMENT bidEnablerId or auctionHouseId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodreassignBidEnablerToAuctionHouse
Description

Moves a BidEnabler from one AuctionHouse to another. Mappings to other AuctionHouses are unaffected.

Parametersosid.id.IdbidEnablerId the Id of the BidEnabler
osid.id.IdfromAuctionHouseId the Id of the current AuctionHouse
osid.id.IdtoAuctionHouseId the Id of the destination AuctionHouse
ErrorsALREADY_EXISTS bidEnablerId already assigned to toAuctionHouseId
NOT_FOUND bidEnablerId, fromAuctionHouseId, or toAuctionHouseId not found or bidEnablerId not mapped to fromAuctionHouseId
NULL_ARGUMENT bidEnablerId, fromAuctionHouseId, or toAuctionHouseId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.