public class ResolveReleasesCmdImpl extends TaskCommandImpl implements ResolveReleasesCmd
ResolveReleasesCmd
interface.
Updates and / or return a list of releases available to be shipped.
This command first retrieves all the NEW releases for a given order.
If there is an item in each release "tied" with tieship
code. Then it will
try to resolve it for being tied to future order, backorder, and to be ready among releases.
The resolved releases will be moved from NEW
to RDY
on ordreleases.status
returned a list of newly resolved releases via getResolvedOrderReleases()
This command requires to have the order id set in the command context.
Required parameters are listed in the validateParameters()
method.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
static java.lang.String |
ORDRELEASE_RDY
ORDRELEASE table constants
|
defaultCommandClassName, NAME
Constructor and Description |
---|
ResolveReleasesCmdImpl() |
Modifier and Type | Method and Description |
---|---|
static ResolveReleasesCmd |
getInstance(CommandContext aCommandContext)
Returns the instance from the command context.
|
OrderAccessBean |
getOrder()
This method returns the order being worked on.
|
java.util.Enumeration |
getResolvedReleases()
This method retrieves all resolved releases after execution.
|
boolean |
isReadyToCallExecute()
Ready to be executed.
|
void |
performExecute()
Performs the execution of resolving releases.
|
void |
reset()
Resets the command local variable.
|
void |
setOrder(OrderAccessBean abOrder)
set an Order to work on
|
void |
setOrderReleases(OrderReleaseAccessBean[] orderReleases)
setOrderReleases
|
void |
setRequestProperties(TypedProperty newRequestProperties)
Sets the information into the command local variable.
|
void |
validateParameters()
Checks the information of the command
Make sure all the required parameters were passed in,
or collected from somewhere.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, 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 final java.lang.String ORDRELEASE_RDY
public static ResolveReleasesCmd getInstance(CommandContext aCommandContext) throws ECException
aCommandContext
- The command context as CommandContext
object.ECException
public void setOrder(OrderAccessBean abOrder)
setOrder
in interface ResolveReleasesCmd
abOrder
- as OrderAccessBean
public OrderAccessBean getOrder()
OrderAccessBean
public java.util.Enumeration getResolvedReleases()
getResolvedReleases
in interface ResolveReleasesCmd
Enumeration
of OrderReleaseAccessBean
public void setRequestProperties(TypedProperty newRequestProperties) throws ECApplicationException
setRequestProperties
in interface ResolveReleasesCmd
newRequestProperties
- receipt properties
All parameters are optional (null allowed) for this method,
though may be required for the command.ECApplicationException
validateParameters()
public boolean isReadyToCallExecute()
isReadyToCallExecute
in interface com.ibm.websphere.command.Command
isReadyToCallExecute
in class AbstractECTargetableCommand
public void validateParameters() throws ECException
Checks the information of the command Make sure all the required parameters were passed in, or collected from somewhere. Fields required to be set beforehand
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- If mandatory parameters are not passed in, throw ECApplicationException
specifying _ERR_BAD_MISSING_CMD_PARAMETERpublic void performExecute() throws ECException
If this is an expected inventory receipt, the quantity received and quantity remaining of the corresponding expected inventory record detail will be updated.
If the receipt is created successfully, the receipt identifier will be
returned and the receipt will be made available to the distribution arrangement
by calling MakeReceiptAvailableCmd
.
Utilizes the following beans
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void setOrderReleases(OrderReleaseAccessBean[] orderReleases)
setOrderReleases
in interface ResolveReleasesCmd
orderReleases
- as an array of OrderReleaseAccessBean