com.ibm.commerce.tools.command
Class ToolsControllerCommandImpl

com.ibm.commerce.command.AbstractECTargetableCommand
  |
  +--com.ibm.commerce.command.ControllerCommandImpl
        |
        +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, ToolsControllerCommand
Direct Known Subclasses:
AccessSpaceCtrlCmdImpl, ActGrpAddCmdImpl, ActGrpDeleteCmdImpl, ActGrpUpdateCmdImpl, AddMemberToSpaceCtrlCmdImpl, AlgorithmRegistryBaseCmdImpl, AttributeCreateControllerCmdImpl, AttributeDeleteImpl, AttributeSequenceMoveDownImpl, AttributeSequenceMoveUpImpl, AttributeUpdateControllerCmdImpl, AttributeUpdateImpl, AttributeValueDialogCreateImpl, AttributeValueDialogUpdateImpl, AttributeValueSequenceMoveDownImpl, AttributeValueSequenceMoveUpImpl, AttributeWizardCreateImpl, AuctionBaseCmdImpl, BIShowReportCmdImpl, BroadcastUpdateRuleServiceStatusCommandImpl, CampaignCheckUserControllerCmdImpl, CampaignInitiativeDeleteControllerCmdImpl, CampaignInitiativeDisableControllerCmdImpl, CampaignInitiativeScheduleDeleteControllerCmdImpl, CategoryCreateImpl, CategoryDeleteImpl, CategoryUpdateImpl, ChangeSpaceCtrlCmdImpl, ChangeUserRoleCtrlCmdImpl, CreateSpaceCtrlCmdImpl, CSRBaseControllerCommandImpl, CSRCustomerAddressAddCmdImpl, CSRCustomerEnableAccountCmdImpl, CSRCustomerInfoUpdateCmdImpl, CSROrderAdjustmentUpdateCmdImpl, CSROrderCancelCmdImpl, CSROrderCommentsAddCmdImpl, CSROrderItemAddCmdImpl, CSROrderItemAddressUpdateCmdImpl, CSROrderItemSplitCmdImpl, CSROrderItemUpdateCmdImpl, CSROrderProductContractPriceCmdImpl, CSROrderRollBackCmdImpl, DeleteAuctionCmdImpl, DeleteAuctionStyleCmdImpl, DeleteSpaceCtrlCmdImpl, GenericReportControllerCmdImpl, ItemCreateImpl, ItemDeleteImpl, ItemGenerateImpl, ItemPriceDeleteImpl, ItemUpdateImpl, MessagingAdminCmd, OfferingBaseCmdImpl, PAttributeBaseCmdImpl, PAttributeDeleteCmdImpl, PolicyAddCmdImpl, PolicyDeleteCmdImpl, PolicyUpdateCmdImpl, ProductAttributeValueDeleteImpl, ProductDeleteImpl, ProductNotebookUpdateImpl, ProductWizardCreateImpl, PromotionChooseCmdImpl, PromotionPublishCmdImpl, RemoveMemberFromSpaceCtrlCmdImpl, ResGrpAddCmdImpl, ResGrpDeleteCmdImpl, ResGrpImplicitSaveCmdImpl, ResGrpUpdateCmdImpl, ReturnItemComponentDisposeCmdImpl, ReturnItemComponentReceiveCmdImpl, RFQCancelCmdImpl, RFQCloseCmdImpl, RFQCompleteCmdImpl, RFQCopyCmdImpl, RFQResponseAcceptCmdImpl, RFQResponseRejectCmdImpl, RFQSubmitCmdImpl, RuleServiceAdministrationCommandBase, ShowContextListCmdImpl, TradingEngineBaseCmdImpl

public class ToolsControllerCommandImpl
extends ControllerCommandImpl
implements ToolsControllerCommand

Controller command to be used by Commerce Accelerator, Administration Console, Store Services and Buyer Administration Console.


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.tools.command.ToolsControllerCommand
COPYRIGHT, NAME
 
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
 
Fields inherited from interface com.ibm.commerce.command.ECTargetableCommand
COPYRIGHT
 
Constructor Summary
ToolsControllerCommandImpl()
           
 
Method Summary
 TypedProperty getViewInputProperties()
          This method is called by the web controller to retrieve the request properties set by the setRequestProperties() method.
 void setRequestProperties(TypedProperty viewParm)
          Sets request properties for for view command.
 
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
 
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, performExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setGeneric, 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, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Constructor Detail

ToolsControllerCommandImpl

public ToolsControllerCommandImpl()
Method Detail

getViewInputProperties

public TypedProperty getViewInputProperties()
This method is called by the web controller to retrieve the request properties set by the setRequestProperties() method.

The tools need to override this method because otherwise the properties passed into the controller command would be then passed onto the view command. This is unnecessary for the tools and actually will break the flow when using the ReDirectView command because the URL to re-direct to cannot be more than 500 chars. The XML parameter alone passed into the controller command is longer than this and therefore without overriding this method we couldn't re-direct to the view command.

Specified by:
getViewInputProperties in interface ControllerCommand
Overrides:
getViewInputProperties in class ControllerCommandImpl
Returns:
The request properties to be passed to the viewCommand.

setRequestProperties

public void setRequestProperties(TypedProperty viewParm)
                          throws ECApplicationException
Sets request properties for for view command.

In the default implementation, this method simply saves the request properties.

Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class ControllerCommandImpl
Parameters:
viewParm - Reuest properties to be set.