com.ibm.commerce.negotiation.commands
Class CreateAuctionStyleCmdImpl
java.lang.Object
CacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.ControllerCommandImpl
com.ibm.commerce.tools.command.ToolsControllerCommandImpl
com.ibm.commerce.negotiation.commands.AuctionBaseCmdImpl
com.ibm.commerce.negotiation.commands.CreateAuctionStyleCmdImpl
- All Implemented Interfaces:
- AccCommand, AuctionBaseCmd, ControllerCommand, CreateAuctionStyleCmd, ECCommand, ECTargetableCommand, Protectable, ToolsControllerCommand
- public class CreateAuctionStyleCmdImpl
- extends AuctionBaseCmdImpl
- implements CreateAuctionStyleCmd
Creates a new auction style.
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
COPYRIGHT
Copyright statement. |
Fields inherited from class com.ibm.commerce.negotiation.commands.AuctionBaseCmdImpl |
bidRule, currency, currentAskPrice, currentAvailableQuantity, dayDuration, deposit, description, durationTimeStamp, endDate, endTime, endTimeStamp, languageId, longDescription, minBid, ownerid, pricerule, productMacro, productNumber, quantity, ruleMacro, ruleType, startDate, startPrice, startTime, startTimeStamp, status, timeDuration, type |
Methods inherited from class com.ibm.commerce.negotiation.commands.AuctionBaseCmdImpl |
addTimestamp, checkBidRule, compareTimestamp, dayChangeInTimestamp, getAuctionReferenceNumber, getBaseTimeStamp, getBidRule, getCurrency, getCurrentAskPrice, getCurrentAvailableQuantity, getCurrentTimeStamp, getDayDuration, getDeposit, getDurationTimeStamp, getEndDate, getEndTime, getEndTimeStamp, getErrorContent, getErrorFlag, getException, getFulfillmentCenterId, getFulfillmentCenterId, getLanguageId, getLongDescription, getMerchantCurrency, getMinBid, getOwnerId, getPrice, getProductMacro, getProductNumber, getQuantity, getReservationId, getResponseProperties, getRuleMacro, getRuleType, getShortDescription, getStartDate, getStartPrice, getStartTime, getStartTimeStamp, getStatus, getTimeDuration, getToolXMLObject, getType, getUpdatedEndTimestamp, getViewTaskName, getWizardNavagationFile, isBidRuleExist, isErrorFlag, isPageExist, isReadyToCallExecute, isValidCurrencyValueForAuction, reset, setAuctionReferenceNumber, setAuctionReferenceNumberUrlName, setBidRuleUrlName, setCurrency, setCurrencyUrlName, setCurrentAskPriceUrlName, setCurrentAvailableQuantity, setCurrentAvailableQuantityUrlName, setDayDurationUrlName, setDepositUrlName, setDurationTimeStamp, setEndDateUrlName, setEndTimeStamp, setEndTimeUrlName, setErrorContent, setErrorFlag, setException, setFulfillmentCenterIdUrlName, setLanguageIdUrlName, setLongDescriptionUrlName, setMinBidUrlName, setOwnerId, setOwnerIdUrlName, setPriceUrlName, setProductMacroUrlName, setProductNumberUrlName, setQuantity, setQuantityUrlName, setRequestProperties, setReservationId, setResponseProperties, setRuleMacroUrlName, setRuleTypeUrlName, setShortDescriptionUrlName, setStartDateUrlName, setStartPrice, setStartPriceUrlName, setStartTimeStamp, setStartTimeUrlName, setStatus, setTimeDurationUrlName, setToolXMLObject, setTypeUrlName, setViewTaskName |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.negotiation.commands.AuctionBaseCmd |
setBidRuleUrlName, setCurrencyUrlName, setCurrentAskPriceUrlName, setCurrentAvailableQuantityUrlName, setDayDurationUrlName, setDepositUrlName, setEndDateUrlName, setEndTimeUrlName, setFulfillmentCenterIdUrlName, setLanguageIdUrlName, setLongDescriptionUrlName, setMinBidUrlName, setOwnerIdUrlName, setPriceUrlName, setProductMacroUrlName, setProductNumberUrlName, setQuantityUrlName, setRuleMacroUrlName, setRuleTypeUrlName, setShortDescriptionUrlName, setStartDateUrlName, setStartPriceUrlName, setStartTimeUrlName, setTimeDurationUrlName, setTypeUrlName |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- Copyright statement.
- See Also:
- Constant Field Values
CreateAuctionStyleCmdImpl
public CreateAuctionStyleCmdImpl()
- CreateAuctionStyleCmdImpl constructor.
getResources
public AccessVector getResources()
throws ECException
- Gets the access vector accessed by this command. The default implementation returns null indicating that no protectable resource is accessed by this command. It is the responsibilities of the command writer to return the protectable primary resource(s) and the corresponding actions accessed by this command.
-
- Specified by:
- getResources in interface ECCommand
- Overrides:
- getResources in class AbstractECTargetableCommand
-
- Returns:
- AccessVector - a vector of resource action pairs
- Throws:
- ECException - if any errors are encountered.
performExecute
public void performExecute()
throws ECException
- Command Execution which saves the auction style.
-
- Specified by:
- performExecute in interface ECCommand
- Overrides:
- performExecute in class AuctionBaseCmdImpl
-
- Throws:
- ECException - if any errors are encountered.
setAuctionStyleNameUrlName
public void setAuctionStyleNameUrlName(java.lang.String name,
boolean isReq)
throws ECApplicationException
- Get auction style name from url name/value pair
-
- Specified by:
- setAuctionStyleNameUrlName in interface CreateAuctionStyleCmd
-
- Parameters:
- isReq - A flag to indicate if the field is required or not.
- Throws:
- ECApplicationException - if any problems are encountered.
validateParameters
public void validateParameters()
throws ECException
- Validate the parameters.
-
- Specified by:
- validateParameters in interface ECCommand
- Overrides:
- validateParameters in class AbstractECTargetableCommand
-
- Throws:
- ECApplicationException - if any errors are encountered.
NOTE: When throwing ECApplicationException, the erroneous parameters have been assigned to the ErrorTaskName field of the exception. Therefore, the getErrorTaskName() call in the catch block, actually returns the parameters that may be later substituted in the error message.
- ECException
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.