com.ibm.commerce.utf.commands
Class MarkRFQForDeleteCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.utf.commands.MarkRFQForDeleteCmdImpl
All Implemented Interfaces:
ECCommand, ECTargetableCommand, MarkRFQForDeleteCmd, TaskCommand

public class MarkRFQForDeleteCmdImpl
extends TaskCommandImpl
implements MarkRFQForDeleteCmd

Implementation for setting the MarkForDelete flag on RFQs that have been canceled or completed.

This is the default implementation of the MarkRFQForDeleteCmd. This command uses the following AccessBeans:

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.utf.commands. MarkRFQForDeleteCmd
COPYRIGHT, defaultCommandClassName, NAME, siteStoreId
 
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand
COPYRIGHT
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
MarkRFQForDeleteCmdImpl()
          Constructs a new MarkRFQForDeleteCmdImpl class instance.
 
Method Summary
 int getMarkForDeleteAfterNumberOfDays()
          Returns the number of days the canceled and completed RFQs are marked for delete after having been canceled or completed.
  AccessVector getResources()
          Gets the access vector accessed by this command.
 void performExecute()
          Marks all compeleted and canceled RFQs for delete.
 void reset()
          Reset the command.
 void setMarkForDeleteAfterNumberOfDays(int numOfDays)
          Sets the number of days the canceled and completed RFQs are marked for delete after having been canceled or completed.
 void setStoreId(java.lang.Integer storeId)
           
 
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkRFQForDeleteCmdImpl

public MarkRFQForDeleteCmdImpl()
Constructs a new MarkRFQForDeleteCmdImpl class instance.
Method Detail

reset

public void reset()
Reset the command.
Overrides:
reset in class AbstractECTargetableCommand

getMarkForDeleteAfterNumberOfDays

public int getMarkForDeleteAfterNumberOfDays()
Returns the number of days the canceled and completed RFQs are marked for delete after having been canceled or completed.
Specified by:
getMarkForDeleteAfterNumberOfDays in interface MarkRFQForDeleteCmd
Returns:
The number of days when an RFQ is marked for delete after being canceled or completed.

getResources

public AccessVector getResources()
                          throws ECException
Gets the access vector accessed by this command. The vector includes all the RFQs to be marked for delete.
Specified by:
getResources in interface ECCommand
Overrides:
getResources in class AbstractECTargetableCommand
Returns:
AccessVector - a vector of resource action pairs
Throws:
ECException
See Also:
ECCommand.getResources()

performExecute

public void performExecute()
                    throws ECException
Marks all compeleted and canceled RFQs for delete.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException
See Also:
ECCommand.performExecute()

setMarkForDeleteAfterNumberOfDays

public void setMarkForDeleteAfterNumberOfDays(int numOfDays)
Sets the number of days the canceled and completed RFQs are marked for delete after having been canceled or completed.
Specified by:
setMarkForDeleteAfterNumberOfDays in interface MarkRFQForDeleteCmd
Parameters:
numOfDays - The number of days when an RFQ is marked for delete after being canceled or completed.

setStoreId

public void setStoreId(java.lang.Integer storeId)
Specified by:
setStoreId in interface MarkRFQForDeleteCmd
Parameters:
storeId - Sets the store identifier number. If the store id is 0 then this command works on all RFQs for the site.