com.ibm.commerce.negotiation.commands
Class CheckGenBidRefCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.negotiation.commands.CheckGenBidRefCmdImpl
All Implemented Interfaces:
CheckGenBidRefCmd, ECCommand, ECTargetableCommand, TaskCommand

public class CheckGenBidRefCmdImpl
extends TaskCommandImpl
implements CheckGenBidRefCmd

Validates the integrity of a bid reference key. The bid reference key will be unpacked and checks will be performed on each of its parts (user reference number, time stamp, ...)

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          Copyright statement.
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.negotiation.commands. CheckGenBidRefCmd
defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
CheckGenBidRefCmdImpl()
          CheckBidReferenceNumberImpl default constructor.
 
Method Summary
 boolean isReadyToCallExecute()
          Verifies that the this command is ready to be executed.
 void performExecute()
           Unpacks and validates the bid reference key.
 void setBidReferenceKey(java.lang.String bidReferenceKey)
          Sets the Bid Reference key.
 void setBidType(java.lang.String bidType)
          Sets this bid type.
 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
 

Field Detail
public static final java.lang.String COPYRIGHT
Copyright statement.
See Also:
Constant Field Values
Constructor Detail

CheckGenBidRefCmdImpl

public CheckGenBidRefCmdImpl()
CheckBidReferenceNumberImpl default constructor.
Method Detail

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
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException - - Case of invalid bid reference key..

setBidReferenceKey

public void setBidReferenceKey(java.lang.String bidReferenceKey)
Sets the Bid Reference key.
Specified by:
setBidReferenceKey in interface CheckGenBidRefCmd
Parameters:
bidReferenceKey - String - Bid reference key.

setBidType

public void setBidType(java.lang.String bidType)
Sets this bid type.
Specified by:
setBidType in interface CheckGenBidRefCmd
Parameters:
bidType - java.lang.String - Regular or Auto bid type.

setErrorTaskName

public void setErrorTaskName(java.lang.String errorTaskName)
Set error task name that will be returned by the exceptions.
Specified by:
setErrorTaskName in interface CheckGenBidRefCmd
Parameters:
errorTaskName - java.lang.String