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

This session creates, updates, and deletes BidEnablers . The data for create and update is provided by the consumer via the form object. OsidForms are requested for each create or update and may not be reused.

Create and update operations differ in their usage. To create a BidEnabler , a BidEnablerForm is requested using getBidEnablerFormForCreate() specifying the desired record Types or none if no record Types are needed. The returned BidEnablerForm will indicate that it is to be used with a create operation and can be used to examine metdata or validate data prior to creation. Once the BidEnablerForm is submiited to a create operation, it cannot be reused with another create operation unless the first operation was unsuccessful. Each BidEnablerForm corresponds to an attempted transaction.

For updates, BidEnablerForms are requested to the BidEnabler Id that is to be updated using getBidEnablerFormForUpdate() . Similarly, the BidEnablerForm has metadata about the data that can be updated and it can perform validation before submitting the update. The BidEnablerForm can only be used once for a successful update and cannot be reused.

The delete operations delete BidEnablers . To unmap a BidEnabler from the current AuctionHouse , the BidEnablerAuctionHouseAssignmentSession should be used. These delete operations attempt to remove the BidEnabler itself thus removing it from all known AuctionHouse catalogs.

This session includes an Id aliasing mechanism to assign an external Id to an internally assigned Id .

MethodgetAuctionHouseId
Description

Gets the AuctionHouse Id associated with this session.

Returnosid.id.Idthe AuctionHouse Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetAuctionHouse
Description

Gets the AuctionHouse associated with this session.

Returnosid.bidding.AuctionHousethe auction house
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanCreateBidEnablers
Description

Tests if this user can create BidEnablers . A return of true does not guarantee successful authorization. A return of false indicates that it is known creating a BidEnabler will result in a PERMISSION_DENIED. T his is intended as a hint to an application that may opt not to offer create operations to an unauthorized user.

Returnbooleanfalse if BidEnabler creation is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanCreateBidEnablerWithRecordTypes
Description

Tests if this user can create a single BidEnabler using the desired record types. While BiddingRulesManager.getBidEnablerRecordTypes() can be used to examine which records are supported, this method tests which record(s) are required for creating a specific BidEnabler . Providing an empty array tests if a BidEnabler can be crea ted with no records.

Parametersosid.type.Type[]bidEnablerRecordTypesarray of bid enabler record types
Returnbooleantrue if BidEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENTbidEnablerRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetBidEnablerFormForCreate
Description

Gets the bid enabler form for creating new bid enablers. A new form should be requested for each create transaction.

Parametersosid.type.Type[]bidEnablerRecordTypesarray of bid enabler record types
Returnosid.bidding.rules.BidEnablerFormthe bid enabler form
ErrorsNULL_ARGUMENTbidEnablerRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateBidEnabler
Description

Creates a new BidEnabler .

Parametersosid.bidding.rules.BidEnablerFormbidEnablerFormthe form for this BidEnabler
Returnosid.bidding.rules.BidEnablerthe new BidEnabler
ErrorsILLEGAL_STATEbidEnablerForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENTbidEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDbidEnablerForm did not originate from getBidEnablerFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateBidEnablers
Description

Tests if this user can update BidEnablers . A return of true does not guarantee successful authorization. A return of false indicates that it is known updating a BidEnabler will result in a PERMISSION_DENIED. T his is intended as a hint to an application that may opt not to offer update operations to an unauthorized user.

Returnbooleanfalse if BidEnabler modification is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetBidEnablerFormForUpdate
Description

Gets the bid enabler form for updating an existing bid enabler. A new bid enabler form should be requested for each update transaction.

Parametersosid.id.IdbidEnablerIdthe Id of the BidEnabler
Returnosid.bidding.rules.BidEnablerFormthe bid enabler form
ErrorsNOT_FOUNDbidEnablerId is not found
NULL_ARGUMENTbidEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateBidEnabler
Description

Updates an existing bid enabler.

Parametersosid.bidding.rules.BidEnablerFormbidEnablerFormthe form containing the elements to be updated
ErrorsILLEGAL_STATEbidEnablerForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENTbidEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDbidEnablerForm did not originate from getBidEnablerFormForUpdate()
CompliancemandatoryThis method must be implemented.
MethodcanDeleteBidEnablers
Description

Tests if this user can delete BidEnablers . A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting a BidEnabler will result in a PERMISSION_DENIED. T his is intended as a hint to an application that may opt not to offer delete operations to an unauthorized user.

Returnbooleanfalse if BidEnabler deletion is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoddeleteBidEnabler
Description

Deletes a BidEnabler .

Parametersosid.id.IdbidEnablerIdthe Id of the BidEnabler to remove
ErrorsNOT_FOUNDbidEnablerId not found
NULL_ARGUMENTbidEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageBidEnablerAliases
Description

Tests if this user can manage Id aliases for BidEnablers A return of true does not guarantee successful authorization. A return of false indicates that it is known changing an alias will result in a PERMISSION_DENIED .This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.

Returnbooleanfalse if BidEnabler aliasing is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodaliasBidEnabler
Description

Adds an Id to a BidEnabler for the purpose of creating compatibility. The primary Id of the BidEnabler is determined by the provider. The new Id performs as an alias to the primary Id . If the alias is a pointer to another bid enabler, it is reassigned to the given bid enabler Id .

Parametersosid.id.IdbidEnablerIdthe Id of a BidEnabler
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTSaliasId is already assigned
NOT_FOUNDbidEnablerId not found
NULL_ARGUMENTbidEnablerId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.