com.ibm.commerce.inventory.scheduled.commands
Class CheckRAReallocateCmdImpl
java.lang.Object
CacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.TaskCommandImpl
com.ibm.commerce.inventory.scheduled.commands.CheckRAReallocateCmdImpl
- All Implemented Interfaces:
- CheckForWorkCmd, CheckRAReallocateCmd, ECCommand, ECTargetableCommand, TaskCommand
- public class CheckRAReallocateCmdImpl
- extends TaskCommandImpl
- implements CheckRAReallocateCmd
This CheckRAReallocateCMD checks to see if there is work for RAReallocate to do for the given store by figuring out which stores actually have something that needs to be done.
- See Also:
- Serialized Form
Method Summary |
boolean |
checkProcessingNeeded()
Return the boolean ibIsThereWork. |
boolean |
isReadyToCallExecute()
Return the boolean true or false based on if store id set |
void |
performExecute()
Set flag ibIsThereWork to indicate that there is work to do this is determined by checking if any backorders were deleted or fulfilled or any RA information changed in any way since the last time the process was run. |
void |
reset()
Reset all instance variables. |
void |
setStoreId(java.lang.Integer argStoreToCheck)
Set the store id. |
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, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CheckRAReallocateCmdImpl
public CheckRAReallocateCmdImpl()
- This is the class constructor CheckRAReallocateCmdImpl
checkProcessingNeeded
public boolean checkProcessingNeeded()
- Return the boolean ibIsThereWork.
-
- Specified by:
- checkProcessingNeeded in interface CheckForWorkCmd
-
- Returns:
- True indicates that there is work to do.
isReadyToCallExecute
public boolean isReadyToCallExecute()
- Return the boolean true or false based on if store id set
-
- Overrides:
- isReadyToCallExecute in class AbstractECTargetableCommand
-
- Returns:
- True if store id set, otherwise False
performExecute
public void performExecute()
throws ECException
- Set flag ibIsThereWork to indicate that there is work to do this is determined by checking if any backorders were deleted or fulfilled or any RA information changed in any way since the last time the process was run.
-
- Specified by:
- performExecute in interface ECCommand
- Overrides:
- performExecute in class AbstractECTargetableCommand
-
- Returns:
- true
- Throws:
- ECException
reset
public void reset()
- Reset all instance variables.
-
- Overrides:
- reset in class AbstractECTargetableCommand
setStoreId
public void setStoreId(java.lang.Integer argStoreToCheck)
- Set the store id.
-
- Specified by:
- setStoreId in interface CheckForWorkCmd
-
- Parameters:
- argStoreToCheck - store wanting to check
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.