com.ibm.commerce.scheduler.commands
Interface CheckForWorkCmd
- All Superinterfaces:
- ECCommand, TaskCommand
- All Known Subinterfaces:
- CheckProcessBackordersCmd, CheckRAReallocateCmd, CheckReleaseExpiredAllocationsCmd, CheckReleaseToFulfillmentCmd
- All Known Implementing Classes:
- CheckForWorkGenericImpl
- public interface CheckForWorkCmd
- extends TaskCommand
CheckForWorkCmd is a common interface for scheduler task commands which will
indicate whether there is work that needs to be done for a particular store or not.
Method Summary |
boolean |
checkProcessingNeeded()
Will determine whether the work is needed to be done for a particular store by returning a value of true. |
void |
setStoreId(java.lang.Integer storeId)
Sets the store id of the store that will be used to determine whether there is some work that needs to be done. |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
defaultCommandClassName
public static final java.lang.String defaultCommandClassName
NAME
public static final java.lang.String NAME
checkProcessingNeeded
public boolean checkProcessingNeeded()
- Will determine whether the work is needed to be done for a particular store by returning a value of true.
Returning a value of false will indicate that work is not needed.
- Returns:
- boolean - whether works need to be done or not.
setStoreId
public void setStoreId(java.lang.Integer storeId)
- Sets the store id of the store that will be used to determine whether there is some work that needs to be done.
- Parameters:
storeId
- java.lang.Long