com.ibm.commerce.messaging.commands
Class GetPickPackListDetailCmdImpl

com.ibm.commerce.command.AbstractECTargetableCommand
  |
  +--com.ibm.commerce.command.ControllerCommandImpl
        |
        +--com.ibm.commerce.messaging.commands.GetPickPackListDetailCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, GetPickPackListDetailCmd, Protectable

public class GetPickPackListDetailCmdImpl
extends ControllerCommandImpl
implements GetPickPackListDetailCmd

Retrieves the pick ticket and packslips for the input pickbatch id and forwards to a viewtask which will compose the PickPackListDetails message to be sent to fulfillment center.


Field Summary
static java.lang.String COPYRIGHT
           
 
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.messaging.commands.GetPickPackListDetailCmd
defaultCommandClassName, NAME
 
Constructor Summary
GetPickPackListDetailCmdImpl()
          Constructs the GetPickPackListDetailCmdImpl object.
 
Method Summary
 java.lang.String getErrorTask()
          Returns the error task name
 java.lang.String getPickBatchId()
          Returns the pickbatch id
 AccessVector getResources()
          Returns the resources.
 java.lang.String getViewTask()
          Returns the view task name
 void performExecute()
          This is the real function part of the GetPickPackListDetail command - retrieve the pick ticket and pack slips for the given pick batch id.
 void setPickBatchId(java.lang.String pickbatch_id)
          This method sets the input pickbatch ID parameter.
 void setRequestProperties(TypedProperty hshReqParameters)
          This method extracts the required parameters from the request properties and sets it locally in the command.
 void validateParameters()
          Checks the validity of the parameters.
 
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
 
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
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, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Constructor Detail

GetPickPackListDetailCmdImpl

public GetPickPackListDetailCmdImpl()
Constructs the GetPickPackListDetailCmdImpl object.
Method Detail

getErrorTask

public java.lang.String getErrorTask()
Returns the error task name
Returns:
java.lang.String

getPickBatchId

public java.lang.String getPickBatchId()
Returns the pickbatch id
Returns:
java.lang.String

getResources

public AccessVector getResources()
                          throws ECException
Returns the resources.
Specified by:
getResources in interface ECCommand
Overrides:
getResources in class AbstractECTargetableCommand
Returns:
com.ibm.commerce.accesscontrol.AccessVector
Throws:
ECException - The exception description.

getViewTask

public java.lang.String getViewTask()
Returns the view task name
Returns:
java.lang.String

performExecute

public void performExecute()
                    throws ECException
This is the real function part of the GetPickPackListDetail command - retrieve the pick ticket and pack slips for the given pick batch id.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

setPickBatchId

public void setPickBatchId(java.lang.String pickbatch_id)
This method sets the input pickbatch ID parameter.
Parameters:
pickbatch_id - java.lang.String

setRequestProperties

public void setRequestProperties(TypedProperty hshReqParameters)
                          throws ECApplicationException
This method extracts the required parameters from the request properties and sets it locally in the command. It throws an ECApplicationException if a required parameter is missing.
Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class ControllerCommandImpl
Parameters:
reqParms - com.ibm.commerce.datatype.TypedProperty
Throws:
ECApplicationException -  

validateParameters

public void validateParameters()
                        throws ECException
Checks the validity of the parameters. It checks for the presence or absence of parameters and the range of values.

Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException -