com.ibm.commerce.negotiation.commands
Class AutoBidsInitTaskCmdImpl
java.lang.Object
CacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.TaskCommandImpl
com.ibm.commerce.negotiation.commands.AutoBidsInitTaskCmdImpl
- All Implemented Interfaces:
- AutoBidsInitTaskCmd, ECCommand, ECTargetableCommand, TaskCommand
- public class AutoBidsInitTaskCmdImpl
- extends TaskCommandImpl
- implements AutoBidsInitTaskCmd
This task initializes the active auto bids created for future auctions.
- See Also:
- Serialized Form
Method Summary |
boolean |
isReadyToCallExecute()
Verifies that the this command is ready to be executed. |
void |
performExecute()
Looks up all Auto Bids previously created for Future auctions, and currently has a Current status. |
void |
reset()
This resets the output properties to the values they had prior to calling the execute method, so that the get methods no longer work but the isReadyToCallExecute returns true. |
void |
setAuction(AuctionAccessBean auction)
Sets the current auction Id value, |
void |
setErrorTaskName(java.lang.String errorTaskName)
Set error task name that will be returned by the exceptions. |
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 |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- Copyright statement.
- See Also:
- Constant Field Values
EC_AUTOBIDS_INIT_ERROR_VIEW_CMD
public static final java.lang.String EC_AUTOBIDS_INIT_ERROR_VIEW_CMD
- AutoBidSubmitCmd default Error View
- See Also:
- Constant Field Values
AutoBidsInitTaskCmdImpl
public AutoBidsInitTaskCmdImpl()
- ProcessAutoBidsInitCmdImpl default constructor.
setAuction
public void setAuction(AuctionAccessBean auction)
- Sets the current auction Id value,
-
- Specified by:
- setAuction in interface AutoBidsInitTaskCmd
-
- Parameters:
- auction - AuctionAccessBean - Auction bean
setErrorTaskName
public void setErrorTaskName(java.lang.String errorTaskName)
- Set error task name that will be returned by the exceptions.
-
- Specified by:
- setErrorTaskName in interface AutoBidsInitTaskCmd
-
- Parameters:
- errorTaskName - java.lang.String
isReadyToCallExecute
public boolean isReadyToCallExecute()
- Verifies that the this command is ready to be executed.
-
- Overrides:
- isReadyToCallExecute in class AbstractECTargetableCommand
-
- Returns:
- boolean =true if command is ready, otherwise false.
performExecute
public void performExecute()
throws ECException
- Looks up all Auto Bids previously created for Future auctions, and currently has a Current status. Creates a new Bid for each of these Auto Bids, and builds the double link association between the Auto Bid and new Bid Ids.
-
- Specified by:
- performExecute in interface ECCommand
- Overrides:
- performExecute in class AbstractECTargetableCommand
-
- Throws:
- ECException
reset
public void reset()
- This resets the output properties to the values they had prior to calling the execute method, so that the get methods no longer work but the isReadyToCallExecute returns true. It provides a convenient and efficient way to reuse the same command instance with changes in some input properties or in the CommandTarget.
-
- Overrides:
- reset in class AbstractECTargetableCommand
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.