com.ibm.commerce.requisitionlist.commands
Class RequisitionListDeleteCmdImpl

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.


Field Summary
protected  java.lang.Long[] iRequisitionListId
          the array of the requisition lists.
 
Fields inherited from class com.ibm.commerce.requisitionlist.commands.RequisitionListBaseCmdImpl
iOrderId, iRequisitionListName, iRequisitionListStatus
 
Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl
requestProperties, responseProperties, retriable, viewReqProperties
 
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.requisitionlist.commands.RequisitionListDeleteCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command.ECTargetableCommand
COPYRIGHT
 
Constructor Summary
RequisitionListDeleteCmdImpl()
           
 
Method Summary
protected  void action()
          The main action of the command.
protected  java.lang.Long[] getRequisitionListIds()
          Return an array of requisition lists.
 AccessVector getResources()
          It returns a list of order access beans.
 void performExecute()
          The main execution of the command.
 void setRequestProperties(TypedProperty reqProperties)
          The WebController calls this method before invoking the execute method in this command to set the request properties for this command.
 void setRequisitionListId(java.lang.Long id)
          Specifies the requisition list id to be deleted.
 void setRequisitionListId(java.lang.Long[] id)
          Specifies an array of requisition list ids to be deleted.
protected  void updateResponseView()
          Sets the response view - Redirect View.
 void validateParameters()
          Validate the input parameters.
 
Methods inherited from class com.ibm.commerce.requisitionlist.commands.RequisitionListBaseCmdImpl
copyOrder, copyOrder, copyOrderAccessBean, copyOrderItemAccessBean, copyOrderPayInfo, getName, getOrderId, getRequisitionListId, getStatus, reset, setDefaultRequisitionListStatus, setName, setOrderId, setStatus
 
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
 
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
 
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Field Detail

iRequisitionListId

protected java.lang.Long[] iRequisitionListId
the array of the requisition lists.
Constructor Detail

RequisitionListDeleteCmdImpl

public RequisitionListDeleteCmdImpl()
Method Detail

action

protected void action()
               throws java.sql.SQLException,
                      javax.ejb.CreateException,
                      javax.ejb.FinderException,
                      javax.naming.NamingException,
                      java.rmi.RemoteException,
                      ECException
The main action of the command.

It deletes the requisition lists.


getRequisitionListIds

protected java.lang.Long[] getRequisitionListIds()
Return an array of requisition lists.

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
Following copied from interface: com.ibm.commerce.command.ECCommand
Returns:
AccessVector - a vector of resource action pairs

performExecute

public void performExecute()
                    throws ECException
The main execution of the command. It calls the follwoing methods:
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

setRequestProperties

public void setRequestProperties(TypedProperty reqProperties)
                          throws ECException
Description copied from interface: ControllerCommand
The WebController calls this method before invoking the execute method in this command to set the request properties for this command. It is the responsibility of the implementer of the ControllerCommand to extract the required input parameters from the request properties and perform parameter checking.
Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class RequisitionListBaseCmdImpl
Following copied from interface: com.ibm.commerce.command.ControllerCommand
Parameters:
requestProperties - com.ibm.commerce.datatype.TypedProperty
Throws:
com.ibm.commerce.exception.ECException. -  

setRequisitionListId

public void setRequisitionListId(java.lang.Long id)
Description copied from interface: RequisitionListDeleteCmd
Specifies the requisition list id to be deleted.
Specified by:
setRequisitionListId in interface RequisitionListDeleteCmd
Overrides:
setRequisitionListId in class RequisitionListBaseCmdImpl

setRequisitionListId

public void setRequisitionListId(java.lang.Long[] id)
Description copied from interface: RequisitionListDeleteCmd
Specifies an array of requisition list ids to be deleted.
Specified by:
setRequisitionListId in interface RequisitionListDeleteCmd

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:

Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
ECException. -