com.ibm.commerce.inventory.scheduled.commands
Class ReleaseToFulfillmentCmdImpl

com.ibm.commerce.command.AbstractECTargetableCommand
  |
  +--com.ibm.commerce.command.ControllerCommandImpl
        |
        +--com.ibm.commerce.inventory.scheduled.commands.ReleaseToFulfillmentCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, ReleaseToFulfillmentCmd

public class ReleaseToFulfillmentCmdImpl
extends ControllerCommandImpl
implements ReleaseToFulfillmentCmd

Invoked by the WebSphere Commerce scheduler, this command releases orders to fulfillment for a given store.


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.inventory.scheduled.commands.ReleaseToFulfillmentCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command.ECTargetableCommand
COPYRIGHT
 
Constructor Summary
ReleaseToFulfillmentCmdImpl()
          method description: This is the class constructor.
 
Method Summary
 AccessVector getResources()
          method description: Return command resources for access control.
static void invokeOrderReleaseMessaging(java.lang.Long anOrderRn, java.lang.Long allocationRn, java.lang.Integer anStoreId, CommandContext aProcessingContext, TypedProperty ahshRequestProperties)
          method description: Invoke order release messaging.
 boolean isGeneric()
          method description: Return false to indicate that this command cannot be run by a generic user.
 boolean isReadyToCallExecute()
          method description: Return true to indicate that this command is ready to be executed.
 void performExecute()
          method description: Release orders to fulfillment.
 void reset()
          method description: Reset instance variables.
 void setRequestProperties(TypedProperty reqParms)
          method description: Set command request properties.
 void validateParameters()
          method description: Validate command parameters.
 
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, 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, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, 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
 

Constructor Detail

ReleaseToFulfillmentCmdImpl

public ReleaseToFulfillmentCmdImpl()
method description: This is the class constructor.
Method Detail

getResources

public AccessVector getResources()
                          throws ECException
method description: Return command resources for access control.
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

invokeOrderReleaseMessaging

public static void invokeOrderReleaseMessaging(java.lang.Long anOrderRn,
                                               java.lang.Long allocationRn,
                                               java.lang.Integer anStoreId,
                                               CommandContext aProcessingContext,
                                               TypedProperty ahshRequestProperties)
                                        throws ECException
method description: Invoke order release messaging.

isGeneric

public boolean isGeneric()
method description: Return false to indicate that this command cannot be run by a generic user.
Specified by:
isGeneric in interface ControllerCommand
Overrides:
isGeneric in class ControllerCommandImpl
Following copied from interface: com.ibm.commerce.command.ControllerCommand
Returns:
boolean - true if this command can be called by a generic user - false if this command cannot be called by a generic user

isReadyToCallExecute

public boolean isReadyToCallExecute()
method description: Return true to indicate that this command is ready to be executed.
Overrides:
isReadyToCallExecute in class AbstractECTargetableCommand
Following copied from class: com.ibm.commerce.command.AbstractECTargetableCommand
Returns:
boolean - true if we can execute the command false if we canot execute the command

performExecute

public void performExecute()
                    throws ECException
method description: Release orders to fulfillment.
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.

reset

public void reset()
method description: Reset instance variables.
Overrides:
reset in class AbstractECTargetableCommand

setRequestProperties

public void setRequestProperties(TypedProperty reqParms)
                          throws ECApplicationException
method description: Set command request properties.
Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class ControllerCommandImpl
Following copied from interface: com.ibm.commerce.command.ControllerCommand
Parameters:
requestProperties - com.ibm.commerce.datatype.TypedProperty
Throws:
com.ibm.commerce.exception.ECException. -  

validateParameters

public void validateParameters()
                        throws ECException
method description: Validate command parameters.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
ECException. -