com.ibm.commerce.requisitionlist.commands
Class RequisitionListDeleteCmdImpl
java.lang.Object
CacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.ControllerCommandImpl
com.ibm.commerce.requisitionlist.commands.RequisitionListBaseCmdImpl
com.ibm.commerce.requisitionlist.commands.RequisitionListDeleteCmdImpl
- All Implemented Interfaces:
- AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, RequisitionListDeleteCmd
- public class RequisitionListDeleteCmdImpl
- extends RequisitionListBaseCmdImpl
- implements RequisitionListDeleteCmd
Delete one or more requisition lists. This command uses the following AccessBeans:
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
COPYRIGHT
IBM copyright notice field. |
protected java.lang.Long[] |
iRequisitionListId
the array of the requisition lists. |
Methods inherited from class com.ibm.commerce.requisitionlist.commands.RequisitionListBaseCmdImpl |
copyOrder, copyOrder, copyOrderAccessBean, copyOrderItemAccessBean, copyOrderPayInfo, getName, getOrderId, getRequisitionListId, getStatus, reset, setDefaultRequisitionListStatus, setName, setOrderId, setRequisitionListStatus, setStatus |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- IBM copyright notice field.
- See Also:
- Constant Field Values
iRequisitionListId
protected java.lang.Long[] iRequisitionListId
- the array of the requisition lists.
RequisitionListDeleteCmdImpl
public RequisitionListDeleteCmdImpl()
action
protected void action()
throws java.sql.SQLException,
CreateException,
FinderException,
javax.naming.NamingException,
java.rmi.RemoteException,
ECException
- The main action of the command.
It deletes the requisition lists.
-
- Throws:
- ECException
- FinderException
- CreateException
- javax.naming.NamingException
- java.rmi.RemoteException
- SQLException
getRequisitionListIds
protected java.lang.Long[] getRequisitionListIds()
- Return an array of requisition lists.
-
- Returns:
- requisition list id.
getResources
public AccessVector getResources()
throws ECException
- It returns a list of order access beans.
-
- Specified by:
- getResources in interface ECCommand
- Overrides:
- getResources in class AbstractECTargetableCommand
-
- Returns:
- AccessVector.
- Throws:
- ECException
performExecute
public void performExecute()
throws ECException
- The main execution of the command. It calls the follwoing methods:
- action()
- updateResponseView()
-
- Specified by:
- performExecute in interface ECCommand
- Overrides:
- performExecute in class AbstractECTargetableCommand
-
- Throws:
- ECException
setRequestProperties
public void setRequestProperties(TypedProperty reqProperties)
throws ECException
- Sets the request properties.
-
- Specified by:
- setRequestProperties in interface ControllerCommand
- Overrides:
- setRequestProperties in class RequisitionListBaseCmdImpl
-
- Throws:
- ECException
setRequisitionListId
public void setRequisitionListId(java.lang.Long[] id)
- Specifies the requisition list id to be deleted.
-
- Specified by:
- setRequisitionListId in interface RequisitionListDeleteCmd
-
- Parameters:
- id - an array of requisition list ids.
setRequisitionListId
public void setRequisitionListId(java.lang.Long id)
- Specifies the requisition list id to be deleted.
-
- Specified by:
- setRequisitionListId in interface RequisitionListDeleteCmd
- Overrides:
- setRequisitionListId in class RequisitionListBaseCmdImpl
-
- Parameters:
- id - requisition list id.
updateResponseView
protected void updateResponseView()
- Sets the response view - Redirect View. It also removes the output parameter requisitionListId.
-
- Overrides:
- updateResponseView in class RequisitionListBaseCmdImpl
validateParameters
public void validateParameters()
throws ECException
- Validate the input parameters.
It checks the following mandatory parameters:
It also checks the validation of the follwoing parameter values:
Exception:
- It throws an ECApplicationException with the message key _ERR_BAD_MISSING_CMD_PARAMETER, if the input parameter requisitionListId is not found.
- It throws an ECApplicationException with the message key _ERR_INVALID_ORDER_REFNUM, if the input parameter requisitionListId is not a valid order id.
-
- Specified by:
- validateParameters in interface ECCommand
- Overrides:
- validateParameters in class AbstractECTargetableCommand
-
- Throws:
- ECException
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.