com.ibm.commerce.giftcenter.commands

Class GiftListCheckUserInMemberGroupCmdImpl

    • Constructor Detail

      • GiftListCheckUserInMemberGroupCmdImpl

        public GiftListCheckUserInMemberGroupCmdImpl()
    • Method Detail

      • evaluate

        public boolean evaluate(java.lang.String variable,
                                java.lang.String operator,
                                java.lang.String value,
                                SimpleCondition.Qualifier[] qualifiers)
        Overrides CheckUserInMemberGroupCmdImpl#evaluate(String, String, String, Qualifier[]) method to include a simple condition check for evaluating the gift registry completion program segment. The following shows the simple condition for the gift registry completion program segment which will be evaluated by the method.
        <simpleCondition>
        <variable name="forGCCompletionProgram"/>
        <operator name="="/>
        <value data="T"/>
        </simpleCondition>
        If the segment is a gift registry completion program segment, the business rule validator classes are invoked to check whether the user is currently eligible for getting a promotion on the registry that is being currently completed.
        Specified by:
        evaluate in interface Evaluator
        Overrides:
        evaluate in class CheckUserInMemberGroupCmdImpl
        Parameters:
        variable - The name of the variable.
        operator - The name of the operator.
        value - The data for the value.
        qualifiers - An array of qualifiers.
        Returns:
        true if the condition evaluates to true.