java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.TaskCommandImpl
com.ibm.commerce.order.utils.ResolveOrdersCmdImpl
This is the default implementation of the ResolveOrdersCmd task command.
Field Summary | |
static java.lang.String | COPYRIGHT The IBM copyright string |
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.order.utils.ResolveOrdersCmd |
ALL_ORDER_TEMPLATES, ALL_PENDING_ORDERS, CURRENT_NEW_CURRENT, CURRENT_ORDER_TEMPLATES, CURRENT_PENDING_ORDERS, defaultCommandClassName, EC_TOKEN_CHILD, EC_TOKEN_PARENT, NAME, NEW_PENDING_ORDER, NO_ORDER, PROFILE |
Fields inherited from interface com.ibm.commerce.command.ECCommand |
defaultCommandClassName |
Constructor Summary | |
ResolveOrdersCmdImpl() Default constructor for ResolveOrdersCmdImpl |
Method Summary | |
static ResolveOrdersCmd | getInstance(CommandContext aCommandContext) Returns the instance from the command context. |
protected java.lang.String | getInternalOrderAbbreviation(java.lang.String orderAbbreviation) Gets the internal order abbreviation |
java.lang.Long[] | getOrderIds() Gets the order ids |
OrderAccessBean[] | getOrders() Gets the orders |
int | getParsingPosition() Gets the parsing position |
java.util.Set | getUnprocessedAbbreviations() Gets the unprocessed abbreviations |
boolean | isNewPendingOrder() equivalent to (getUnprocessedAbbreviations() != null && getUnprocessedAbbreviations().contains(ResolveOrdersCmd.NEW_PENDING_ORDER)) |
boolean | isSetToCurrent() equivalent to (getUnprocessedAbbreviations() != null && getUnprocessedAbbreviations().contains(ResolveOrdersCmd.CURRENT_NEW_CURRENT)) |
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. |
void | setAllowedAbbreviations(java.util.Set asetAllowedAbbreviations) Sets the allowed abbreviations |
void | setDisallowedAbbreviations(java.util.Set asetDisallowedAbbreviations) Sets the abbreviations that are not allowed |
void | setForeignOrdersAllowed(boolean abForeignOrdersAllowed) Sets if foreign orders are allowed |
void | setIncompleteParsingAllowed(boolean abIncompleteParsingAllowed) Sets if incomplete parsing is allowed |
void | setInitialParsingPosition(int anInitialParsingPosition) Sets the initial paring position |
void | setMemberId(java.lang.Long memberId) Sets the member ID |
void | setOrderAbbreviations(java.lang.String[] orderAbbreviations) Sets the order abbreviations |
void | setStoreId(java.lang.Integer storeId) Sets the store ID |
void | setStrict(boolean strict) equivalent to setForeignOrdersAllowed(!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 |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public ResolveOrdersCmdImpl()
Method Detail |
public static ResolveOrdersCmd getInstance(CommandContext aCommandContext) throws ECException
public static void releaseInstance(CommandContext aCommandContext)
public void reset()
protected java.lang.String getInternalOrderAbbreviation(java.lang.String orderAbbreviation)
public java.lang.Long[] getOrderIds()
public OrderAccessBean[] getOrders()
public boolean isNewPendingOrder()
public boolean isSetToCurrent()
public void performExecute() throws ECException
public void setMemberId(java.lang.Long memberId)
public void setOrderAbbreviations(java.lang.String[] orderAbbreviations)
public void setStoreId(java.lang.Integer storeId)
public void setStrict(boolean strict)
public void validateParameters() throws ECException
public void setForeignOrdersAllowed(boolean abForeignOrdersAllowed)
public void setAllowedAbbreviations(java.util.Set asetAllowedAbbreviations)
public void setDisallowedAbbreviations(java.util.Set asetDisallowedAbbreviations)
public java.util.Set getUnprocessedAbbreviations()
public void setIncompleteParsingAllowed(boolean abIncompleteParsingAllowed)
public void setInitialParsingPosition(int anInitialParsingPosition)
public int getParsingPosition()
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.