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, setRequisitionListType
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public RequisitionListCopyCmdImpl()
public java.lang.Long getRequisitionListId()
getRequisitionListId
in interface RequisitionListCopyCmd
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
ECException
public void performExecute() throws ECException
setDefaultRequisitionListStatus()
action()
updateResponseView()
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void setName(java.lang.String name)
setName
in interface RequisitionListCopyCmd
name
- the requisition list name.public void setOrderId(java.lang.Long id)
setOrderId
in interface RequisitionListCopyCmd
id
- order id.public void setStatus(java.lang.String status)
setStatus
in interface RequisitionListCopyCmd
status
- the status of the created requisition list.public void validateParameters() throws ECException
It checks the following mandatory parameters:
Exception:
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
public void setType(java.lang.String type)
setType
in interface RequisitionListCopyCmd
type
- the type of the created requisition list.