com.ibm.commerce.fulfillment.commands

Class ValidateComponentsForPackageCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, ValidateComponentsCmd, 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 ValidateComponentsForPackageCmdImpl
    extends TaskCommandImpl
    implements ValidateComponentsCmd
    This implementation of ValidateComponentsCmd task command validates components for package only. This is suitable for the scenarios that dynamic kit components are not maintained in CATENTREL table. This command is invoked by CheckInventoryAvailabilityCmd, if validation fails, inventory operations are skipped.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The IBM copyright notice field.
        See Also:
        Constant Field Values
      • CLASSNAME

        public static final java.lang.String CLASSNAME
        The name of this class.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ValidateComponentsForPackageCmdImpl

        public ValidateComponentsForPackageCmdImpl()
    • Method Detail

      • isValid

        public boolean isValid()
        The method returns validation result of this command.
        Specified by:
        isValid in interface ValidateComponentsCmd
        Returns:
        the validation result
      • setParentCatEntryId

        public void setParentCatEntryId(java.lang.Long parentCatEntryId)
        The method sets parent CatEntry id.
        Specified by:
        setParentCatEntryId in interface ValidateComponentsCmd
        Parameters:
        parentCatEntryId - Id of the parent CatEntry whose components are to be validated
      • performExecute

        public void performExecute()
                            throws ECException
        This method performs the main business logic. If the parent CatEntry is package or dynamic kit, it checks CATENTREL table to validate the child components. This validation passes only if child components exist, and none of the component is nested kit.
        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 resets instance variables.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand