com.ibm.commerce.negotiation.commands
Class ModifyAuctionStyleCmdImpl

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.ModifyAuctionStyleCmdImpl
All Implemented Interfaces:
AccCommand, AuctionBaseCmd, ControllerCommand, ECCommand, ECTargetableCommand, ModifyAuctionStyleCmd, Protectable, ToolsControllerCommand

public class ModifyAuctionStyleCmdImpl
extends AuctionBaseCmdImpl
implements ModifyAuctionStyleCmd

Modifies an auction style.


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
 
Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl
requestProperties, responseProperties, retriable, viewReqProperties
 
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.negotiation.commands.ModifyAuctionStyleCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command.ECTargetableCommand
COPYRIGHT
 
Constructor Summary
ModifyAuctionStyleCmdImpl()
          ModifyAuctionStyleCmdImpl constructor.
 
Method Summary
 AccessVector getResources()
          Gets the access vector accessed by this command.
 void performExecute()
          Command Execution which modifies the auction style
 void setAuctionStyleNameUrlName(java.lang.String name, boolean isReq)
          Sets the auction style name from url name/value pair.
 void validateParameters()
          Checks the parameters to the command.
 
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, 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, 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.tools.command.ToolsControllerCommandImpl
getViewInputProperties
 
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setRetriable, setViewInputProperties
 
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 
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
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
 
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Constructor Detail

ModifyAuctionStyleCmdImpl

public ModifyAuctionStyleCmdImpl()
ModifyAuctionStyleCmdImpl constructor.
Method Detail

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 problems are encountered.

performExecute

public void performExecute()
                    throws ECException
Command Execution which modifies the auction style
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AuctionBaseCmdImpl
Throws:
ECException - if any problems are encountered in the processing.

setAuctionStyleNameUrlName

public void setAuctionStyleNameUrlName(java.lang.String name,
                                       boolean isReq)
                                throws ECApplicationException
Sets the auction style name from url name/value pair.
Specified by:
setAuctionStyleNameUrlName in interface ModifyAuctionStyleCmd
Parameters:
name - Auction style name.
isReq - A boolean indicating whether or not the name is a required field.
Throws:
ECApplicationException - if a required parameter has not been supplied.

validateParameters

public void validateParameters()
                        throws ECException
Checks the parameters to the command.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException - if any problems are found with the parameters.