java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.returns.commands.ResolveReturnFulfillmentCenterCmdImpl
Default implementation of the ResolveReturnFulfillmentCenterCmd
interface. Command used to determine where customer should return merchandise.
This implementation uses the default return fulfillment center for the store
(STORE.RTNFFMCTR_ID).
Utilizes these access beans
Field Summary |
---|
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.returns.commands. ResolveReturnFulfillmentCenterCmd |
COPYRIGHT,
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand |
COPYRIGHT |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
ResolveReturnFulfillmentCenterCmdImpl() ResolveReturnFulfillmentCenterCmdImpl constructor. |
Method Summary | |
---|---|
protected
java.lang.Integer |
determineStoreDefaultReturnFulfillmentCenter() Returns default return fulfillment center for store |
void |
performExecute() Execute the command. |
void |
reset() This method should be called after a command has been executed to reset its states variables. |
void |
setRMAAB(
RMAAccessBean rmaAB) Set the RMA being accessed. |
void |
setRMAItemABVector(java.util.Vector vRMAItemAB) Set the RMA items to be evaluated. |
void |
validateParameters() Check mandatory parameters. |
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 |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Constructor Detail |
---|
public ResolveReturnFulfillmentCenterCmdImpl()
Method Detail |
---|
protected java.lang.Integer determineStoreDefaultReturnFulfillmentCenter() throws ECException
com.ibm.commerce.exception.ECSystemExceptionn
- If there is no
ReturnFulfillmentCenter, throws com.ibm.commerce.exception.ECSystemException
with ECMessage._ERR_CANNOT_DETERMINE_RETURN_FFMCENTERECException
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
com.ibm.commerce.exception.ECSystemExceptionn
- If there is no
ReturnFulfillmentCenter, throws com.ibm.commerce.exception.ECSystemException
with ECMessage._ERR_CANNOT_DETERMINE_RETURN_FFMCENTERECException
public void reset()
AbstractECTargetableCommand
reset
in class
AbstractECTargetableCommand
public void setRMAAB(RMAAccessBean rmaAB)
setRMAAB
in interface
ResolveReturnFulfillmentCenterCmd
rmaAB
- the RMA access bean.public void setRMAItemABVector(java.util.Vector vRMAItemAB)
setRMAItemABVector
in interface
ResolveReturnFulfillmentCenterCmd
vRMAItemAB
- vector of RMA item access
beans.public void validateParameters() throws ECException
Parameters
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECApplicationException
- If there is no RMAccessBean or there is no
vector of RMAItemAccessBeans, throws
com.ibm.commerce.exception.ECApplicationException with
ECMessage._ERR_BAD_MISSING_CMD_PARAMETERECException