Interface AuctionProcessorAdminSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session creates and removes auction processors. The data for
create and update is provided via the AuctionProcessorForm .
-
Method Summary
Modifier and TypeMethodDescriptionvoidaliasAuctionProcessor(Id auctionProcessorId, Id aliasId) Adds anIdto anAuctionProcessorfor the purpose of creating compatibility.booleanTests if this user can create auction processors.booleancanCreateAuctionProcessorWithRecordTypes(Type[] auctionProcessorRecordTypes) Tests if this user can create a singleAuctionProcessorusing the desired record types.booleanTests if this user can delete auction processors.booleanTests if this user can manageIdaliases for auction processors.booleanTests if this user can update auction processors.createAuctionProcessor(AuctionProcessorForm auctionProcessorForm) Creates a newAuctionProcessor.voiddeleteAuctionProcessor(Id auctionProcessorId) Deletes anAuctionProcessor.Gets theAuctionHouseassociated with this session.Gets theAuctionHouseIdassociated with this session.getAuctionProcessorFormForCreate(Type[] auctionProcessorRecordTypes) Gets the auction processor form for creating new auction processors.getAuctionProcessorFormForUpdate(Id auctionProcessorId) Gets the auction processor form for updating an existing auction processor.voidupdateAuctionProcessor(AuctionProcessorForm auctionProcessorForm) Updates an existing auction processor.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
-
getAuctionHouseId
Id getAuctionHouseId()Gets theAuctionHouseIdassociated with this session.- Returns:
- the
AuctionHouse Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getAuctionHouse
Gets theAuctionHouseassociated with this session.- Returns:
- the auction house
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canCreateAuctionProcessor
boolean canCreateAuctionProcessor()Tests if this user can create auction processors. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating anAuctionProcessorwill result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer create operations to an unauthorized user.- Returns:
falseifAuctionProcessorcreation is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canCreateAuctionProcessorWithRecordTypes
Tests if this user can create a singleAuctionProcessorusing the desired record types. WhileBiddingRulesManager.getAuctionProcessorRecordTypes()can be used to examine which records are supported, this method tests which record(s) are required for creating a specificAuctionProcessor. Providing an empty array tests if anAuctionProcessorcan be created with no records.- Parameters:
auctionProcessorRecordTypes- array of auction processor record types- Returns:
trueifAuctionProcessorcreation using the specified recordTypesis supported,falseotherwise- Throws:
NullArgumentException-auctionProcessorRecordTypesisnull- Compliance:
mandatory- This method must be implemented.
-
getAuctionProcessorFormForCreate
AuctionProcessorForm getAuctionProcessorFormForCreate(Type[] auctionProcessorRecordTypes) throws OperationFailedException, PermissionDeniedException Gets the auction processor form for creating new auction processors. A new form should be requested for each create transaction.- Parameters:
auctionProcessorRecordTypes- array of auction processor record types- Returns:
- the auction processor form
- Throws:
NullArgumentException-auctionProcessorRecordTypesisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException- unable to get form for requested record types- Compliance:
mandatory- This method must be implemented.
-
createAuctionProcessor
AuctionProcessor createAuctionProcessor(AuctionProcessorForm auctionProcessorForm) throws OperationFailedException, PermissionDeniedException Creates a newAuctionProcessor.- Parameters:
auctionProcessorForm- the form for thisAuctionProcessor- Returns:
- the new
AuctionProcessor - Throws:
IllegalStateException-auctionProcessorFormalready used in a create transactionInvalidArgumentException- one or more of the form elements is invalidNullArgumentException-auctionProcessorFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-auctionProcessorForm did not originate from getAuctionProcessorFormForCreate()- Compliance:
mandatory- This method must be implemented.
-
canUpdateAuctionProcessors
boolean canUpdateAuctionProcessors()Tests if this user can update auction processors. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating anAuctionProcessorwill result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer update operations to an unauthorized user.- Returns:
falseifAuctionProcessormodification is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getAuctionProcessorFormForUpdate
AuctionProcessorForm getAuctionProcessorFormForUpdate(Id auctionProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the auction processor form for updating an existing auction processor. A new auction processor form should be requested for each update transaction.- Parameters:
auctionProcessorId- theIdof theAuctionProcessor- Returns:
- the auction processor form
- Throws:
NotFoundException-auctionProcessorIdis not foundNullArgumentException-auctionProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
updateAuctionProcessor
void updateAuctionProcessor(AuctionProcessorForm auctionProcessorForm) throws OperationFailedException, PermissionDeniedException Updates an existing auction processor.- Parameters:
auctionProcessorForm- the form containing the elements to be updated- Throws:
IllegalStateException-auctionProcessorFormalready used in an update transactionInvalidArgumentException- the form contains an invalid valueNullArgumentException-auctionProcessorFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-auctionProcessorForm did not originate from getAuctionProcessorFormForUpdate()- Compliance:
mandatory- This method must be implemented.
-
canDeleteAuctionProcessors
boolean canDeleteAuctionProcessors()Tests if this user can delete auction processors. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting anAuctionProcessorwill result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer delete operations to an unauthorized user.- Returns:
falseifAuctionProcessordeletion is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
deleteAuctionProcessor
void deleteAuctionProcessor(Id auctionProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Deletes anAuctionProcessor.- Parameters:
auctionProcessorId- theIdof theAuctionProcessorto remove- Throws:
NotFoundException-auctionProcessorIdnot foundNullArgumentException-auctionProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageAuctionProcessorAliases
boolean canManageAuctionProcessorAliases()Tests if this user can manageIdaliases for auction processors. A return of true does not guarantee successful authorization. A return of false indicates that it is known changing an alias will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.- Returns:
falseifAuctionProcessoraliasing is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
aliasAuctionProcessor
void aliasAuctionProcessor(Id auctionProcessorId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds anIdto anAuctionProcessorfor the purpose of creating compatibility. The primaryIdof theAuctionProcessoris determined by the provider. The newIdperforms as an alias to the primaryId. If the alias is a pointer to another auction processor. it is reassigned to the given auction processorId.- Parameters:
auctionProcessorId- theIdof anAuctionProcessoraliasId- the aliasId- Throws:
AlreadyExistsException-aliasIdis already assignedNotFoundException-auctionProcessorIdnot foundNullArgumentException-auctionProcessorIdoraliasIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-