public class RequisitionListCopyCmdImpl extends RequisitionListBaseCmdImpl implements RequisitionListCopyCmd
Name | Type | Requirement | Description |
---|---|---|---|
orderId | Long | mandatory | The id of the source order or requisition list to be copied. |
name | String | optional | The name of the created requisition list |
status/type(CO) | Char | optional | The status/type(CO) of the created requisition list. The valid values are 'Y' and 'Z'(status)/"PRL" and "SRL"(type). The default value is 'Y'/"PRL" |
Name | Type | Description |
---|---|---|
requisitionListId | Long | the newly created requisition list id |
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The IBM copyright notice field.
|
Constructor and Description |
---|
RequisitionListCopyCmdImpl()
This is the default constructor of this class.
|
Modifier and Type | Method and Description |
---|---|
protected void | action()
This method is the main action of the command.
|
protected long | checkQuantity(OrderAccessBean orderAB)
This method performs the quantity check.
|
protected void | checkSize(long numToCopy)
This method checks whether copying the items would exceed the size threshold for requisition list.
|
protected void | checkSizeAndQuantity(OrderAccessBean orderAB)
This method checks whether the operation can cause the size of the requisition list, as well as the requested quantity, to exceed the defined business threshold.
|
java.lang.Long | getRequisitionListId()
This method returns the newly created requisition list id.
|
AccessVector | getResources()
This method returns the store access bean and the order access bean.
|
void | performExecute()
This method is the main execution of the command.
|
void | setName(java.lang.String name)
This method specifies the name of the created requisition list.
|
void | setOrderId(java.lang.Long id)
This method specifies the source order or requisition list id.
|
void | setStatus(java.lang.String status)
This method sets the status of the created requisition list.
|
void | setType(java.lang.String type)
This method sets the type of the created requisition list.
|
protected void | updateResponseView()
This method sets the response view - Redirect View.
|
void | validateParameters()
This method validates the input parameters.
|
public static final java.lang.String COPYRIGHT
public RequisitionListCopyCmdImpl()
protected void action() throws java.sql.SQLException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException, ECException
It calls copyOrder() to copy the order.
public java.lang.Long getRequisitionListId()
public AccessVector getResources() throws ECException
public void performExecute() throws ECException
public void setName(java.lang.String name)
public void setOrderId(java.lang.Long id)
public void setStatus(java.lang.String status)
protected void updateResponseView()
public void validateParameters() throws ECException
It checks the following mandatory parameters:
Exception:
public void setType(java.lang.String type)
protected void checkSizeAndQuantity(OrderAccessBean orderAB) throws ECException
protected long checkQuantity(OrderAccessBean orderAB) throws ECException
protected void checkSize(long numToCopy) throws ECException