public class RequisitionListCopyCmdImpl extends RequisitionListBaseCmdImpl implements RequisitionListCopyCmd
RequisitionListCopyCmd controller command.
| 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.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
RequisitionListCopyCmdImpl()
This is the default constructor of this class.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
validateParameters()
This method validates the input parameters.
|
deleteRequisitionListHelper, getStatus, getType, reset, setRequestProperties, setRequisitionListStatus, setRequisitionListTypecheckPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiesaccessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesfulfills, getOwnerpublic static final java.lang.String COPYRIGHT
public RequisitionListCopyCmdImpl()
public java.lang.Long getRequisitionListId()
getRequisitionListId in interface RequisitionListCopyCmdpublic AccessVector getResources() throws ECException
getResources in interface ECCommandgetResources in class AbstractECTargetableCommandECExceptionpublic void performExecute()
throws ECException
setDefaultRequisitionListStatus()action()updateResponseView()performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic void setName(java.lang.String name)
setName in interface RequisitionListCopyCmdname - the requisition list name.public void setOrderId(java.lang.Long id)
setOrderId in interface RequisitionListCopyCmdid - order id.public void setStatus(java.lang.String status)
setStatus in interface RequisitionListCopyCmdstatus - the status of the created requisition list.public void validateParameters()
throws ECException
It checks the following mandatory parameters:
Exception:
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECExceptionpublic void setType(java.lang.String type)
setType in interface RequisitionListCopyCmdtype - the type of the created requisition list.