Class ValidateComponentsForPackageCmdImpl

  • All Implemented Interfaces:, ECCommand, ECTargetableCommand, TaskCommand, ValidateComponentsCmd,,,,,,

    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


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

        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
        the validation result
      • setParentCatEntryId

        public void setParentCatEntryId(java.lang.Long parentCatEntryId)
        The method sets parent CatEntry id.
        Specified by:
        setParentCatEntryId in interface ValidateComponentsCmd
        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
        performExecute in class AbstractECTargetableCommand
      • reset

        public void reset()
        This method resets instance variables.
        Specified by:
        reset in interface
        reset in class AbstractECTargetableCommand