com.ibm.commerce.negotiation.commands
Class CheckBidUpdateAuthorizationCmdImpl
java.lang.Object
CacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.TaskCommandImpl
com.ibm.commerce.negotiation.commands.CheckBidUpdateAuthorizationCmdImpl
- All Implemented Interfaces:
- CheckBidUpdateAuthorizationCmd, ECCommand, ECTargetableCommand, TaskCommand
- public class CheckBidUpdateAuthorizationCmdImpl
- extends TaskCommandImpl
- implements CheckBidUpdateAuthorizationCmd
Determines if a the bidder is allowed to update the bid. There could be many reasons to disallowing bid update operation: The bidder is not authorized to update the bid. The auction rule forbid an update operation. The bid being updated is the best bid. The current implementation will ONLY check whether the bidder is authorized to update the bid. This command uses the following AccessBeans:
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
COPYRIGHT
Copyright statement. |
Method Summary |
java.lang.String |
getBidReferenceKey()
Returns bid reference key |
protected void |
handleException(java.lang.Exception e)
Formats an ECException based on the input exception value. |
boolean |
isReadyToCallExecute()
Verifies that the this command is ready to be executed. |
void |
performExecute()
Determine if current bidder is authorized to update the bid specified by the reference key. |
void |
setBidReferenceKey(java.lang.String bidReferenceKey)
Sets the bid reference key |
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, reset, 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
CheckBidUpdateAuthorizationCmdImpl
public CheckBidUpdateAuthorizationCmdImpl()
- CheckBidUpdateAuthorizationImpl default constructor.
getBidReferenceKey
public java.lang.String getBidReferenceKey()
- Returns bid reference key
-
- Returns:
- String - Bid reference key
handleException
protected void handleException(java.lang.Exception e)
throws ECException
- Formats an ECException based on the input exception value.
-
- Parameters:
- e - Exception - The exception instance to be formatted.
- Throws:
- ECException - - could be one of many diffrenet exceptions: ECApplicationException. RemoteException, CreateException, FinderException, or NamingException.
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
- Determine if current bidder is authorized to update the bid specified by the reference key.
-
- Specified by:
- performExecute in interface ECCommand
- Overrides:
- performExecute in class AbstractECTargetableCommand
-
- Throws:
- ECException - -
setBidReferenceKey
public void setBidReferenceKey(java.lang.String bidReferenceKey)
- Sets the bid reference key
-
- Specified by:
- setBidReferenceKey in interface CheckBidUpdateAuthorizationCmd
-
- Parameters:
- bidReferenceKey - String - Bid reference key
setErrorTaskName
public void setErrorTaskName(java.lang.String errorTaskName)
- Set error task name that will be returned by the exceptions.
-
- Specified by:
- setErrorTaskName in interface CheckBidUpdateAuthorizationCmd
-
- Parameters:
- errorTaskName - java.lang.String
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.