com.ibm.commerce.order.commands
Class OrderTransferConfirmCmdImpl

java.lang.Object
  CacheableCommandImpl
      com.ibm.commerce.command.AbstractECTargetableCommand
          com.ibm.commerce.command.ControllerCommandImpl
              com.ibm.commerce.order.commands.OrderTransferConfirmCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, OrderTransferConfirmCmd, Protectable

public class OrderTransferConfirmCmdImpl
extends ControllerCommandImpl
implements OrderTransferConfirmCmd

Confirms successful transfer of an order to an external system.

Behaviour

The behaviour of the command is:

Update the OrderRelease record with an external reference string and external order identifier if specified.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
Copyright statement.
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.order.commands.OrderTransferConfirmCmd
defaultCommandClassName, NAME
Constructor Summary
OrderTransferConfirmCmdImpl()
Method Summary
java.lang.String getExternalOrderId()
Gets the external order identifier
java.lang.String getExternalOrderReference()
Gets the external order reference
java.lang.Long getOrderId()
Gets the order identifier
java.lang.String getStatusCode()
Gets the transfer confirmation status code
java.lang.String getStatusMessage()
Gets the transfer confirmation status message
void performExecute()
Contains the actual business logic of the command.
void reset()
This method should be called after a command has been executed to reset its states variables.
void setExternalOrderId(java.lang.String anExternalOrderId)
Sets the external order identifier.
void setExternalOrderReference(java.lang.String anExternalOrderReference)
Sets the external order reference.
void setOrderId(java.lang.Long anOrderId)
Sets the order identifier.
void setRequestProperties(TypedProperty reqParms)
The WebController calls the setRequestProperties method before invoking the execute method in this command.
void setStatusCode(java.lang.String astrStatusCode)
Sets the transfer confirmation status code
void setStatusMessage(java.lang.String astrStatusMessage)
Sets the transfer confirmation status message
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
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, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
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.ControllerCommand
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright statement.
See Also:
Constant Field Values
Constructor Detail

OrderTransferConfirmCmdImpl

public OrderTransferConfirmCmdImpl()
Method Detail

performExecute

public void performExecute()
                    throws ECException
Contains the actual business logic of the command.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException - Raised with message _ERR_CREATE_EXCEPTION if there is a javax.ejb.CreateException, _ERR_FINDER_EXCEPTION if there is a javax.ejb.FinderException, _ERR_NAMING_EXCEPTION if there is a javax.naming.NamingException, _ERR_REMOTE_EXCEPTION if there is a java.rmi.RemoteException.

setRequestProperties

public void setRequestProperties(TypedProperty reqParms)
                          throws ECApplicationException
The WebController calls the setRequestProperties method before invoking the execute method in this command.
Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class ControllerCommandImpl
Throws:
ECApplicationException

reset

public void reset()
This method should be called after a command has been executed to reset its states variables.
Overrides:
reset in class AbstractECTargetableCommand

getExternalOrderReference

public java.lang.String getExternalOrderReference()
Gets the external order reference
Returns:
Returns a String

setExternalOrderReference

public void setExternalOrderReference(java.lang.String anExternalOrderReference)
Sets the external order reference.
Specified by:
setExternalOrderReference in interface OrderTransferConfirmCmd
Parameters:
anExternalOrderReference - External order reference

getExternalOrderId

public java.lang.String getExternalOrderId()
Gets the external order identifier
Returns:
Returns a String

setExternalOrderId

public void setExternalOrderId(java.lang.String anExternalOrderId)
Sets the external order identifier.
Specified by:
setExternalOrderId in interface OrderTransferConfirmCmd
Parameters:
anExternalOrderId - External order identifier

getOrderId

public java.lang.Long getOrderId()
Gets the order identifier
Returns:
Returns a Long

setOrderId

public void setOrderId(java.lang.Long anOrderId)
Sets the order identifier.
Specified by:
setOrderId in interface OrderTransferConfirmCmd
Parameters:
anOrderId - Order identifier

getStatusCode

public java.lang.String getStatusCode()
Gets the transfer confirmation status code
Returns:
Returns a String

setStatusCode

public void setStatusCode(java.lang.String astrStatusCode)
Sets the transfer confirmation status code
Specified by:
setStatusCode in interface OrderTransferConfirmCmd

getStatusMessage

public java.lang.String getStatusMessage()
Gets the transfer confirmation status message
Returns:
Returns a String

setStatusMessage

public void setStatusMessage(java.lang.String astrStatusMessage)
Sets the transfer confirmation status message
Specified by:
setStatusMessage in interface OrderTransferConfirmCmd

Feedback