com.ibm.commerce.order.utils
Class ResolveOrderQuotationRelsCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.order.utils.ResolveOrderQuotationRelsCmdImpl
All Implemented Interfaces:
ECCommand, ECTargetableCommand, ResolveOrderQuotationRelsCmd, TaskCommand

public class ResolveOrderQuotationRelsCmdImpl
extends TaskCommandImpl
implements ResolveOrderQuotationRelsCmd

This is the default implementation of the ResolveOrderQuotationRels command.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          The IBM copyright string.
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.order.utils. ResolveOrderQuotationRelsCmd
defaultCommandClassName, NAME, TOKEN_CHILD, TOKEN_CONTRACT, TOKEN_DEFAULT, TOKEN_FINAL, TOKEN_INITIAL, TOKEN_NONE, TOKEN_PARENT, TOKEN_SELECTION, TOKEN_STORE, TOKEN_SUBMISSION
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
ResolveOrderQuotationRelsCmdImpl()
          Constructor for ResolveOrderQuotationRelsCmdImpl.
 
Method Summary
 OrderQuotationRelAccessBean[] getOrderQuotationRels()
          Returns the OrderQuotationRelAccessBeans represented by the abbreviations.
 int getParsingPosition()
          Returns the character position in the abbreviation where parsing has ended.
 void performExecute()
          The business logic for this command.
 void reset()
          This method should be called after a command has been executed to reset its states variables.
 void setIncompleteParsingAllowed(boolean abIncompleteParsingAllowed)
          Sets whether incomplete parsing is allowed.
 void setInitialParsingPosition(int anInitialParsingPosition)
          Sets the character position in the abbreviation where parsing should start.
 void setOrderQuotationRelAbbreviations(java.lang.String[] astrOrderQuotationRelAbbreviations)
          Sets the OrderQuotationRel abbreviations to be resolved.
 void validateParameters()
          Performs parameter checking.
 
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, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
 
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
The IBM copyright string.
See Also:
Constant Field Values
Constructor Detail

ResolveOrderQuotationRelsCmdImpl

public ResolveOrderQuotationRelsCmdImpl()
Constructor for ResolveOrderQuotationRelsCmdImpl.
Method Detail

setOrderQuotationRelAbbreviations

public void setOrderQuotationRelAbbreviations(java.lang.String[] astrOrderQuotationRelAbbreviations)
Description copied from interface: ResolveOrderQuotationRelsCmd
Sets the OrderQuotationRel abbreviations to be resolved.
Specified by:
setOrderQuotationRelAbbreviations in interface ResolveOrderQuotationRelsCmd
Parameters:
astrOrderQuotationRelAbbreviations - the OrderQuotationRel abbreviations.
See Also:
ResolveOrderQuotationRelsCmd.setOrderQuotationRelAbbreviations(String[])

setIncompleteParsingAllowed

public void setIncompleteParsingAllowed(boolean abIncompleteParsingAllowed)
Description copied from interface: ResolveOrderQuotationRelsCmd
Sets whether incomplete parsing is allowed. If false, an _ERR_ORDQUOTREL ECApplicationException will be thrown if the abbreviation cannot be completely parsed.
Specified by:
setIncompleteParsingAllowed in interface ResolveOrderQuotationRelsCmd
Parameters:
abIncompleteParsingAllowed - whether incomplete parsing is allowed.
See Also:
ResolveOrderQuotationRelsCmd.setIncompleteParsingAllowed(boolean)

setInitialParsingPosition

public void setInitialParsingPosition(int anInitialParsingPosition)
Description copied from interface: ResolveOrderQuotationRelsCmd
Sets the character position in the abbreviation where parsing should start.
Specified by:
setInitialParsingPosition in interface ResolveOrderQuotationRelsCmd
See Also:
ResolveOrderQuotationRelsCmd.setInitialParsingPosition(int)

getOrderQuotationRels

public OrderQuotationRelAccessBean[] getOrderQuotationRels()
Description copied from interface: ResolveOrderQuotationRelsCmd
Returns the OrderQuotationRelAccessBeans represented by the abbreviations.
Specified by:
getOrderQuotationRels in interface ResolveOrderQuotationRelsCmd
Returns:
the OrderQuotationRelAccessBeans.
See Also:
ResolveOrderQuotationRelsCmd.getOrderQuotationRels()

getParsingPosition

public int getParsingPosition()
Description copied from interface: ResolveOrderQuotationRelsCmd
Returns the character position in the abbreviation where parsing has ended.
Specified by:
getParsingPosition in interface ResolveOrderQuotationRelsCmd
Returns:
the parsing position.
See Also:
ResolveOrderQuotationRelsCmd.getParsingPosition()

reset

public void reset()
Description copied from class: AbstractECTargetableCommand
This method should be called after a command has been executed to reset its states variables. After the call to reset, we should be able to execute the command again.
Overrides:
reset in class AbstractECTargetableCommand
See Also:
com.ibm.sfc.cmd.Command#reset()

validateParameters

public void validateParameters()
                        throws ECException
Description copied from class: AbstractECTargetableCommand
Performs parameter checking. This method replaces checkParameters() in 5.1. The default implementation of validateParameters() is a no op. It is the responsibility of the command writers to implements this method if they want to perform server side parameter checking.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException
See Also:
ECCommand.validateParameters()

performExecute

public void performExecute()
                    throws ECException
Description copied from class: AbstractECTargetableCommand
The business logic for this command. This method should be overwritten by all command writers. Command writers should call super.performExecute() as the first line in their method.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException
See Also:
ECCommand.performExecute()