com.ibm.commerce.negotiation.commands
Class GenBidRefCmdImpl

com.ibm.commerce.negotiation.commands.GenBidRefCmdImpl
All Implemented Interfaces:
ECCommand, GenBidRefCmd

public class GenBidRefCmdImpl
implements GenBidRefCmd

Generates a unique Bid Reference key.


Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String keySeparator
           
static int LAST_SUBKEY_LEN
           
static int MIDDLE_SUBKEY_LEN
           
 
Fields inherited from interface com.ibm.commerce.negotiation.commands.GenBidRefCmd
defaultCommandClassName, NAME
 
Constructor Summary
GenBidRefCmdImpl()
          GenBidRefImpl default constructor.
 
Method Summary
 java.lang.String getBidReferenceKey()
          Returns a unique bid reference key.
 boolean isReadyToCallExecute()
          Verifies that the this command is ready to be executed.
 void performExecute()
          Genarates a unique bid reference number and saves locally for future retrieval.
 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 interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT

keySeparator

public static final java.lang.String keySeparator

LAST_SUBKEY_LEN

public static final int LAST_SUBKEY_LEN

MIDDLE_SUBKEY_LEN

public static final int MIDDLE_SUBKEY_LEN
Constructor Detail

GenBidRefCmdImpl

public GenBidRefCmdImpl()
GenBidRefImpl default constructor.
Method Detail

getBidReferenceKey

public java.lang.String getBidReferenceKey()
Returns a unique bid reference key. A null key will be returned if this method is invoked prior to generating the key.
Specified by:
getBidReferenceKey in interface GenBidRefCmd
Returns:
String - Generated bid reference key or a null value.

isReadyToCallExecute

public boolean isReadyToCallExecute()
Verifies that the this command is ready to be executed.
Returns:
boolean =true if command is ready, otherwise false.

performExecute

public void performExecute()
                    throws ECException
Genarates a unique bid reference number and saves locally for future retrieval.
Specified by:
performExecute in interface ECCommand
Throws:
ECException - -

setBidType

public void setBidType(java.lang.String bidType)
Sets this bid type.
Specified by:
setBidType in interface GenBidRefCmd
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 GenBidRefCmd
Parameters:
errorTaskName - java.lang.String