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.ReleaseShipUpdateCmdImpl
Default implementation of the ReceiptCreateCmd
interface.
Updates carrier and shipment tracking information after the order release is
packed and shipped.
If the redirect URL is not specified, calls GenericRedirectView upon successful completion, or GenericApplicationError, 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. ReleaseShipUpdateCmd |
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 | |
---|---|
ReleaseShipUpdateCmdImpl() |
Method Summary | |
---|---|
protected
void |
checkIllegalArgumentException() Verifies that the DATESHIPPED field is in the correct
timestamp format. |
protected
void |
checkNumberFormatException() Checks that the numeric fields are in the correct numeric format. |
java.lang.String |
getDateShipped() Returns the date the package shipped. |
java.lang.String |
getLastupdate() Returns the timestamp of last update. |
java.lang.String |
getManifestId() Returns the manifest (package) identifier. |
java.lang.String |
getManifestStatus() Returns the status of the manifest (package). |
java.lang.String |
getPackageId() Returns package identifier. |
java.lang.String |
getPickupRecordId() Returns the pickup record identifier. |
AccessVector |
getResources() Gets the access vector accessed by this command. |
java.lang.String |
getSetCCurr() Returns the currency in which the shipment was charged. |
java.lang.String |
getShipModeId() Returns the shipping provider. |
java.lang.String |
getShippingCosts() Returns the shipping costs. |
java.lang.String |
getTrackingId() Returns the tracking identifier. |
java.lang.String |
getWeight() Returns the weight of the package. |
java.lang.String |
getWeightMeasure() Returns the unit of measure of the package weight. |
protected
void |
handleSubmitError(
ECException e) Constructs and returns the error message. |
void |
performExecute() Performs the updating of carrier and shipment tracking information after the order release is packed and shipped. |
void |
setDateShipped(java.lang.String newDateShipped) Sets the date the package shipped. |
void |
setLastupdate(java.lang.String newLastupdate) Sets the timestamp of last update. |
void |
setManifestId(java.lang.String newManifestId) Sets the manifest (package) identifier. |
void |
setManifestStatus(java.lang.String newManifestStatus) Sets the status of the manifest (package). |
void |
setPackageId(java.lang.String newPackageId) Sets the package identifier. |
void |
setPickupRecordId(java.lang.String newPickupRecordId) Sets the pickup record identifier. |
void |
setSetCCurr(java.lang.String newSetCCurr) Sets the currency in which the shipment was charged. |
void |
setShipModeId(java.lang.String newShipModeId) Sets the shipping provider. |
void |
setShippingCosts(java.lang.String newShippingCosts) Sets the shipping costs. |
void |
setTrackingId(java.lang.String newTrackingId) Sets the tracking identifier. |
void |
setWeight(java.lang.String newWeight) Sets the weight of the package. |
void |
setWeightMeasure(java.lang.String newWeightMeasure) Sets the unit of measure of the package weight. |
void |
validateParameters() Updates the carrier and shipment tracking information and sets the information into the command local variables. |
Methods inherited from class com.ibm.commerce.tools.command. ToolsControllerCommandImpl |
getViewInputProperties,
setRequestProperties |
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,
setRequestProperties,
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 ReleaseShipUpdateCmdImpl()
Method Detail |
---|
public java.lang.String getDateShipped()
public java.lang.String getLastupdate()
public java.lang.String getManifestId()
public java.lang.String getManifestStatus()
public java.lang.String getPackageId()
public java.lang.String getPickupRecordId()
public java.lang.String getSetCCurr()
public java.lang.String getShipModeId()
public java.lang.String getShippingCosts()
public java.lang.String getTrackingId()
public java.lang.String getWeight()
public java.lang.String getWeightMeasure()
public void setDateShipped(java.lang.String newDateShipped)
ReleaseShipUpdateCmd
setDateShipped
in interface
ReleaseShipUpdateCmd
newDateShipped
- shipped datepublic void setLastupdate(java.lang.String newLastupdate)
ReleaseShipUpdateCmd
setLastupdate
in interface
ReleaseShipUpdateCmd
newLastupdate
- last update timestamp
stringpublic void setManifestId(java.lang.String newManifestId)
ReleaseShipUpdateCmd
setManifestId
in interface
ReleaseShipUpdateCmd
newManifestId
- manifest idpublic void setManifestStatus(java.lang.String newManifestStatus)
ReleaseShipUpdateCmd
setManifestStatus
in interface
ReleaseShipUpdateCmd
newManifestStatus
- manifest statuspublic void setPackageId(java.lang.String newPackageId)
ReleaseShipUpdateCmd
setPackageId
in interface
ReleaseShipUpdateCmd
newPackageId
- package idpublic void setPickupRecordId(java.lang.String newPickupRecordId)
ReleaseShipUpdateCmd
setPickupRecordId
in interface
ReleaseShipUpdateCmd
newPickupRecordId
- pickup record idpublic void setSetCCurr(java.lang.String newSetCCurr)
ReleaseShipUpdateCmd
setSetCCurr
in interface
ReleaseShipUpdateCmd
newSetCCurr
- shipment currencypublic void setShipModeId(java.lang.String newShipModeId)
ReleaseShipUpdateCmd
setShipModeId
in interface
ReleaseShipUpdateCmd
newShipModeId
- shipping providerpublic void setShippingCosts(java.lang.String newShippingCosts)
ReleaseShipUpdateCmd
setShippingCosts
in interface
ReleaseShipUpdateCmd
newShippingCosts
- shipping costspublic void setTrackingId(java.lang.String newTrackingId)
ReleaseShipUpdateCmd
setTrackingId
in interface
ReleaseShipUpdateCmd
newTrackingId
- shipment tracking idpublic void setWeight(java.lang.String newWeight)
ReleaseShipUpdateCmd
setWeight
in interface
ReleaseShipUpdateCmd
newWeight
- package weightpublic void setWeightMeasure(java.lang.String newWeightMeasure)
ReleaseShipUpdateCmd
setWeightMeasure
in interface
ReleaseShipUpdateCmd
newWeightMeasure
- weight unitspublic void validateParameters() throws ECException
MANIFEST_ID
.
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECApplicationException
- If the XMLObject cannot be parsed as
expected, throw ECApplicationException. If the manifest id is not specified,
_ERR_BAD_MISSING_CMD_PARAMETERECException
handleSubmitError(com.ibm.commerce.exception.ECException)
public AccessVector getResources() throws ECException
Uses
ManifestAccessBean
to get order id, to get
OrderItemAccessBean
to get fulfillment center id to get
FulfillmentCenterAccessBean
which is returned.
getResources
in interface
ECCommand
getResources
in class
AbstractECTargetableCommand
ECException
-
handleSubmitError(com.ibm.commerce.exception.ECException)
public void performExecute() throws ECException
ManifestAccessBean
.
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
-
checkIllegalArgumentException()
,
checkNumberFormatException()
,
handleSubmitError(com.ibm.commerce.exception.ECException)
protected void checkNumberFormatException() throws ECApplicationException
ECApplicationException
- Specifies message _ERR_CMD_INVALID_PARAM
indicating which field is bad.protected void checkIllegalArgumentException() throws ECApplicationException
DATESHIPPED
field is in the correct
timestamp format.
ECApplicationException
- Specifies
_ERR_CMD_INVALID_PARAM.protected void handleSubmitError(ECException e) throws ECApplicationException
e
- exception
ECApplicationException
- Throw ECApplicationException with the newly
constructed message.