com.ibm.commerce.negotiation.bean.commands

Class ControlRuleListBeanCmdImpl

    • Field Detail

      • COPYRIGHT

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

      • ControlRuleListBeanCmdImpl

        public ControlRuleListBeanCmdImpl()
    • Method Detail

      • getOwnerId

        public java.lang.Long getOwnerId()
        Fetches the ownerId used for list population.
        Returns:
        Long
      • getRuleName

        public java.lang.String getRuleName()
        Fetches the control rule name used for list population.
        Returns:
        java.lang.String
      • getRuleType

        public java.lang.String getRuleType()
        Fetches the control rule type used for list population.
        Returns:
        java.lang.String
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        Description copied from class: AbstractECTargetableCommand
        This method is called by the targetable command framework. This is where client side parameter checking is performed (before the execution of the command). The default implementation is to return true.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Overrides:
        isReadyToCallExecute in class AbstractECTargetableCommand
        Returns:
        Always returns 'true'.
      • performExecute

        public void performExecute()
                            throws ECException
        Populates a list of control rules matching specific criteria, in the following precedence: - by match on both the ownerId and ruleType - by match on both the ownerId and ruleName - by matching ownerId - a list of all rules
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException - This exception is allowed to percolate.
      • populateDataBeanCommand

        public void populateDataBeanCommand(InputDataBean aDataBean)
        Gets input data (OwnerId, RuleType, or RuleName) from ControlRuleListBean
        Overrides:
        populateDataBeanCommand in class DataBeanCommandImpl
        Parameters:
        aDataBean - The ControlRuleListBean
      • reset

        public void reset()
        Resets the bean.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setControlRule

        public void setControlRule(ControlRuleAccessBean newControlRuleAccessBean)
        Provides an access bean instance for returning an element from the list.
        Parameters:
        newControlRuleAccessBean - com.ibm.commerce.negotiation.objects.ControlRuleAccessBean
      • setOwnerId

        public void setOwnerId(java.lang.Long newOwnerId)
        Sets the owner ID used by the finder methods to populate the list.
        Specified by:
        setOwnerId in interface ControlRuleListBeanCmd
        Parameters:
        newOwnerId - Long
      • setRuleName

        public void setRuleName(java.lang.String newRuleName)
        Sets the rule name used by the finder method to populate the list.
        Specified by:
        setRuleName in interface ControlRuleListBeanCmd
        Parameters:
        newRuleName - java.lang.String
      • setRuleType

        public void setRuleType(java.lang.String newRuleType)
        Sets the rule type used by the finder methods to populate the list.
        Specified by:
        setRuleType in interface ControlRuleListBeanCmd
        Parameters:
        newRuleType - java.lang.String