public class ResolveOrdersCmdImpl extends TaskCommandImpl implements ResolveOrdersCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright string
|
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
Constructor and Description |
---|
ResolveOrdersCmdImpl()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
static ResolveOrdersCmd |
getInstance(CommandContext aCommandContext)
Returns the instance from the transaction cache.
|
java.lang.Long[] |
getOrderIds()
getOrderIds
|
OrderAccessBean[] |
getOrders()
Gets the orders
|
int |
getParsingPosition()
Gets the parsing position
|
java.util.Set |
getUnprocessedAbbreviations()
Gets the unprocessed abbreviations
|
boolean |
isNewPendingOrder()
This method is equivalent to (getUnprocessedAbbreviations() != null && getUnprocessedAbbreviations().contains(ResolveOrdersCmd.NEW_PENDING_ORDER))
|
boolean |
isSetToCurrent()
This method is equivalent to (getUnprocessedAbbreviations() != null && getUnprocessedAbbreviations().contains(ResolveOrdersCmd.CURRENT_NEW_CURRENT))
|
void |
performExecute()
Simple Order main function
|
static void |
releaseInstance(CommandContext aCommandContext)
Releases the instance from the transaction cache, if there is one in the transaction cache.
|
static void |
releaseInstance(java.lang.Integer anStoreId)
Releases the instance from the transaction cache, if there is one in the transaction cache.
|
void |
reset()
reset all member vars
|
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)
This method is equivalent to setForeignOrdersAllowed(!strict)
|
void |
validateParameters()
This method extracts and validates the input parameters of this command implementation.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String COPYRIGHT
public static ResolveOrdersCmd getInstance(CommandContext aCommandContext) throws ECException
aCommandContext
- The command context as CommandContext
object.ECException
public static void releaseInstance(CommandContext aCommandContext)
aCommandContext
- The command context as CommandContext
object.public static void releaseInstance(java.lang.Integer anStoreId)
anStoreId
- The storeId used to identify the instance.public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public java.lang.Long[] getOrderIds()
getOrderIds
in interface ResolveOrdersCmd
ResolveOrdersCmd.getOrderIds()
public OrderAccessBean[] getOrders()
ResolveOrdersCmd
getOrders
in interface ResolveOrdersCmd
ResolveOrdersCmd.getOrders()
public boolean isNewPendingOrder()
ResolveOrdersCmd
isNewPendingOrder
in interface ResolveOrdersCmd
ResolveOrdersCmd.isNewPendingOrder()
public boolean isSetToCurrent()
ResolveOrdersCmd
isSetToCurrent
in interface ResolveOrdersCmd
ResolveOrdersCmd.isSetToCurrent()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
TargetableCommand.performExecute()
public void setMemberId(java.lang.Long memberId)
ResolveOrdersCmd
setMemberId
in interface ResolveOrdersCmd
memberId
- the member ID for this orderResolveOrdersCmd.setMemberId(Long)
public void setOrderAbbreviations(java.lang.String[] orderAbbreviations)
ResolveOrdersCmd
setOrderAbbreviations
in interface ResolveOrdersCmd
orderAbbreviations
- an array of order abbreviationsResolveOrdersCmd.setOrderAbbreviations(String[])
public void setStoreId(java.lang.Integer storeId)
ResolveOrdersCmd
setStoreId
in interface ResolveOrdersCmd
storeId
- the store id valueResolveOrdersCmd.setStoreId(Integer)
public void setStrict(boolean strict)
ResolveOrdersCmd
setStrict
in interface ResolveOrdersCmd
strict
- sets the strict valueResolveOrdersCmd.setStrict(boolean)
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
ECCommand.validateParameters()
public void setForeignOrdersAllowed(boolean abForeignOrdersAllowed)
ResolveOrdersCmd
setForeignOrdersAllowed
in interface ResolveOrdersCmd
abForeignOrdersAllowed
- sets whether or not foreign orders are allowedResolveOrdersCmd.setForeignOrdersAllowed(boolean)
public void setAllowedAbbreviations(java.util.Set asetAllowedAbbreviations)
ResolveOrdersCmd
setAllowedAbbreviations
in interface ResolveOrdersCmd
asetAllowedAbbreviations
- lists the allowed abbreviationsResolveOrdersCmd.setAllowedAbbreviations(Set)
public void setDisallowedAbbreviations(java.util.Set asetDisallowedAbbreviations)
ResolveOrdersCmd
setDisallowedAbbreviations
in interface ResolveOrdersCmd
asetDisallowedAbbreviations
- lists the disallowed abbreviationsResolveOrdersCmd.setDisallowedAbbreviations(Set)
public java.util.Set getUnprocessedAbbreviations()
ResolveOrdersCmd
getUnprocessedAbbreviations
in interface ResolveOrdersCmd
ResolveOrdersCmd.getUnprocessedAbbreviations()
public void setIncompleteParsingAllowed(boolean abIncompleteParsingAllowed)
ResolveOrdersCmd
setIncompleteParsingAllowed
in interface ResolveOrdersCmd
abIncompleteParsingAllowed
- determines if incomplete parsing is allowedResolveOrdersCmd.setIncompleteParsingAllowed(boolean)
public void setInitialParsingPosition(int anInitialParsingPosition)
ResolveOrdersCmd
setInitialParsingPosition
in interface ResolveOrdersCmd
anInitialParsingPosition
- sets the initial parsing positionResolveOrdersCmd.setInitialParsingPosition(int)
public int getParsingPosition()
ResolveOrdersCmd
getParsingPosition
in interface ResolveOrdersCmd
ResolveOrdersCmd.getParsingPosition()