OSID Logo
OSID Specifications
bidding rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.bidding.rules.AuctionProcessorEnablerAdminSession
Implementsosid.OsidSession
Description

This session creates and removes auction processor enablers. The data for create and update is provided via the AuctionProcessorEnablerForm.

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.
MethodcanCreateAuctionProcessorEnabler
Description

Tests if this user can create auction processor enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating an AuctionProcessorEnabler 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 AuctionProcessorEnabler creation is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanCreateAuctionProcessorEnablerWithRecordTypes
Description

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

Parametersosid.type.Type[]auctionProcessorEnablerRecordTypesarray of auction processor enabler record types
Returnboolean true if AuctionProcessorEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT auctionProcessorEnablerRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetAuctionProcessorEnablerFormForCreate
Description

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

Parametersosid.type.Type[]auctionProcessorEnablerRecordTypesarray of auction processor enabler record types
Returnosid.bidding.rules.AuctionProcessorEnablerFormthe auction processor enabler form
ErrorsNULL_ARGUMENT auctionProcessorEnablerRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateAuctionProcessorEnabler
Description

Creates a new AuctionProcessorEnabler.

Parametersosid.bidding.rules.AuctionProcessorEnablerFormauctionProcessorEnablerFormthe form for this AuctionProcessorEnabler
Returnosid.bidding.rules.AuctionProcessorEnablerthe new AuctionProcessorEnabler
ErrorsILLEGAL_STATE auctionProcessorEnablerForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENT auctionProcessorEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED auctionProcessorEnablerForm did not originate from getAuctionProcessorEnablerFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateAuctionProcessorEnablers
Description

Tests if this user can update auction processor enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating an AuctionProcessorEnabler 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 AuctionProcessorEnabler modification is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAuctionProcessorEnablerFormForUpdate
Description

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

Parametersosid.id.IdauctionProcessorEnablerIdthe Id of the AuctionProcessorEnabler
Returnosid.bidding.rules.AuctionProcessorEnablerFormthe auction processor enabler form
ErrorsNOT_FOUND auctionProcessorEnablerId is not found
NULL_ARGUMENT auctionProcessorEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateAuctionProcessorEnabler
Description

Updates an existing auction processor enabler.

Parametersosid.bidding.rules.AuctionProcessorEnablerFormauctionProcessorEnablerFormthe form containing the elements to be updated
ErrorsILLEGAL_STATE auctionProcessorEnablerForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENT auctionProcessorEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED auctionProcessorEnablerForm did not originate from getAuctionProcessorEnablerFormForUpdate()
CompliancemandatoryThis method must be implemented.
MethodcanDeleteAuctionProcessorEnablers
Description

Tests if this user can delete auction processor enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting an AuctionProcessorEnabler 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 AuctionProcessorEnabler deletion is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoddeleteAuctionProcessorEnabler
Description

Deletes an AuctionProcessorEnabler.

Parametersosid.id.IdauctionProcessorEnablerIdthe Id of the AuctionProcessorEnabler to remove
ErrorsNOT_FOUND auctionProcessorEnablerId not found
NULL_ARGUMENT auctionProcessorEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageAuctionProcessorEnablerAliases
Description

Tests if this user can manage Id aliases for auction processor enablers. 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 AuctionProcessorEnabler aliasing is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodaliasAuctionProcessorEnabler
Description

Adds an Id to an AuctionProcessorEnabler for the purpose of creating compatibility. The primary Id of the AuctionProcessorEnabler 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 processor enabler. it is reassigned to the given auction processor enabler Id.

Parametersosid.id.IdauctionProcessorEnablerIdthe Id of an AuctionProcessorEnabler
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND auctionProcessorEnablerId not found
NULL_ARGUMENT auctionProcessorEnablerId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.