public class BatchOrderRequestCmdImpl extends ControllerCommandImpl implements BatchOrderRequestCmd
Modifier and Type | Field and Description |
---|---|
protected java.lang.Integer | authType
the authentication type
|
protected java.lang.Long | btAddressId
the addressId
|
protected long | buyerId
the Buyer Id
|
protected java.lang.Long | catalogId
the catalog Id
|
protected CIData | ciData
the CIData object
|
protected java.lang.Long | contractId
the contract Id
|
protected java.lang.Long | memberGroupId
the member group Id
|
protected java.lang.Long | oldOrderId
the old order Id
|
protected java.util.Vector | oldQuotes
the vector containing the old quotes
|
protected java.lang.Long | orderId
the order Id
|
protected java.lang.Long | organizationUnitId
the organization unit Id
|
protected com.ibm.commerce.me.objects.ProcurementProtocolAccessBean | protocolBean
the ProcurementProtocolAccessBean object
|
protected java.lang.Integer | protocolId
the protocol Id
|
protected java.lang.String | requisitionerId
the requisitioner Id
|
protected boolean | solicitedOrder
indicate whether order is solicited, default to false
|
protected java.lang.Long | stAddressId
the ship to address Id
|
protected java.lang.Integer | storeId
the Store Id
|
protected long | supplierId
the Supplier Id
|
Constructor and Description |
---|
BatchOrderRequestCmdImpl()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void | changeOrderStatus()
check whether this is a solicited order or not based on shoppingCartId.
|
protected int | checkDuplicateOrderRequest()
Calls CheckBatchOrderRequestCmd to check whether the inbound message represents a duplicated order.
|
protected void | checkRegistration()
Check the user registration.
|
protected void | createOrderMessagingExtensionRecord(java.lang.Long orderRn)
Creates an order extension record.
|
protected void | deleteOldOrder(java.lang.Long oldOrderRn)
Delete the old order item from order with oldOrderRn as order id by calling the OrderItemMoveCmd
|
protected void | determineMappingProperties()
Set up the buyer and supplier mapping with BuyerSupplierMappingAccessbean.
|
protected void | doProcess()
The main business logic, processes the PurchaseOrderRequest message from the buyer organization using procurement system and creates an order.
|
java.lang.Integer | getAuthType()
Gets the authentication type
|
java.lang.Long | getBuyerId()
Gets the buyer id
|
java.lang.Long | getContractId()
Gets the contract id
|
java.lang.Long | getOrganizationUnitId()
Gets the organization unit id
|
java.lang.Integer | getProtocolId()
Gets the protocol id
|
java.lang.String | getRequisitionerId()
Gets the requisitioner id
|
java.lang.Integer | getStoreId()
Gets the store id
|
java.lang.Long | getSupplierId()
Gets the supplier id
|
protected void | initializeInputData()
Initializes the input data
|
boolean | isGeneric()
A user is generic till he logs on, so returns true.
|
protected boolean | isValidCredentials()
Checks the credentials of the user who has submitted this order.
|
void | performExecute()
If the checkParamateres are OK, authenticate the buyer and supplier credentials.
|
protected void | prepareOrder(java.lang.Integer aStoreId)
Business logic to prepare an order
|
protected void | processOrder(java.lang.Integer orgStoreId)
Business logic to process an order
|
protected void | processOrderItems()
Process the shopping cart items
|
protected void | retrieveUserInfo(java.lang.Long shoppingCartId)
Changes the Shopping cart status from "I" to "H" that is, requested status.
|
void | setAuthType(java.lang.Integer anAuthType)
Sets the authentication type
|
void | setBuyerId(java.lang.Long aBuyerId)
Sets the buyer organization id
|
protected void | setBuyerRequestProperties()
Sets the buyer request properties based on the protocol id and buyer id
|
void | setContractId(java.lang.Long aContractId)
Sets the contract id
|
void | setOrganizationUnitId(java.lang.Long orgUnit)
Sets the organization unit id
|
void | setProtocolId(java.lang.Integer aProtocolId)
Sets the protocol id
|
void | setRequestProperties(TypedProperty p)
The WebController calls the setRequestProperties method before invoking the execute method in this command.
|
void | setRequisitionerId(java.lang.String aRequisitionerId)
Sets the requisitioner id
|
void | setStoreId(java.lang.Integer aStoreId)
Sets the store id
|
void | setSupplierId(java.lang.Long aSupplierId)
Sets the supplier id
|
void | validateParameters()
Validate parameters, the validation includes checking whether buyer credential is null or empty and whether the protocol valid.
|
protected long buyerId
protected long supplierId
protected java.lang.Integer storeId
protected java.lang.Long orderId
protected java.lang.Long btAddressId
protected java.lang.Long stAddressId
protected CIData ciData
protected com.ibm.commerce.me.objects.ProcurementProtocolAccessBean protocolBean
protected java.lang.Integer protocolId
protected java.lang.Integer authType
protected java.lang.Long contractId
protected java.lang.Long catalogId
protected java.lang.Long memberGroupId
protected java.lang.Long oldOrderId
protected java.lang.String requisitionerId
protected java.lang.Long organizationUnitId
protected boolean solicitedOrder
protected java.util.Vector oldQuotes
protected void changeOrderStatus() throws ECException
protected int checkDuplicateOrderRequest() throws ECException
protected void checkRegistration() throws ECException
protected void createOrderMessagingExtensionRecord(java.lang.Long orderRn) throws ECException
protected void deleteOldOrder(java.lang.Long oldOrderRn) throws ECException
protected void determineMappingProperties()
protected void doProcess() throws ECException
public java.lang.Integer getAuthType()
public java.lang.Long getBuyerId()
public java.lang.Long getContractId()
public java.lang.Long getOrganizationUnitId()
public java.lang.Integer getProtocolId()
public java.lang.String getRequisitionerId()
public java.lang.Integer getStoreId()
public java.lang.Long getSupplierId()
protected void initializeInputData()
public boolean isGeneric()
protected boolean isValidCredentials() throws ECException
public void performExecute() throws ECException
protected void prepareOrder(java.lang.Integer aStoreId) throws ECException
protected void processOrder(java.lang.Integer orgStoreId) throws ECException
protected void processOrderItems() throws ECException
protected void retrieveUserInfo(java.lang.Long shoppingCartId) throws ECException
public void setAuthType(java.lang.Integer anAuthType)
public void setBuyerId(java.lang.Long aBuyerId)
protected void setBuyerRequestProperties()
public void setContractId(java.lang.Long aContractId)
public void setOrganizationUnitId(java.lang.Long orgUnit)
public void setProtocolId(java.lang.Integer aProtocolId)
public void setRequestProperties(TypedProperty p) throws ECException
public void setRequisitionerId(java.lang.String aRequisitionerId)
public void setStoreId(java.lang.Integer aStoreId)
public void setSupplierId(java.lang.Long aSupplierId)
public void validateParameters() throws ECException