com.ibm.commerce.messaging.commands
Class TransferShopcartCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.command.BusinessPolicyCommandImpl
                          |
                          +--com.ibm.commerce.messaging.commands.TransferShopcartCmdImpl
All Implemented Interfaces:
BusinessPolicyCommand, ECCommand, ECTargetableCommand, TaskCommand, TransferShopCartPolicyCmd

public class TransferShopcartCmdImpl
extends BusinessPolicyCommandImpl
implements TransferShopCartPolicyCmd

TransferShopcartCmdImpl

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          IBM copyright notice field
 
Fields inherited from class com.ibm.commerce.command. BusinessPolicyCommandImpl
policyId, requestProperties
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.messaging.commands. TransferShopCartPolicyCmd
defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
TransferShopcartCmdImpl()
          Default constructor for TransferShopcartCmdImpl
 
Method Summary
 boolean getAuthenticationRequired()
          Gets the flag indicating whether the partner requires a userid and password on the request message.
 boolean getBackOrders()
          Gets the flag indicating whether the partner accepts shopcarts with items whose availability is zero.
 java.lang.String getCollabSpace()
          Gets the Crossworlds collaboration space.
 boolean getEnabled()
          Gets the flag indicating whether the partner accepts this request.
 java.lang.String getName()
          Gets the unique identifier for the partner.
 java.lang.String getPolicy()
          Gets the policy name.
 long getTimeout()
          Gets the number of seconds that the command will wait for a response.
 java.lang.String getUomStandard()
          Gets the unit of measure standard.
 void performExecute()
          Executes the command.
 void setAuthenticationRequired(boolean authenticationRequired)
          Sets the flag indicating whether the partner requires a userid and password on the request message.
 void setBackOrders(boolean backOrders)
          Sets the flag indicating whether the partner accepts shopcarts with items whose availability is zero.
 void setCollabSpace(java.lang.String collabSpace)
          Sets the collaboration space.
 void setEnabled(boolean enabled)
          Sets the flag indicating whether the partner accepts this request.
 void setName(java.lang.String name)
          Sets the unique identifier for a partner.
 void setPolicy(java.lang.String policy)
          Sets the policy name.
 void setRequestProperties( TypedProperty requestProperties)
          Sets the request properties for the policy.
 void setShoppingCartTransferRequest(com.ibm.commerce.domain.order.ShoppingCartTransferRequest requestObj)
          Sets the value of the shopping cart transfer request data object.
 void setTimeout(long timeout)
          Sets the number of seconds that the command will wait for a response before failing the request.
 void setUomStandard(java.lang.String uomStandard)
          Sets the unit of measure standard.
 void validateParameters()
          Checks and validates the mandatory parameters.
 
Methods inherited from class com.ibm.commerce.command. BusinessPolicyCommandImpl
getPolicyId, getRequestProperties, setPolicyId
 
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, reset, 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.messaging.commands. TransferShopCartPolicyCmd
setShoppingCartTransferRequest
 
Methods inherited from interface com.ibm.commerce.command. BusinessPolicyCommand
getPolicyId, getRequestProperties, setPolicyId
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM copyright notice field
See Also:
Constant Field Values
Constructor Detail

TransferShopcartCmdImpl

public TransferShopcartCmdImpl()
Default constructor for TransferShopcartCmdImpl
Method Detail

validateParameters

public void validateParameters()
                        throws ECException
Checks and validates the mandatory parameters.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException - if the parameters are not valid.

performExecute

public void performExecute()
                    throws ECException
Executes the command.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException - Raised with _ERR_CMD_BAD_PARAM_CMD if the command cannot be executed.

setRequestProperties

public void setRequestProperties(TypedProperty requestProperties)
Sets the request properties for the policy.
Specified by:
setRequestProperties in interface BusinessPolicyCommand
Overrides:
setRequestProperties in class BusinessPolicyCommandImpl
Parameters:
requestProperties - The request properties.

getCollabSpace

public java.lang.String getCollabSpace()
Gets the Crossworlds collaboration space.
Returns:
The collaboration space name.

setCollabSpace

public void setCollabSpace(java.lang.String collabSpace)
Sets the collaboration space.

getName

public java.lang.String getName()
Gets the unique identifier for the partner.
Returns:
The unique partner id.

setName

public void setName(java.lang.String name)
Sets the unique identifier for a partner.
Parameters:
name - The unique identifier for the partner.

getPolicy

public java.lang.String getPolicy()
Gets the policy name.
Returns:
The policy name.

setPolicy

public void setPolicy(java.lang.String policy)
Sets the policy name.

getUomStandard

public java.lang.String getUomStandard()
Gets the unit of measure standard.
Returns:
The standard unit of measure.

setUomStandard

public void setUomStandard(java.lang.String uomStandard)
Sets the unit of measure standard.
Parameters:
uomStandard - The unit of measure standard to be used.

getBackOrders

public boolean getBackOrders()
Gets the flag indicating whether the partner accepts shopcarts with items whose availability is zero.
Returns:
The flag indicating whether the partner accepts shopcarts with items whose availability is zero.

setBackOrders

public void setBackOrders(boolean backOrders)
Sets the flag indicating whether the partner accepts shopcarts with items whose availability is zero.
Parameters:
backOrders - The flag indicating that the partner accepts shopcarts with items whose availability is zero.

getTimeout

public long getTimeout()
Gets the number of seconds that the command will wait for a response. If no response is received with that number of seconds, the command will fail.
Returns:
Returns The number of seconds before a timeout failure will occur.

setTimeout

public void setTimeout(long timeout)
Sets the number of seconds that the command will wait for a response before failing the request.
Parameters:
timeout - The number of seconds before a timeout failure will occur.

getEnabled

public boolean getEnabled()
Gets the flag indicating whether the partner accepts this request.
Returns:
The flag indicating if the partner accepts the request.

setEnabled

public void setEnabled(boolean enabled)
Sets the flag indicating whether the partner accepts this request.
Parameters:
enabled - The flag indicating if the partner accepts the request.

getAuthenticationRequired

public boolean getAuthenticationRequired()
Gets the flag indicating whether the partner requires a userid and password on the request message.
Returns:
The flag indicating if a userid and password are required.

setAuthenticationRequired

public void setAuthenticationRequired(boolean authenticationRequired)
Sets the flag indicating whether the partner requires a userid and password on the request message.
Parameters:
authenticationRequired - The flag indicating if a userid and password are required.

setShoppingCartTransferRequest

public void setShoppingCartTransferRequest(com.ibm.commerce.domain.order.ShoppingCartTransferRequest requestObj)
                                    throws ECSystemException
Sets the value of the shopping cart transfer request data object.
Throws:
ECSystemException - if the data object is not understood.