com.ibm.commerce.price.rule.commands.element

Interface PriceRuleElementCmd

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
      static java.lang.String defaultCommandClassName
      Default implementation class for this command.
      • Fields inherited from interface com.ibm.websphere.command.Command

        serialVersionUID
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      java.lang.String getCatentryId()
      Get catalog entry id.
      java.lang.String getCurrency()
      Get currency.
      java.lang.String getElementId()
      Get element id.
      java.util.Map getElementParameters()
      This method gets the parameters.
      com.ibm.commerce.price.rule.runtime.objects.PriceRuleObject getPriceRule()
      Get price rule.
      java.lang.Double getQuantity()
      Get quantity.
      java.util.Map getReturnedObject()
      Get returned object.
      java.util.Map getRuntimeParametersMap()
      Get runtime parameters map.
      java.lang.String getUom()
      Get UOM.
      void setCatentryId(java.lang.String catentryId)
      Set catalog entry id.
      void setCurrency(java.lang.String currency)
      Set currency.
      void setElementId(java.lang.String elementId)
      Set element id.
      void setElementParameters(java.util.Map parameters)
      This method sets the parameters associated with the element.
      void setPriceRule(com.ibm.commerce.price.rule.runtime.objects.PriceRuleObject priceRule)
      Set the price rule.
      void setQuantity(java.lang.Double quantity)
      Set quantity.
      void setReturnedObject(java.util.Map returnedObject)
      Set returned object.
      void setRuntimeParametersMap(java.util.Map runtimeParametersMap)
      Set runtime parameters map.
      void setUom(java.lang.String uom)
      Set UOM.
      java.util.List validateParameters(java.util.Map elementParameters)
      Validate the parameters.
      • Methods inherited from interface com.ibm.websphere.command.CacheableCommand

        executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
      • Methods inherited from interface com.ibm.websphere.command.TargetableCommand

        getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
      • Methods inherited from interface com.ibm.websphere.command.Command

        execute, isReadyToCallExecute, reset
      • Methods inherited from interface com.ibm.websphere.command.CommandCaller

        unionDependencies
    • Field Detail

      • COPYRIGHT

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

        static final java.lang.String defaultCommandClassName
        Default implementation class for this command.
    • Method Detail

      • setElementParameters

        void setElementParameters(java.util.Map parameters)
        This method sets the parameters associated with the element. The parameters are from the definition of element template along with the data in the PRELEMENTATTR database table.
        Parameters:
        parameters - The name value pairs available to the task command implementation. It can't be null.
      • getElementParameters

        java.util.Map getElementParameters()
        This method gets the parameters.
        Returns:
        The name value pairs to provide to the task command implementation. This value will be null if no data found.
      • validateParameters

        java.util.List validateParameters(java.util.Map elementParameters)
        Validate the parameters.
        Parameters:
        elementParameters -
        Returns:
        A list which contains all validation errors.This value will be null if no errors found.
      • setPriceRule

        void setPriceRule(com.ibm.commerce.price.rule.runtime.objects.PriceRuleObject priceRule)
        Set the price rule.
        Parameters:
        priceRule - It can't be null.
      • getPriceRule

        com.ibm.commerce.price.rule.runtime.objects.PriceRuleObject getPriceRule()
        Get price rule.
        Returns:
        Price rule object. This value will be null if no data found.
      • setElementId

        void setElementId(java.lang.String elementId)
        Set element id.
        Parameters:
        elementId - It can't be null.
      • getElementId

        java.lang.String getElementId()
        Get element id.
        Returns:
        The element id. This value will be null if no data found.
      • setCatentryId

        void setCatentryId(java.lang.String catentryId)
        Set catalog entry id.
        Parameters:
        catentryId - It can't be null.
      • getCatentryId

        java.lang.String getCatentryId()
        Get catalog entry id.
        Returns:
        Catalog entry. This value will be null if no data found.
      • getCurrency

        java.lang.String getCurrency()
        Get currency.
        Returns:
        Currency. This value will be null if no data found.
      • setCurrency

        void setCurrency(java.lang.String currency)
        Set currency.
        Parameters:
        currency - It can't be null.
      • getUom

        java.lang.String getUom()
        Get UOM.
        Returns:
        UOM. This value will be null if no data found.
      • setUom

        void setUom(java.lang.String uom)
        Set UOM.
        Parameters:
        uom - It can't be null.
      • getQuantity

        java.lang.Double getQuantity()
        Get quantity.
        Returns:
        Quantity. This value will be null if no data found.
      • setQuantity

        void setQuantity(java.lang.Double quantity)
        Set quantity.
        Parameters:
        quantity - It can't be null.
      • getRuntimeParametersMap

        java.util.Map getRuntimeParametersMap()
        Get runtime parameters map.
        Returns:
        Runtime parameters map. This value will be null if no data found.
      • setRuntimeParametersMap

        void setRuntimeParametersMap(java.util.Map runtimeParametersMap)
        Set runtime parameters map.
        Parameters:
        runtimeParametersMap - It can't be null.
      • getReturnedObject

        java.util.Map getReturnedObject()
        Get returned object.
        Returns:
        The returned object. This value will be null if no data found.
      • setReturnedObject

        void setReturnedObject(java.util.Map returnedObject)
        Set returned object.
        Parameters:
        returnedObject - It can't be null.