com.ibm.commerce.order.commands
Class ScheduledOrderCancelCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.ControllerCommandImpl
                    |
                    +--com.ibm.commerce.order.commands.ScheduledOrderCancelCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, ScheduledOrderCancelCmd

public class ScheduledOrderCancelCmdImpl
extends ControllerCommandImpl
implements ScheduledOrderCancelCmd

Cancels execution of a recurring order submitted by the OrderSchedule command.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          IBM copyright notice field.
 
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.order.commands. ScheduledOrderCancelCmd
NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
ScheduledOrderCancelCmdImpl()
           
 
Method Summary
 java.lang.Long getJobId()
          Gets scheduler job id which needs to be disabled.
 java.lang.Long getOrderId()
          Gets order identifier
  RemoveJobCmd getRemoveJobCmd()
          Gets the instance of the RemoveJob command.
  AccessVector getResources()
          Gets the resources for access control checking.
 java.lang.String getUrl()
          Gets the redirection url to be called when the command completes successfully.
 void performExecute()
          Contains the actual business logic of the command.
protected  void reSet()
          Resets the instance variables.
 void setJobId(java.lang.Long newJobId)
          Sets scheduler job id which needs to be disabled.
 void setOrderId(java.lang.Long newOrderId)
          Sets order identifier
 void setRemoveJobCmd( RemoveJobCmdImpl newRemoveJobCmd)
          Sets the instance of the RemoveJob command.
 void setRequestProperties( TypedProperty aReqParms)
          The WebController calls this method before invoking the execute method in this command to set the request properties for this command.
 void setUrl(java.lang.String astrUrl)
          Sets the redirection url to be called when the command completes successfully.
 void validateParameters()
          Performs server side parameter checking.
 
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, reset, 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. AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command. ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values
Constructor Detail

ScheduledOrderCancelCmdImpl

public ScheduledOrderCancelCmdImpl()
Method Detail

getJobId

public java.lang.Long getJobId()
Gets scheduler job id which needs to be disabled.
Returns:
job id

getOrderId

public java.lang.Long getOrderId()
Gets order identifier
Returns:
order id

getRemoveJobCmd

public RemoveJobCmd getRemoveJobCmd()
Gets the instance of the RemoveJob command.

getResources

public AccessVector getResources()
                          throws ECException
Gets the resources for access control checking.
Specified by:
getResources in interface ECCommand
Overrides:
getResources in class AbstractECTargetableCommand
Returns:
resources
Throws:
ECException

getUrl

public java.lang.String getUrl()
Gets the redirection url to be called when the command completes successfully.
Returns:
URL.

performExecute

public void performExecute()
                    throws ECException
Contains the actual business logic of the command.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException

reSet

protected void reSet()
Resets the instance variables.

setJobId

public void setJobId(java.lang.Long newJobId)
Sets scheduler job id which needs to be disabled.
Parameters:
newJobId - job id.

setOrderId

public void setOrderId(java.lang.Long newOrderId)
Sets order identifier
Specified by:
setOrderId in interface ScheduledOrderCancelCmd
Parameters:
newOrderId - order id

setRemoveJobCmd

public void setRemoveJobCmd(RemoveJobCmdImpl newRemoveJobCmd)
Sets the instance of the RemoveJob command.
Parameters:
newRemoveJobCmd - remove job command.

setRequestProperties

public void setRequestProperties(TypedProperty aReqParms)
                          throws ECApplicationException
The WebController calls this method before invoking the execute method in this command to set the request properties for this command.
Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class ControllerCommandImpl
Parameters:
aReqParms - request properties.
Throws:
ECApplicationException

setUrl

public void setUrl(java.lang.String astrUrl)
Sets the redirection url to be called when the command completes successfully.
Specified by:
setUrl in interface ScheduledOrderCancelCmd
Parameters:
astrUrl - URL

validateParameters

public void validateParameters()
                        throws ECException
Performs server side parameter checking.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException