com.ibm.commerce.order.commands

Class CheckOrderCopyCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, CheckOrderCopyCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class CheckOrderCopyCmdImpl
    extends TaskCommandImpl
    implements CheckOrderCopyCmd
    Default implementation of the CheckOrderCopyCmd task command interface.

    Checks that the Order has the correct status value when write access is required.

    This command uses the following AccessBean:
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CheckOrderCopyCmdImpl

        public CheckOrderCopyCmdImpl()
        The default constructor.
    • Method Detail

      • performExecute

        public void performExecute()
                            throws ECException
        Executes the main business logic of the command.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECApplicationException - write access was requested, but the Order status value is neither P nor E. The _ERR_ORDER_WRONG_STATUS message is passed, with message parameters of the Order identifier, its status value and the status value it should have. Exception data is also passed as the following name value pairs: (errorCode, 603), (orderId, the identifier of the Order).
        ECSystemException - an unexpected exception occurred. One of the following messages is passed: ECMessage._ERR_CREATE_EXCEPTION, ECMessage._ERR_FINDER_EXCEPTION, ECMessage._ERR_NAMING_EXCEPTION, ECMessage._ERR_REMOTE_EXCEPTION. The String representation of the exception is passed as a message parameter.
        ECException
      • setAccessType

        public void setAccessType(int anAccessType)
        Sets the AccessType to be checked.
        Specified by:
        setAccessType in interface CheckOrderCopyCmd
        Parameters:
        anAccessType - one of the following values:
      • READ_ACCESS - read-only access to the order.
      • WRITE_ACCESS - write access to the order.