com.ibm.commerce.inventory.commands
Interface ExpectedInventoryRecordCreateCmd

All Superinterfaces:
AccCommand, ControllerCommand, ECCommand, Protectable, ToolsControllerCommand
All Known Implementing Classes:
ExpectedInventoryRecordCreateCmdImpl

public interface ExpectedInventoryRecordCreateCmd
extends ToolsControllerCommand

Create an expected inventory record.

This command requires to have the store id set in the command context.

Parameters

EC_XMLObject
An input xml_string that contains all required data for creating new expected inventory record.

Example xml_string:

<?xml version="1.0" encoding="UTF-8"?> <XML> <XMLFile>inventory.VendorWizard</XMLFile> <externalId>External id 1234</externalId> <orderDate>2001-10-03 00:00:00.0</orderDate> <vendorId>200</vendorId> <addedSize>2</addedSize> <addedRaItem> <expectedDate>2001-10-25 00:00:00.0</expectedDate> <ffmcenterId>300</ffmcenterId> <itemspcId>400</itemspcId> <qtyOrdered>230</qtyOrdered> <raDetailComment>Comment for item 1</raDetailComment> </addededRaItem> <addedRaItem> <expectedDate>2001-10-25 00:00:00.0</expectedDate> <ffmcenterId>300</ffmcenterId> <itemspcId>410</itemspcId> <qtyOrdered>250</qtyOrdered> <raDetailComment>Comment for item 2</raDetailComment> </addededRaItem> </XML>
URL
The URL to be called when the command completes successfully.

Response Parameters

raId
Return the identifier of the new expected inventory record.

Exceptions

When the required fields are missing or not in the right data type, this command will throw exception to indicate which field is missing or bad.


Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String defaultCommandClassName
          The default implementation class name.
static java.lang.String NAME
           
 
Method Summary
 void setAddedItem(java.util.Vector newAddedItem)
          Set the list of items included in the new expected inventory record.
 void setAddedSize(java.lang.String newAddedSize)
          Set the number of items included in the new expected inventory record.
 void setExternalId(java.lang.String newExternalId)
          Set the external identifier.
 void setOrderDate(java.lang.String newOrderDate)
          Set the date this order is created with the vendor.
 void setVendorId(java.lang.String newVendorId)
          Set the vendor identifer.
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
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, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT

defaultCommandClassName

public static final java.lang.String defaultCommandClassName
The default implementation class name.

NAME

public static final java.lang.String NAME
Method Detail

setAddedItem

public void setAddedItem(java.util.Vector newAddedItem)
Set the list of items included in the new expected inventory record.
Parameters:
newAddedItem - java.util.Vector

setAddedSize

public void setAddedSize(java.lang.String newAddedSize)
Set the number of items included in the new expected inventory record.
Parameters:
newAddedSize - int

setExternalId

public void setExternalId(java.lang.String newExternalId)
Set the external identifier.
Parameters:
newExternalId - java.lang.String

setOrderDate

public void setOrderDate(java.lang.String newOrderDate)
Set the date this order is created with the vendor.
Parameters:
newOrderDate - java.lang.String

setVendorId

public void setVendorId(java.lang.String newVendorId)
Set the vendor identifer.
Parameters:
newVendorId - java.lang.String