Interface AuctionForm
- All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidGovernatorForm, OsidIdentifiableForm, OsidObjectForm, OsidOperableForm, OsidSourceableForm, Suppliable
- All Known Subinterfaces:
AuctionBatchForm
This is the form for creating and updating Auctions .Like all
OsidForm objects, various data elements may be set here for use in
the create and update methods in the AuctionAdminSession . For
each data element that may be set, metadata may be examined to provide
display hints or data constraints.
-
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves the buyout price.voidRemoves the currency type.voidRemoves the item.voidRemoves the item limit.voidRemoves the lot size.voidRemoves the minimum bidders.voidRemoves the price increment.voidRemoves the reserve price.voidRemoves the sealed flag.voidRemoves the item.voidRemoves the starting price.getAuctionFormRecord(Type auctionRecordType) Gets theAuctionFormRecordcorresponding to the given auction recordType.Gets the metadata for the buyout price.Gets the metadata for the currency type.Gets the metadata for the item limit.Gets the metadata for the item.Gets the metadata for the lot size.Gets the metadata for the minimum bidders.Gets the metadata for the price increment.Gets the metadata for the reserve price.Gets the metadata for the sealed flag.Gets the metadata for the seller.Gets the metadata for the starting price.voidsetBuyoutPrice(Currency price) Sets the buyout price.voidsetCurrencyType(Type currencyType) Sets the currency typevoidSets the item.voidsetItemLimit(long limit) Sets the item limit.voidsetLotSize(long size) Sets the lot size.voidsetMinimumBidders(long bidders) Sets the minimum bidders.voidsetPriceIncrement(Currency price) Sets the price increment.voidsetReservePrice(Currency price) Sets the reserve price.voidsetSealed(boolean sealed) Sets the sealed flag.voidSets the seller.voidsetStartingPrice(Currency price) Sets the starting price.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidExtensibleForm
getRequiredRecordTypesModifier and TypeMethodDescriptionGets the minimum required record types for successful submission of thisOsidForm.Methods inherited from interface OsidForm
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocaleModifier and TypeMethodDescriptionGets a default locale for the form.Metadata[]Gets a list of metadata for the elements in this form which are not valid.Gets the metadata for the comment corresponding to this form submission.Gets the locales available for this form.Gets text messages corresponding to additional instructions to pass form validation.booleanTests if this form is for an update operation.booleanisValid()Tests if this form is in a valid state for submission.voidsetJournalComment(String comment) Sets a comment.voidSpecifies a language and script type for the form.Methods inherited from interface OsidObjectForm
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypeModifier and TypeMethodDescriptionvoidClears the description.voidClears the display name.voidClears the genus type.Gets the metadata for a description.Gets the metadata for a display name.Gets the metadata for a genus type.voidsetDescription(String description) Sets a description.voidsetDisplayName(String displayName) Sets a display name.voidsetGenusType(Type genusType) Sets a genus.Methods inherited from interface OsidOperableForm
clearDisabled, clearEnabled, getDisabledMetadata, getEnabledMetadata, setDisabled, setEnabledModifier and TypeMethodDescriptionvoidRemoves the administratively disabled flag.voidRemoves the administratively enabled flag.Gets the metadata for the disabled flag.Gets the metadata for the enabled flag.voidsetDisabled(boolean disabled) Sets the administratively disabled flag.voidsetEnabled(boolean enabled) Sets the administratively enabled flag.Methods inherited from interface OsidSourceableForm
clearBranding, clearLicense, clearProvider, getBrandingMetadata, getLicenseMetadata, getProviderMetadata, setBranding, setLicense, setProviderModifier and TypeMethodDescriptionvoidRemoves the branding.voidRemoves the license.voidRemoves the provider.Gets the metadata for the asset branding.Gets the metadata for the license.Gets the metadata for a provider.voidsetBranding(Id[] assetIds) Sets the branding.voidsetLicense(String license) Sets the license.voidsetProvider(Id providerId) Sets a provider.
-
Method Details
-
getCurrnecyTypeMetadata
Metadata getCurrnecyTypeMetadata()Gets the metadata for the currency type.- Returns:
- metadata for the currency type
- Compliance:
mandatory- This method must be implemented.
-
setCurrencyType
Sets the currency type- Parameters:
currencyType- the new currency type- Throws:
InvalidArgumentException-currencyTypeis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-currencyTypeisnull- Compliance:
mandatory- This method must be implemented.
-
clearCurrencyType
void clearCurrencyType()Removes the currency type.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getMinimumBiddersMetadata
Metadata getMinimumBiddersMetadata()Gets the metadata for the minimum bidders.- Returns:
- metadata for the minimum bidders
- Compliance:
mandatory- This method must be implemented.
-
setMinimumBidders
void setMinimumBidders(long bidders) Sets the minimum bidders.- Parameters:
bidders- the new minimum bidders- Throws:
InvalidArgumentException-biddersis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearMinimumBidders
void clearMinimumBidders()Removes the minimum bidders.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getSealedMetadata
Metadata getSealedMetadata()Gets the metadata for the sealed flag.- Returns:
- metadata for the sealed flag
- Compliance:
mandatory- This method must be implemented.
-
setSealed
void setSealed(boolean sealed) Sets the sealed flag.- Parameters:
sealed- the new sealed flag- Throws:
InvalidArgumentException-sealedis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearSealed
void clearSealed()Removes the sealed flag.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getSellerMetadata
Metadata getSellerMetadata()Gets the metadata for the seller.- Returns:
- metadata for the seller
- Compliance:
mandatory- This method must be implemented.
-
setSeller
Sets the seller.- Parameters:
resourceId- the new resourceId- Throws:
InvalidArgumentException-resourceIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-resourceIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearSeller
void clearSeller()Removes the item.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getItemMetadata
Metadata getItemMetadata()Gets the metadata for the item.- Returns:
- metadata for the item
- Compliance:
mandatory- This method must be implemented.
-
setItem
Sets the item.- Parameters:
resourceId- the new resourceId- Throws:
InvalidArgumentException-resourceIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-resourceIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearItem
void clearItem()Removes the item.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getLotSizeMetadata
Metadata getLotSizeMetadata()Gets the metadata for the lot size.- Returns:
- metadata for the lot size
- Compliance:
mandatory- This method must be implemented.
-
setLotSize
void setLotSize(long size) Sets the lot size.- Parameters:
size- the new lot size- Throws:
InvalidArgumentException-sizeis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearLotSize
void clearLotSize()Removes the lot size.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getItemLimitMetadata
Metadata getItemLimitMetadata()Gets the metadata for the item limit.- Returns:
- metadata for the item limit
- Compliance:
mandatory- This method must be implemented.
-
setItemLimit
void setItemLimit(long limit) Sets the item limit.- Parameters:
limit- the new item limit- Throws:
InvalidArgumentException-limitis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearItemLimit
void clearItemLimit()Removes the item limit.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getStartingPriceMetadata
Metadata getStartingPriceMetadata()Gets the metadata for the starting price.- Returns:
- metadata for the starting price
- Compliance:
mandatory- This method must be implemented.
-
setStartingPrice
Sets the starting price.- Parameters:
price- the new starting price- Throws:
InvalidArgumentException-priceis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-priceisnull- Compliance:
mandatory- This method must be implemented.
-
clearStartingPrice
void clearStartingPrice()Removes the starting price.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getPriceIncrementMetadata
Metadata getPriceIncrementMetadata()Gets the metadata for the price increment.- Returns:
- metadata for the price increment
- Compliance:
mandatory- This method must be implemented.
-
setPriceIncrement
Sets the price increment.- Parameters:
price- the new price increment- Throws:
InvalidArgumentException-priceis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-priceisnull- Compliance:
mandatory- This method must be implemented.
-
clearPriceIncrement
void clearPriceIncrement()Removes the price increment.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getReservePriceMetadata
Metadata getReservePriceMetadata()Gets the metadata for the reserve price.- Returns:
- metadata for the reserve price
- Compliance:
mandatory- This method must be implemented.
-
setReservePrice
Sets the reserve price.- Parameters:
price- the new reserve price- Throws:
InvalidArgumentException-priceis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-priceisnull- Compliance:
mandatory- This method must be implemented.
-
clearReservePrice
void clearReservePrice()Removes the reserve price.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getBuyoutPriceMetadata
Metadata getBuyoutPriceMetadata()Gets the metadata for the buyout price.- Returns:
- metadata for the buyout price
- Compliance:
mandatory- This method must be implemented.
-
setBuyoutPrice
Sets the buyout price.- Parameters:
price- the new buyout price- Throws:
InvalidArgumentException-priceis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-priceisnull- Compliance:
mandatory- This method must be implemented.
-
clearBuyoutPrice
void clearBuyoutPrice()Removes the buyout price.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getAuctionFormRecord
Gets theAuctionFormRecordcorresponding to the given auction recordType.- Parameters:
auctionRecordType- an auction record type- Returns:
- the auction form record
- Throws:
NullArgumentException-auctionRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(auctionRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-