com.ibm.commerce.inventory.scheduled.commands
Class CheckRAReallocateCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.inventory.scheduled.commands.CheckRAReallocateCmdImpl
All Implemented Interfaces:
CheckForWorkCmd, CheckRAReallocateCmd, ECCommand, TaskCommand

public class CheckRAReallocateCmdImpl
extends TaskCommandImpl
implements CheckRAReallocateCmd

Figure out which stores actually have something that needs to be done.


Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.inventory.scheduled.commands.CheckRAReallocateCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Constructor Summary
CheckRAReallocateCmdImpl()
          method description: This is the class constructor.
 
Method Summary
 boolean checkProcessingNeeded()
          method description: Return the boolean ibIsThereWork.
 boolean isReadyToCallExecute()
          method description: If store id has been set then return true, otherwise return false.
 void performExecute()
          method description: Set a flag to indicate that there is work to do.
 void reset()
          method description: Reset all instance variables.
 void setStoreId(java.lang.Integer argStoreToCheck)
          method description: Set the store id.
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Constructor Detail

CheckRAReallocateCmdImpl

public CheckRAReallocateCmdImpl()
method description: This is the class constructor.
Method Detail

checkProcessingNeeded

public boolean checkProcessingNeeded()
method description: Return the boolean ibIsThereWork. True indicates that there is work to do. False indicates that there is no work to do.
Specified by:
checkProcessingNeeded in interface CheckForWorkCmd
Following copied from interface: com.ibm.commerce.scheduler.commands.CheckForWorkCmd
Returns:
boolean - whether works need to be done or not.

isReadyToCallExecute

public boolean isReadyToCallExecute()
method description: If store id has been set then return true, otherwise return false.
Overrides:
isReadyToCallExecute in class AbstractECCommand
Following copied from class: com.ibm.commerce.command.AbstractECCommand
Returns:
boolean - true if we can execute the command false if we canot execute the command

performExecute

public void performExecute()
                    throws ECException
method description: Set a flag to indicate that there is work to do.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

reset

public void reset()
method description: Reset all instance variables.
Overrides:
reset in class AbstractECCommand

setStoreId

public void setStoreId(java.lang.Integer argStoreToCheck)
method description: Set the store id.
Specified by:
setStoreId in interface CheckForWorkCmd
Following copied from interface: com.ibm.commerce.scheduler.commands.CheckForWorkCmd
Parameters:
storeId - java.lang.Long