com.ibm.commerce.order.utils
Class ResolveOrderItemsCmdImpl

java.lang.Object
  CacheableCommandImpl
      com.ibm.commerce.command.AbstractECTargetableCommand
          com.ibm.commerce.command.TaskCommandImpl
              com.ibm.commerce.order.utils.ResolveOrderItemsCmdImpl
All Implemented Interfaces:
ECCommand, ECTargetableCommand, ResolveOrderItemsCmd, TaskCommand

public class ResolveOrderItemsCmdImpl
extends TaskCommandImpl
implements ResolveOrderItemsCmd

This is the default implementation of the ResolveOrderItemsCmd task command.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
commandContext
Fields inherited from interface com.ibm.commerce.order.utils.ResolveOrderItemsCmd
ALL_AND_NEW_ORDERITEMS, ALL_ORDERITEMS, ALLOCATED, AVAILABILITY_FUTURE, AVAILABILITY_PAST_PRESENT, AVAILABILITY_UNKNOWN, BACK_ORDERED, CORRELATION_GROUP, CURRENT, CURRENT_ORDERITEM, defaultCommandClassName, DISCONTINUED, INVALID, NAME, NEW_ORDERITEM, NO_ORDERITEM, UNALLOCATED, VALID
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
Constructor Summary
ResolveOrderItemsCmdImpl()
Method Summary
java.lang.Long[] getAffectedOrderIds()
OrderAccessBean[] getAffectedOrders()
java.lang.String getCurrentOrDiscontinued()
Deprecated. This method returned data for an unsupported operation. It should not be used.
static ResolveOrderItemsCmd getInstance(CommandContext aCommandContext)
Returns the instance from the command context.
protected java.lang.String getInternalOrderItemAbbreviation(java.lang.String orderItemAbbreviation)
java.lang.Long[] getOrderIds()
java.lang.Long[] getOrderItemIds()
OrderItemAccessBean[] getOrderItems()
OrderAccessBean[] getOrders()
boolean isNewOrderItem()
boolean isNewPendingOrder()
boolean isSetToCurrent()
void performExecute()
The business logic for this command.
static void releaseInstance(CommandContext aCommandContext)
Releases the instance from the command context, if there is one in the command context.
void reset()
This method should be called after a command has been executed to reset its states variables.
protected OrderItemAccessBean[] resolveATPAbbreviation(java.lang.String astrAbbreviation)
void setMemberId(java.lang.Long memberId)
void setOrderAbbreviations(java.lang.String[] orderAbbreviations)
void setOrderItemAbbreviations(java.lang.String[] orderItemAbbreviations)
void setStoreId(java.lang.Integer storeId)
void setStrict(boolean strict)
void validateParameters()
Performs parameter checking.
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, 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
Field Detail

COPYRIGHT

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

ResolveOrderItemsCmdImpl

public ResolveOrderItemsCmdImpl()
Method Detail

getInstance

public static ResolveOrderItemsCmd getInstance(CommandContext aCommandContext)
                                        throws ECException
Returns the instance from the command context. Creates one in the command context if one is not there already.
Parameters:
aCommandContext - The command context as CommandContext object.
Returns:
the instance from the command context.
Throws:
ECException

releaseInstance

public static void releaseInstance(CommandContext aCommandContext)
Releases the instance from the command context, if there is one in the command context.
Parameters:
aCommandContext - The command context as CommandContext object.

getAffectedOrderIds

public java.lang.Long[] getAffectedOrderIds()
Specified by:
getAffectedOrderIds in interface ResolveOrderItemsCmd

getAffectedOrders

public OrderAccessBean[] getAffectedOrders()
Specified by:
getAffectedOrders in interface ResolveOrderItemsCmd

getCurrentOrDiscontinued

public java.lang.String getCurrentOrDiscontinued()
Deprecated. This method returned data for an unsupported operation. It should not be used.
Specified by:
getCurrentOrDiscontinued in interface ResolveOrderItemsCmd

getInternalOrderItemAbbreviation

protected java.lang.String getInternalOrderItemAbbreviation(java.lang.String orderItemAbbreviation)

getOrderIds

public java.lang.Long[] getOrderIds()
Specified by:
getOrderIds in interface ResolveOrderItemsCmd

getOrderItemIds

public java.lang.Long[] getOrderItemIds()
Specified by:
getOrderItemIds in interface ResolveOrderItemsCmd

getOrderItems

public OrderItemAccessBean[] getOrderItems()
Specified by:
getOrderItems in interface ResolveOrderItemsCmd

getOrders

public OrderAccessBean[] getOrders()
Specified by:
getOrders in interface ResolveOrderItemsCmd

isNewOrderItem

public boolean isNewOrderItem()
Specified by:
isNewOrderItem in interface ResolveOrderItemsCmd

isNewPendingOrder

public boolean isNewPendingOrder()
Specified by:
isNewPendingOrder in interface ResolveOrderItemsCmd

isSetToCurrent

public boolean isSetToCurrent()
Specified by:
isSetToCurrent in interface ResolveOrderItemsCmd

performExecute

public void performExecute()
                    throws ECException
Description copied from class: AbstractECTargetableCommand
The business logic for this command. This method should be overwritten by all command writers. Command writers should call super.performExecute() as the first line in their method.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException

reset

public void reset()
Description copied from class: AbstractECTargetableCommand
This method should be called after a command has been executed to reset its states variables. After the call to reset, we should be able to execute the command again.
Overrides:
reset in class AbstractECTargetableCommand

resolveATPAbbreviation

protected OrderItemAccessBean[] resolveATPAbbreviation(java.lang.String astrAbbreviation)
                                                throws ECException
Throws:
ECException

setMemberId

public void setMemberId(java.lang.Long memberId)
Specified by:
setMemberId in interface ResolveOrderItemsCmd

setOrderAbbreviations

public void setOrderAbbreviations(java.lang.String[] orderAbbreviations)
Specified by:
setOrderAbbreviations in interface ResolveOrderItemsCmd

setOrderItemAbbreviations

public void setOrderItemAbbreviations(java.lang.String[] orderItemAbbreviations)
Specified by:
setOrderItemAbbreviations in interface ResolveOrderItemsCmd

setStoreId

public void setStoreId(java.lang.Integer storeId)
Specified by:
setStoreId in interface ResolveOrderItemsCmd

setStrict

public void setStrict(boolean strict)
Specified by:
setStrict in interface ResolveOrderItemsCmd

validateParameters

public void validateParameters()
                        throws ECException
Description copied from class: AbstractECTargetableCommand
Performs parameter checking. This method replaces checkParameters() in 5.1. The default implementation of validateParameters() is a no op. It is the responsibility of the command writers to implements this method if they want to perform server side parameter checking.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException

Feedback