com.ibm.commerce.orderitems.commands

Class ValidateDynamicKitConfigurationInSterlingCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, ValidateDynamicKitConfigurationCmd, 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 ValidateDynamicKitConfigurationInSterlingCmdImpl
    extends TaskCommandImpl
    implements ValidateDynamicKitConfigurationCmd
    This command implementation validates that the configuration associated with the provided OrderItem is still valid. If it is not valid, an exception is thrown.
    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

      • ValidateDynamicKitConfigurationInSterlingCmdImpl

        public ValidateDynamicKitConfigurationInSterlingCmdImpl()
    • Method Detail

      • setConfiguration

        public void setConfiguration(java.lang.String configXML)
        This method sets the configuration to be validated.
        Parameters:
        configXML -
      • getUpdatedConfiguration

        public java.lang.String getUpdatedConfiguration()
        This method gets the updated configuration
        Returns:
        the updated configuration
      • setContractId

        public void setContractId(java.lang.String contractId)
        This method sets the contractId.
        Parameters:
        contractId -
      • getErrorMessage

        public java.lang.String getErrorMessage()
        This method gets the error message of the validation
        Returns:
        the error message
      • performExecute

        public void performExecute()
                            throws ECException
        This method executes the business logic of this command implementation. It calls SterlingClientHelper to validate dynamic kit configuration.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException
      • reset

        public void reset()
        This method is called after a command has been executed. It is used to reset its states variables. After the call to reset, the command should be able to be executed again.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand