Class TelcoFunctions

java.lang.Object
de.hybris.platform.b2ctelcoaddon.tags.TelcoFunctions

public class TelcoFunctions extends Object
JSP EL TelcoFunctions. This file contains static methods that are used by JSP EL.
  • Constructor Details

    • TelcoFunctions

      public TelcoFunctions()
  • Method Details

    • doesAppliedPromotionExistForOrderEntry

      public static boolean doesAppliedPromotionExistForOrderEntry(AbstractOrderData cart, int entryNumber)
      Test if a cart has an applied promotion for the specified entry number.
      Parameters:
      cart - the cart
      entryNumber - the entry number
      Returns:
      true if there is an applied promotion for the entry number
    • doesAppliedPromotionExistForOrderEntryAndBillingTime

      public static boolean doesAppliedPromotionExistForOrderEntryAndBillingTime(AbstractOrderData cart, int entryNumber, BillingTimeData billingTime)
      Test if a cart has an applied promotion for the specified entry number and billing time.
      Parameters:
      cart - the cart
      entryNumber - the entry number
      billingTime - the billing time
      Returns:
      true if there is an applied promotion for the entry number and billing time
    • doesPotentialPromotionExistForOrderEntryAndBillingTime

      public static boolean doesPotentialPromotionExistForOrderEntryAndBillingTime(AbstractOrderData cart, int entryNumber, BillingTimeData billingTime)
      Test if a cart has an potential promotion for the specified entry number and billing time.
      Parameters:
      cart - the cart
      entryNumber - the entry number
      billingTime - the billing time
      Returns:
      true if there is an potential promotion for the entry number and billing time
    • doesPotentialPromotionExistForOrder

      public static boolean doesPotentialPromotionExistForOrder(AbstractOrderData cart)
      Test if a cart has any potential promotion for the specified cart.
      Parameters:
      cart - the cart
      Returns:
      true if there is any potential promotion for the given cart
    • doesAppliedPromotionExistForOrder

      public static boolean doesAppliedPromotionExistForOrder(AbstractOrderData cart)
      Test if a cart has any applied promotion for the specified cart.
      Parameters:
      cart - the cart
      Returns:
      true if there is any applied promotion for the given cart
    • getOrderPricesForBillingTime

      protected static OrderPriceData getOrderPricesForBillingTime(AbstractOrderData cart, BillingTimeData billingTime)
      Return the OrderPriceData for the given billingTime and cart.