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

This session creates and removes auction constrainers. The data for create and update is provided via the AuctionConstrainerForm.

MethodgetAuctionHouseId
Description

Gets the AuctionHouse Id associated with this session.

Returnosid.id.Id the AuctionHouse Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetAuctionHouse
Description

Gets the AuctionHouse associated with this session.

Returnosid.bidding.AuctionHouse the auction house
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanCreateAuctionConstrainer
Description

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

Returnboolean false if AuctionConstrainer creation is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodcanCreateAuctionConstrainerWithRecordTypes
Description

BiddingRulesManager.getAuctionConstrainerRecordTypes() can be used to examine which records are supported, this method tests which record(s) are required for creating a specific AuctionConstrainer. Providing an empty array tests if an AuctionConstrainer can be created with no records.

Parametersosid.type.Type[]auctionConstrainerRecordTypes array of auction constrainer record types
Returnboolean true if AuctionConstrainer creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT auctionConstrainerRecordTypes is null
Compliancemandatory This method must be implemented.
MethodgetAuctionConstrainerFormForCreate
Description

Gets the auction constrainer form for creating new auction constrainers. A new form should be requested for each create transaction.

Parametersosid.type.Type[]auctionConstrainerRecordTypes array of auction constrainer record types
Returnosid.bidding.rules.AuctionConstrainerForm the auction constrainer form
ErrorsNULL_ARGUMENT auctionConstrainerRecordTypes is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED unable to get form for requested record types
Compliancemandatory This method must be implemented.
MethodcreateAuctionConstrainer
Description

Creates a new AuctionConstrainer.

Parametersosid.bidding.rules.AuctionConstrainerFormauctionConstrainerForm the form for this AuctionConstrainer
Returnosid.bidding.rules.AuctionConstrainer the new AuctionConstrainer
ErrorsILLEGAL_STATE auctionConstrainerForm already used in a create transaction
INVALID_ARGUMENT one or more of the form elements is invalid
NULL_ARGUMENT auctionConstrainerForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED auctionConstrainerForm did not originate from getAuctionConstrainerFormForCreate()
Compliancemandatory This method must be implemented.
MethodcanUpdateAuctionConstrainers
Description

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

Returnboolean false if AuctionConstrainer modification is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetAuctionConstrainerFormForUpdate
Description

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

Parametersosid.id.IdauctionConstrainerId the Id of the AuctionConstrainer
Returnosid.bidding.rules.AuctionConstrainerForm the auction constrainer form
ErrorsNOT_FOUND auctionConstrainerId is not found
NULL_ARGUMENT auctionConstrainerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateAuctionConstrainer
Description

Updates an existing auction constrainer.

Parametersosid.bidding.rules.AuctionConstrainerFormauctionConstrainerForm the form containing the elements to be updated
ErrorsILLEGAL_STATE auctionConstrainerForm already used in an update transaction
INVALID_ARGUMENT the form contains an invalid value
NULL_ARGUMENT auctionConstrainerForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED auctionConstrainerForm did not originate from getAuctionConstrainerFormForUpdate()
Compliancemandatory This method must be implemented.
MethodcanDeleteAuctionConstrainers
Description

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

Returnboolean false if AuctionConstrainer deletion is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoddeleteAuctionConstrainer
Description

Deletes an AuctionConstrainer.

Parametersosid.id.IdauctionConstrainerId the Id of the AuctionConstrainer to remove
ErrorsNOT_FOUND auctionConstrainerId not found
NULL_ARGUMENT auctionConstrainerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageAuctionConstrainerAliases
Description

Tests if this user can manage Id aliases for auction constrainers. 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.

Returnboolean false if AuctionConstrainer aliasing is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodaliasAuctionConstrainer
Description

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

Parametersosid.id.IdauctionConstrainerId the Id of an AuctionConstrainer
osid.id.IdaliasId the alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND auctionConstrainerId not found
NULL_ARGUMENT auctionConstrainerId or aliasId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.