com.ibm.commerce.messaging.commands
Class OrderStatusNotifySendCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.messaging.commands.OrderStatusNotifySendCmdImpl
- All Implemented Interfaces:
- ECCommand, OrderStatusNotifySendCmd, TaskCommand
- public class OrderStatusNotifySendCmdImpl
- extends TaskCommandImpl
- implements OrderStatusNotifySendCmd
Implementation of the OrderStatusNotifySendCmd interface.
Field Summary |
static java.lang.String |
COPYRIGHT
The internal copyright field. |
Method Summary |
java.lang.Integer |
getMsgType()
returns the message type ID |
TypedProperty |
getOs_prop()
returns the order status properties |
java.lang.Integer |
getStoreID()
returns the ID of the store for which the command is running |
boolean |
isReadyToCallExecute()
returns ready to call execute flag. |
void |
performExecute()
Contains the actual business logic of the command
It should be implemented by all the command writer. |
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.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, 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.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- The internal copyright field.
OrderStatusNotifySendCmdImpl
public OrderStatusNotifySendCmdImpl()
- OrderStatusNotifySendCmdImpl constructor .
getMsgType
public java.lang.Integer getMsgType()
- returns the message type ID
getOs_prop
public TypedProperty getOs_prop()
- returns the order status properties
getStoreID
public java.lang.Integer getStoreID()
- returns the ID of the store for which the command is running
isReadyToCallExecute
public boolean isReadyToCallExecute()
- returns ready to call execute flag. This is default implementation.
- Overrides:
isReadyToCallExecute
in class AbstractECCommand
- Following copied from class:
com.ibm.commerce.command.AbstractECCommand
- Returns:
- boolean - true if we can execute the command
false if we canot execute the command
performExecute
public void performExecute()
throws ECException
- Description copied from interface:
ECCommand
- Contains the actual business logic of the command
It should be implemented by all the command writer.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
setMsgType
public void setMsgType(java.lang.Integer newMsgType)
- sets the message type ID
setOrderStatusProperties
public void setOrderStatusProperties(TypedProperty prop)
- sets the order status properties
- Specified by:
setOrderStatusProperties
in interface OrderStatusNotifySendCmd
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
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 AbstractECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
ECException.
-