com.ibm.commerce.inventory.scheduled.commands
Class ReleaseToFulfillmentCmdImpl
java.lang.Object
CacheableCommandImpl
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
Default implementation of the controller command ReleaseToFulfillmentCmd interface. Invoked by the WebSphere Commerce scheduler, this command releases orders to fulfillment for a given store.
- Calls the Order query to get the list of orders that need to be released
- For each item call CheckPaymentAcceptCmd to see if the payment is still valid and if so release the item to Fulfillment
Utilizes these access beans
- See Also:
- Serialized Form
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, 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, 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, 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 |
ReleaseToFulfillmentCmdImpl
public ReleaseToFulfillmentCmdImpl()
- method description: This is the class constructor.
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
-
- Returns:
- vector of resource action pairs
- Throws:
- ECException
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.
-
- Throws:
- ECException
isGeneric
public boolean isGeneric()
- method description:
-
- Specified by:
- isGeneric in interface ControllerCommand
- Overrides:
- isGeneric in class ControllerCommandImpl
-
- Returns:
- Return false to indicate that this command cannot be run by a generic user.
isReadyToCallExecute
public boolean isReadyToCallExecute()
- method description:
-
- Overrides:
- isReadyToCallExecute in class AbstractECTargetableCommand
-
- Returns:
- Return true to indicate that this command is ready to be executed.
performExecute
public void performExecute()
throws ECException
- method description: Release orders to fulfillment.
- Calls the Order query to get the list of orders that need to be released
- For each item call CheckPaymentAcceptCmd to see if the payment is still valid and if so release the item to Fulfillment
-
- Specified by:
- performExecute in interface ECCommand
- Overrides:
- performExecute in class AbstractECTargetableCommand
-
- Throws:
- ECSystemException - If cannot commit the transaction started by the command throws com.ibm.commerce.exception.ECSystemException with ECMessage.STA_COMMIT_DB_FAILURE
- ECSystemException - If the OrderJDBCHelper.findOrderToRelease has a SQL exception throws com.ibm.commerce.exception.ECSystemException with ECMessage._ERR_FINDER_EXCEPTION
- ECSystemException - If the OrderJDBCHelper.findOrderToRelease has a SQL exception throws com.ibm.commerce.exception.ECSystemException with ECMessage._ERR_SQL_EXCEPTION
- ECException
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
-
- Throws:
- ECApplicationException
validateParameters
public void validateParameters()
throws ECException
- method description: Validate command parameters. Check mandatory parameters.
Parameters
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.