Interface AuctionProcessorEnablerAdminSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session creates and removes auction processor enablers. The data
for create and update is provided via the
AuctionProcessorEnablerForm .
-
Method Summary
Modifier and TypeMethodDescriptionvoidaliasAuctionProcessorEnabler(Id auctionProcessorEnablerId, Id aliasId) Adds anIdto anAuctionProcessorEnablerfor the purpose of creating compatibility.booleanTests if this user can create auction processor enablers.booleancanCreateAuctionProcessorEnablerWithRecordTypes(Type[] auctionProcessorEnablerRecordTypes) Tests if this user can create a singleAuctionProcessorEnablerusing the desired record types.booleanTests if this user can delete auction processor enablers.booleanTests if this user can manageIdaliases for auction processor enablers.booleanTests if this user can update auction processor enablers.createAuctionProcessorEnabler(AuctionProcessorEnablerForm auctionProcessorEnablerForm) Creates a newAuctionProcessorEnabler.voiddeleteAuctionProcessorEnabler(Id auctionProcessorEnablerId) Deletes anAuctionProcessorEnabler.Gets theAuctionHouseassociated with this session.Gets theAuctionHouseIdassociated with this session.getAuctionProcessorEnablerFormForCreate(Type[] auctionProcessorEnablerRecordTypes) Gets the auction processor enabler form for creating new auction processor enablers.getAuctionProcessorEnablerFormForUpdate(Id auctionProcessorEnablerId) Gets the auction processor enabler form for updating an existing auction processor enabler.voidupdateAuctionProcessorEnabler(AuctionProcessorEnablerForm auctionProcessorEnablerForm) Updates an existing auction processor enabler.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.
-
canCreateAuctionProcessorEnabler
boolean canCreateAuctionProcessorEnabler()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 anAuctionProcessorEnablerwill 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:
falseifAuctionProcessorEnablercreation is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canCreateAuctionProcessorEnablerWithRecordTypes
Tests if this user can create a singleAuctionProcessorEnablerusing the desired record types. WhileBiddingRulesManager.getAuctionProcessorEnablerRecordTypes()can be used to examine which records are supported, this method tests which record(s) are required for creating a specificAuctionProcessorEnabler. Providing an empty array tests if anAuctionProcessorEnablercan be created with no records.- Parameters:
auctionProcessorEnablerRecordTypes- array of auction processor enabler record types- Returns:
trueifAuctionProcessorEnablercreation using the specified recordTypesis supported,falseotherwise- Throws:
NullArgumentException-auctionProcessorEnablerRecordTypesisnull- Compliance:
mandatory- This method must be implemented.
-
getAuctionProcessorEnablerFormForCreate
AuctionProcessorEnablerForm getAuctionProcessorEnablerFormForCreate(Type[] auctionProcessorEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException Gets the auction processor enabler form for creating new auction processor enablers. A new form should be requested for each create transaction.- Parameters:
auctionProcessorEnablerRecordTypes- array of auction processor enabler record types- Returns:
- the auction processor enabler form
- Throws:
NullArgumentException-auctionProcessorEnablerRecordTypesisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException- unable to get form for requested record types- Compliance:
mandatory- This method must be implemented.
-
createAuctionProcessorEnabler
AuctionProcessorEnabler createAuctionProcessorEnabler(AuctionProcessorEnablerForm auctionProcessorEnablerForm) throws OperationFailedException, PermissionDeniedException Creates a newAuctionProcessorEnabler.- Parameters:
auctionProcessorEnablerForm- the form for thisAuctionProcessorEnabler- Returns:
- the new
AuctionProcessorEnabler - Throws:
IllegalStateException-auctionProcessorEnablerFormalready used in a create transactionInvalidArgumentException- one or more of the form elements is invalidNullArgumentException-auctionProcessorEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-auctionProcessorEnablerForm did not originate from getAuctionProcessorEnablerFormForCreate()- Compliance:
mandatory- This method must be implemented.
-
canUpdateAuctionProcessorEnablers
boolean canUpdateAuctionProcessorEnablers()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 anAuctionProcessorEnablerwill 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:
falseifAuctionProcessorEnablermodification is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getAuctionProcessorEnablerFormForUpdate
AuctionProcessorEnablerForm getAuctionProcessorEnablerFormForUpdate(Id auctionProcessorEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException 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.- Parameters:
auctionProcessorEnablerId- theIdof theAuctionProcessorEnabler- Returns:
- the auction processor enabler form
- Throws:
NotFoundException-auctionProcessorEnablerIdis not foundNullArgumentException-auctionProcessorEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
updateAuctionProcessorEnabler
void updateAuctionProcessorEnabler(AuctionProcessorEnablerForm auctionProcessorEnablerForm) throws OperationFailedException, PermissionDeniedException Updates an existing auction processor enabler.- Parameters:
auctionProcessorEnablerForm- the form containing the elements to be updated- Throws:
IllegalStateException-auctionProcessorEnablerFormalready used in an update transactionInvalidArgumentException- the form contains an invalid valueNullArgumentException-auctionProcessorEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-auctionProcessorEnablerForm did not originate from getAuctionProcessorEnablerFormForUpdate()- Compliance:
mandatory- This method must be implemented.
-
canDeleteAuctionProcessorEnablers
boolean canDeleteAuctionProcessorEnablers()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 anAuctionProcessorEnablerwill 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:
falseifAuctionProcessorEnablerdeletion is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
deleteAuctionProcessorEnabler
void deleteAuctionProcessorEnabler(Id auctionProcessorEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Deletes anAuctionProcessorEnabler.- Parameters:
auctionProcessorEnablerId- theIdof theAuctionProcessorEnablerto remove- Throws:
NotFoundException-auctionProcessorEnablerIdnot foundNullArgumentException-auctionProcessorEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageAuctionProcessorEnablerAliases
boolean canManageAuctionProcessorEnablerAliases()Tests if this user can manageIdaliases 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 aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.- Returns:
falseifAuctionProcessorEnableraliasing is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
aliasAuctionProcessorEnabler
void aliasAuctionProcessorEnabler(Id auctionProcessorEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds anIdto anAuctionProcessorEnablerfor the purpose of creating compatibility. The primaryIdof theAuctionProcessorEnableris determined by the provider. The newIdperforms as an alias to the primaryId. If the alias is a pointer to another auction processor enabler. it is reassigned to the given auction processor enablerId.- Parameters:
auctionProcessorEnablerId- theIdof anAuctionProcessorEnableraliasId- the aliasId- Throws:
AlreadyExistsException-aliasIdis already assignedNotFoundException-auctionProcessorEnablerIdnot foundNullArgumentException-auctionProcessorEnablerIdoraliasIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-