com.ibm.commerce.order.commands
Class OrderUnlockCmdImpl

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

public class OrderUnlockCmdImpl
extends ControllerCommandImpl
implements OrderUnlockCmd

Unlocks an order that was previously locked by the OrderPrepare command and calls the specified URL. If the order is not locked, or if the order reference number is not correct, the command only calls the URL.

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. OrderUnlockCmd
NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
OrderUnlockCmdImpl()
           
 
Method Summary
 java.lang.Long getOrderId()
          Gets the order to be unlocked.
  AccessVector getResources()
          Gets the resources.
 java.lang.String getUrl()
          Gets the redirection url to be called when the command completes successfully.
 void performExecute()
          The main command logic.
 void reset()
          Resets all instance variables.
 void setOrderId(java.lang.Long anOrderId)
          Sets the order to be unlocked.
 void setRequestProperties( TypedProperty aReqParms)
          Sets the request properties.
 void setUrl(java.lang.String astrUrl)
          Sets the redirection url to be called when the command completes successfully.
 void validateParameters()
          Validates the parameters.
 
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. 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

OrderUnlockCmdImpl

public OrderUnlockCmdImpl()
Method Detail

getOrderId

public java.lang.Long getOrderId()
Gets the order to be unlocked.
Returns:
order id.

getResources

public AccessVector getResources()
                          throws ECException
Gets the resources.
Specified by:
getResources in interface ECCommand
Overrides:
getResources in class AbstractECTargetableCommand
Returns:
resource access vector.
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
The main command logic.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException

reset

public void reset()
Resets all instance variables.
Overrides:
reset in class AbstractECTargetableCommand

setOrderId

public void setOrderId(java.lang.Long anOrderId)
Sets the order to be unlocked.
Specified by:
setOrderId in interface OrderUnlockCmd
Parameters:
anOrderId - java.util.Integer - order identifier

setRequestProperties

public void setRequestProperties(TypedProperty aReqParms)
                          throws ECApplicationException
Sets the request properties.
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 OrderUnlockCmd
Parameters:
astrUrl - java.lang.String - redirection url string

validateParameters

public void validateParameters()
                        throws ECException
Validates the parameters.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException