Interface AuctionConstrainerAdminSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session creates and removes auction constrainers. The data for
create and update is provided via the AuctionConstrainerForm .
-
Method Summary
Modifier and TypeMethodDescriptionvoidaliasAuctionConstrainer(Id auctionConstrainerId, Id aliasId) Adds anIdto anAuctionConstrainerfor the purpose of creating compatibility.booleanTests if this user can create auction constrainers.booleancanCreateAuctionConstrainerWithRecordTypes(Type[] auctionConstrainerRecordTypes) BiddingRulesManager.getAuctionConstrainerRecordTypes()can be used to examine which records are supported, this method tests which record(s) are required for creating a specificAuctionConstrainer.booleanTests if this user can delete auction constrainers.booleanTests if this user can manageIdaliases for auction constrainers.booleanTests if this user can update auction constrainers.createAuctionConstrainer(AuctionConstrainerForm auctionConstrainerForm) Creates a newAuctionConstrainer.voiddeleteAuctionConstrainer(Id auctionConstrainerId) Deletes anAuctionConstrainer.getAuctionConstrainerFormForCreate(Type[] auctionConstrainerRecordTypes) Gets the auction constrainer form for creating new auction constrainers.getAuctionConstrainerFormForUpdate(Id auctionConstrainerId) Gets the auction constrainer form for updating an existing auction constrainer.Gets theAuctionHouseassociated with this session.Gets theAuctionHouseIdassociated with this session.voidupdateAuctionConstrainer(AuctionConstrainerForm auctionConstrainerForm) Updates an existing auction constrainer.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.
-
canCreateAuctionConstrainer
boolean canCreateAuctionConstrainer()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 anAuctionConstrainerwill 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:
falseifAuctionConstrainercreation is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canCreateAuctionConstrainerWithRecordTypes
BiddingRulesManager.getAuctionConstrainerRecordTypes()can be used to examine which records are supported, this method tests which record(s) are required for creating a specificAuctionConstrainer. Providing an empty array tests if anAuctionConstrainercan be created with no records.- Parameters:
auctionConstrainerRecordTypes- array of auction constrainer record types- Returns:
trueifAuctionConstrainercreation using the specified recordTypesis supported,falseotherwise- Throws:
NullArgumentException-auctionConstrainerRecordTypesisnull- Compliance:
mandatory- This method must be implemented.
-
getAuctionConstrainerFormForCreate
AuctionConstrainerForm getAuctionConstrainerFormForCreate(Type[] auctionConstrainerRecordTypes) throws OperationFailedException, PermissionDeniedException Gets the auction constrainer form for creating new auction constrainers. A new form should be requested for each create transaction.- Parameters:
auctionConstrainerRecordTypes- array of auction constrainer record types- Returns:
- the auction constrainer form
- Throws:
NullArgumentException-auctionConstrainerRecordTypesisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException- unable to get form for requested record types- Compliance:
mandatory- This method must be implemented.
-
createAuctionConstrainer
AuctionConstrainer createAuctionConstrainer(AuctionConstrainerForm auctionConstrainerForm) throws OperationFailedException, PermissionDeniedException Creates a newAuctionConstrainer.- Parameters:
auctionConstrainerForm- the form for thisAuctionConstrainer- Returns:
- the new
AuctionConstrainer - Throws:
IllegalStateException-auctionConstrainerFormalready used in a create transactionInvalidArgumentException- one or more of the form elements is invalidNullArgumentException-auctionConstrainerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-auctionConstrainerFormdid not originate fromgetAuctionConstrainerFormForCreate()- Compliance:
mandatory- This method must be implemented.
-
canUpdateAuctionConstrainers
boolean canUpdateAuctionConstrainers()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 anAuctionConstrainerwill 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:
falseifAuctionConstrainermodification is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getAuctionConstrainerFormForUpdate
AuctionConstrainerForm getAuctionConstrainerFormForUpdate(Id auctionConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the auction constrainer form for updating an existing auction constrainer. A new auction constrainer form should be requested for each update transaction.- Parameters:
auctionConstrainerId- theIdof theAuctionConstrainer- Returns:
- the auction constrainer form
- Throws:
NotFoundException-auctionConstrainerIdis not foundNullArgumentException-auctionConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
updateAuctionConstrainer
void updateAuctionConstrainer(AuctionConstrainerForm auctionConstrainerForm) throws OperationFailedException, PermissionDeniedException Updates an existing auction constrainer.- Parameters:
auctionConstrainerForm- the form containing the elements to be updated- Throws:
IllegalStateException-auctionConstrainerFormalready used in an update transactionInvalidArgumentException- the form contains an invalid valueNullArgumentException-auctionConstrainerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-auctionConstrainerFormdid not originate fromgetAuctionConstrainerFormForUpdate()- Compliance:
mandatory- This method must be implemented.
-
canDeleteAuctionConstrainers
boolean canDeleteAuctionConstrainers()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 anAuctionConstrainerwill 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:
falseifAuctionConstrainerdeletion is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
deleteAuctionConstrainer
void deleteAuctionConstrainer(Id auctionConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Deletes anAuctionConstrainer.- Parameters:
auctionConstrainerId- theIdof theAuctionConstrainerto remove- Throws:
NotFoundException-auctionConstrainerIdnot foundNullArgumentException-auctionConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageAuctionConstrainerAliases
boolean canManageAuctionConstrainerAliases()Tests if this user can manageIdaliases 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 aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.- Returns:
falseifAuctionConstraineraliasing is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
aliasAuctionConstrainer
void aliasAuctionConstrainer(Id auctionConstrainerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds anIdto anAuctionConstrainerfor the purpose of creating compatibility. The primaryIdof theAuctionConstraineris determined by the provider. The newIdperforms as an alias to the primaryId. If the alias is a pointer to another auction constrainer. it is reassigned to the given auction constrainerId.- Parameters:
auctionConstrainerId- theIdof anAuctionConstraineraliasId- the aliasId- Throws:
AlreadyExistsException-aliasIdis already assignedNotFoundException-auctionConstrainerIdnot foundNullArgumentException-auctionConstrainerIdoraliasIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-