com.ibm.commerce.messaging.commands
Class OrderStatusNotifySendCmdImpl

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

public class OrderStatusNotifySendCmdImpl
extends TaskCommandImpl
implements OrderStatusNotifySendCmd

Implementation of the OrderStatusNotifySendCmd interface.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          The internal copyright field.
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.messaging.commands. OrderStatusNotifySendCmd
defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
OrderStatusNotifySendCmdImpl()
          OrderStatusNotifySendCmdImpl constructor .
 
Method Summary
 java.lang.Integer getMsgType()
          Gets the message type
  TypedProperty getOs_prop()
          Gets the order status property
 java.lang.Integer getStoreID()
          Gets the store identifier
 boolean isReadyToCallExecute()
          isReadyToCallExecute method
 void performExecute()
          constructs and sends the message using the sendTransacted messaging service
 void setMsgType(java.lang.Integer newMsgType)
          sets the message type ID
 void setOrderStatusProperties( TypedProperty prop)
          sets the order status properties
 void setStoreID(java.lang.Integer new_store_id)
          sets the ID of the store for which the command is running
 void validateParameters()
          This method performs check if the order status properties, set by setOs_prop() method, contain required attributes and if the field store_id was set, using the setStoreID() method.
 
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, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

OrderStatusNotifySendCmdImpl

public OrderStatusNotifySendCmdImpl()
OrderStatusNotifySendCmdImpl constructor .
Method Detail

validateParameters

public void validateParameters()
                        throws ECException
This method performs check if the order status properties, set by setOs_prop() method, contain required attributes and if the field store_id was set, using the setStoreID() method. The required attributes are: order status ID, with name equal to OrderFulfillmentStatusConstants.ORDER_STATUS_ID order status items, with name equal to OrderFulfillmentStatusConstants.ITEMS_VECTOR. The type of this attribute is java.util.vector.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException - Raised with _ERR_CMD_BAD_PARAM_CMD whenever the store Id is null, the order Id is null or the vector of order items is null

getMsgType

public java.lang.Integer getMsgType()
Gets the message type
Returns:
MsgType The message type Id

getOs_prop

public TypedProperty getOs_prop()
Gets the order status property
Returns:
os_prop The order status property

getStoreID

public java.lang.Integer getStoreID()
Gets the store identifier
Returns:
store_id The identifier of the store for which the command is running

isReadyToCallExecute

public boolean isReadyToCallExecute()
isReadyToCallExecute method
Overrides:
isReadyToCallExecute in class AbstractECTargetableCommand
Returns:
true if the command can be executed false if the command cannot be executed. This is default implementation.

performExecute

public void performExecute()
                    throws ECException
constructs and sends the message using the sendTransacted messaging service
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException

setMsgType

public void setMsgType(java.lang.Integer newMsgType)
sets the message type ID
Parameters:
newMsgType - The messagty type identifier

setOrderStatusProperties

public void setOrderStatusProperties(TypedProperty prop)
sets the order status properties
Specified by:
setOrderStatusProperties in interface OrderStatusNotifySendCmd
Parameters:
prop - The order status properties

setStoreID

public void setStoreID(java.lang.Integer new_store_id)
sets the ID of the store for which the command is running
Specified by:
setStoreID in interface OrderStatusNotifySendCmd
Parameters:
new_store_id - The store identifier