com.ibm.commerce.command
Class BusinessPolicyCommandImpl

java.lang.Object
  CacheableCommandImpl
      com.ibm.commerce.command.AbstractECTargetableCommand
          com.ibm.commerce.command.TaskCommandImpl
              com.ibm.commerce.command.BusinessPolicyCommandImpl
All Implemented Interfaces:
BusinessPolicyCommand, ECCommand, ECTargetableCommand, TaskCommand
Direct Known Subclasses:
ApproveRefundAlwaysPolicyCmdImpl, AutoApproveReturnItemByDaysPolicyCmdImpl, CalculateReturnAdjustmentNonePolicyCmdImpl, CalculateReturnItemAdjustmentPolicyCmdImpl, CalculationCmdImpl, CheckPaymentAcceptCLCmdImpl, CheckPaymentAcceptPMCmdImpl, CheckPaymentAcceptTestCmdImpl, CSRDisplayRefundPaymentInfoCmdImpl, DoCancelCLCmdImpl, DoCancelPMCmdImpl, DoCancelTestCmdImpl, DoDepositCLCmdImpl, DoDepositPMCmdImpl, DoDepositTestCmdImpl, DoPaymentCLCmdImpl, DoPaymentPMCmdImpl, DoPaymentTestCmdImpl, DoRefundCLCmdImpl, DoRefundPMCmdImpl, DoRefundTestCmdImpl, GetBatchAvailabilityCmdImpl, GetPriceAndAvailabilityCmdImpl, GetUOMCodePolicyCmdImpl, RefundPaymentPolicyCmdImpl, ResolvePriceListsCmdImpl, RetrievePricesCmdImpl, TransferShopcartCmdImpl

public class BusinessPolicyCommandImpl
extends TaskCommandImpl
implements BusinessPolicyCommand

Default implementation for a Business Policy Task Command.

See Also:
Serialized Form

Field Summary
protected java.lang.Long policyId
protected TypedProperty requestProperties
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
commandContext
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
Constructor Summary
BusinessPolicyCommandImpl()
Constructor for BusinessPolicyCommandImpl.
Method Summary
java.lang.Long getPolicyId()
Gets the policy id.
TypedProperty getRequestProperties()
This method is called to retrieve the request properties associated with a command.
void setPolicyId(java.lang.Long newPolicyId)
Sets the policy Id.
void setRequestProperties(TypedProperty aRequestProperties)
Sets the request properties for the Business Policy Command.
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, performExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail

requestProperties

protected TypedProperty requestProperties

policyId

protected java.lang.Long policyId
Constructor Detail

BusinessPolicyCommandImpl

public BusinessPolicyCommandImpl()
Constructor for BusinessPolicyCommandImpl.
Method Detail

getPolicyId

public java.lang.Long getPolicyId()
Gets the policy id.
Specified by:
getPolicyId in interface BusinessPolicyCommand
Returns:
business policy ID

getRequestProperties

public TypedProperty getRequestProperties()
This method is called to retrieve the request properties associated with a command. the default implementation returns the protected parameter requestProperties set by setRequestProperties.
Specified by:
getRequestProperties in interface BusinessPolicyCommand
Returns:
request Properties

setPolicyId

public void setPolicyId(java.lang.Long newPolicyId)
Sets the policy Id. This method is called by the command factory to initialize the policy Id associated with this command.
Specified by:
setPolicyId in interface BusinessPolicyCommand
Parameters:
newPolicyId - business policy ID

setRequestProperties

public void setRequestProperties(TypedProperty aRequestProperties)
Sets the request properties for the Business Policy Command. The default implementation set the protected parameter requestProperties with the input value.
Specified by:
setRequestProperties in interface BusinessPolicyCommand
Parameters:
aRequestProperties - request properties

Feedback