java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl | +--com.ibm.commerce.inventory.commands.ReleaseManifestCmdImpl
Default implementation of the ReleaseManifestCmd
interface.
Updates order status and fulfillment status after the order release is packed
and shipped.
This command will call
UpdateReleaseManifestStatusCmd
to update the order status and
fulfillment status. If the order release is packed and shipped, the status of
the order release will be set to 'MNF', the fulfillment status of all
the order items in the order release will be set to 'SHIP', and the
status of the order will be set to 'S' if all order items in the order
are packed and shipped.
Calls GenericRedirectView upon successful completion, or EntityAdminErrorView, upon failure. Utilizes these access beans:
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT The internal copyright field. |
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.inventory.commands. ReleaseManifestCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.tools.common. ECToolsConstants |
EC_LINE_SEPARATOR,
EC_TOOLS_FULFILLMENT_CENTER_ID,
EC_TOOLS_MERCHANT_CENTER_URL,
EC_TOOLS_STORE_LANGUAGE_URL,
EC_TOOLS_STORES_ACCESS_CONTROL_REQUIRED,
EC_TOOLS_STORES_EMPTY,
EC_TOOLS_STORES_NO_ACCESS,
EC_TOOLS_STORES_NOT_ADMINISTRATOR,
EC_XML,
EC_XMLFILE,
EC_XMLFILEOBJECT,
EC_XMLOBJECT,
EC_XMLSTRING |
Constructor Summary | |
---|---|
ReleaseManifestCmdImpl() |
Method Summary | |
---|---|
protected
void |
checkNumberFormatException() Checks if the numeric fields are not in the right numeric format. |
java.lang.String |
getManifestFound() Returns the flag to indicate if there is any shipment tracking information for the order release is found. |
java.lang.String |
getOrdersId() Returns the order identifier. |
java.lang.String |
getOrdReleaseNum() Returns order release number. |
AccessVector |
getResources() Gets the access vector accessed by this command. |
void |
performExecute() Performs the status updates by calling UpdateReleaseManifestStatusCmd . |
void |
setManifestFound(java.lang.String newManifestFound) Sets the flag to indicate if there is any shipment tracking information for the order release is found. |
void |
setOrdersId(java.lang.String newOrdersId) Sets the order identifier. |
void |
setOrdReleaseNum(java.lang.String newOrdReleaseNum) Sets the order release number. |
void |
setRequestProperties(
TypedProperty reqParms) Set request properties. |
void |
validateParameters() Checks the information needed for updating the order and fufillment status. |
Methods inherited from class com.ibm.commerce.tools.command. ToolsControllerCommandImpl |
getViewInputProperties |
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
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,
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.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,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public ReleaseManifestCmdImpl()
Method Detail |
---|
public java.lang.String getManifestFound()
public java.lang.String getOrdersId()
setOrdersId(java.lang.String)
public java.lang.String getOrdReleaseNum()
setOrdReleaseNum(java.lang.String)
public void setManifestFound(java.lang.String newManifestFound)
newManifestFound
- flag to identify if shipment tracking
infopublic void setOrdersId(java.lang.String newOrdersId)
ReleaseManifestCmd
setOrdersId
in interface
ReleaseManifestCmd
newOrdersId
- orders identifierpublic void setOrdReleaseNum(java.lang.String newOrdReleaseNum)
ReleaseManifestCmd
setOrdReleaseNum
in interface
ReleaseManifestCmd
newOrdReleaseNum
- java.lang.Stringpublic void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
ORDERS_ID
and
ORDRELEASE_NUM
, if they exist in reqParms.
setRequestProperties
in interface
ReleaseManifestCmd
setRequestProperties
in class
ToolsControllerCommandImpl
reqParms
- parameters used for command
ECApplicationException
public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECApplicationException
- If mandatory * parameters are not passed
in, specify _ERR_MISSING_CMD_PARAMETER.ECException
protected void checkNumberFormatException() throws ECApplicationException
ECApplicationException
- Specifies _ERR_CMD_INVALID_PARAM and
indicates which field is bad.public AccessVector getResources() throws ECException
Utilizes these access beans:
getResources
in interface
ECCommand
getResources
in class
AbstractECTargetableCommand
ECException
-
public void performExecute() throws ECException
UpdateReleaseManifestStatusCmd
. After the order release is
packed and shipped, the status of the order release will be set to
'MNF', the fulfillment status of all the order items in the order
release will be set to 'SHIP', and the status of the order will be set
to 'S' if all order items in the order are packed and shipped.
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException