Class GeneratedProductPromotion

All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
ProductPromotion

public abstract class GeneratedProductPromotion extends AbstractPromotion
Generated class for type ProductPromotion.
See Also:
  • Field Details

    • PRODUCTBANNER

      public static final String PRODUCTBANNER
      Qualifier of the ProductPromotion.productBanner attribute
      See Also:
    • PRODUCTS

      public static final String PRODUCTS
      Qualifier of the ProductPromotion.products attribute
      See Also:
    • PRODUCTPROMOTIONRELATION_SRC_ORDERED

      protected static String PRODUCTPROMOTIONRELATION_SRC_ORDERED
      Relation ordering override parameter constants for ProductPromotionRelation from ((promotions))
    • PRODUCTPROMOTIONRELATION_TGT_ORDERED

      protected static String PRODUCTPROMOTIONRELATION_TGT_ORDERED
    • PRODUCTPROMOTIONRELATION_MARKMODIFIED

      protected static String PRODUCTPROMOTIONRELATION_MARKMODIFIED
      Relation disable markmodifed parameter constants for ProductPromotionRelation from ((promotions))
    • CATEGORIES

      public static final String CATEGORIES
      Qualifier of the ProductPromotion.categories attribute
      See Also:
    • CATEGORYPROMOTIONRELATION_SRC_ORDERED

      protected static String CATEGORYPROMOTIONRELATION_SRC_ORDERED
      Relation ordering override parameter constants for CategoryPromotionRelation from ((promotions))
    • CATEGORYPROMOTIONRELATION_TGT_ORDERED

      protected static String CATEGORYPROMOTIONRELATION_TGT_ORDERED
    • CATEGORYPROMOTIONRELATION_MARKMODIFIED

      protected static String CATEGORYPROMOTIONRELATION_MARKMODIFIED
      Relation disable markmodifed parameter constants for CategoryPromotionRelation from ((promotions))
    • DEFAULT_INITIAL_ATTRIBUTES

      protected static final Map<String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
  • Constructor Details

    • GeneratedProductPromotion

      public GeneratedProductPromotion()
  • Method Details

    • getDefaultAttributeModes

      protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
      Overrides:
      getDefaultAttributeModes in class GeneratedAbstractPromotion
    • getCategories

      public Collection<Category> getCategories(SessionContext ctx)
      Generated method - Getter of the ProductPromotion.categories attribute.
      Returns:
      the categories - Categories
    • getCategories

      public Collection<Category> getCategories()
      Generated method - Getter of the ProductPromotion.categories attribute.
      Returns:
      the categories - Categories
    • getCategoriesCount

      public long getCategoriesCount(SessionContext ctx)
    • getCategoriesCount

      public long getCategoriesCount()
    • setCategories

      public void setCategories(SessionContext ctx, Collection<Category> value)
      Generated method - Setter of the ProductPromotion.categories attribute.
      Parameters:
      value - the categories - Categories
    • setCategories

      public void setCategories(Collection<Category> value)
      Generated method - Setter of the ProductPromotion.categories attribute.
      Parameters:
      value - the categories - Categories
    • addToCategories

      public void addToCategories(SessionContext ctx, Category value)
      Generated method - Adds value to categories.
      Parameters:
      value - the item to add to categories - Categories
    • addToCategories

      public void addToCategories(Category value)
      Generated method - Adds value to categories.
      Parameters:
      value - the item to add to categories - Categories
    • removeFromCategories

      public void removeFromCategories(SessionContext ctx, Category value)
      Generated method - Removes value from categories.
      Parameters:
      value - the item to remove from categories - Categories
    • removeFromCategories

      public void removeFromCategories(Category value)
      Generated method - Removes value from categories.
      Parameters:
      value - the item to remove from categories - Categories
    • isMarkModifiedDisabled

      @Deprecated(since="2105", forRemoval=true) public boolean isMarkModifiedDisabled(Item referencedItem)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      isMarkModifiedDisabled in class Item
    • getProductBanner

      public Media getProductBanner(SessionContext ctx)
      Generated method - Getter of the ProductPromotion.productBanner attribute.
      Returns:
      the productBanner - Media to display on the product page when this promotion is available.
    • getProductBanner

      public Media getProductBanner()
      Generated method - Getter of the ProductPromotion.productBanner attribute.
      Returns:
      the productBanner - Media to display on the product page when this promotion is available.
    • setProductBanner

      public void setProductBanner(SessionContext ctx, Media value)
      Generated method - Setter of the ProductPromotion.productBanner attribute.
      Parameters:
      value - the productBanner - Media to display on the product page when this promotion is available.
    • setProductBanner

      public void setProductBanner(Media value)
      Generated method - Setter of the ProductPromotion.productBanner attribute.
      Parameters:
      value - the productBanner - Media to display on the product page when this promotion is available.
    • getProducts

      public Collection<Product> getProducts(SessionContext ctx)
      Generated method - Getter of the ProductPromotion.products attribute.
      Returns:
      the products - Products
    • getProducts

      public Collection<Product> getProducts()
      Generated method - Getter of the ProductPromotion.products attribute.
      Returns:
      the products - Products
    • getProductsCount

      public long getProductsCount(SessionContext ctx)
    • getProductsCount

      public long getProductsCount()
    • setProducts

      public void setProducts(SessionContext ctx, Collection<Product> value)
      Generated method - Setter of the ProductPromotion.products attribute.
      Parameters:
      value - the products - Products
    • setProducts

      public void setProducts(Collection<Product> value)
      Generated method - Setter of the ProductPromotion.products attribute.
      Parameters:
      value - the products - Products
    • addToProducts

      public void addToProducts(SessionContext ctx, Product value)
      Generated method - Adds value to products.
      Parameters:
      value - the item to add to products - Products
    • addToProducts

      public void addToProducts(Product value)
      Generated method - Adds value to products.
      Parameters:
      value - the item to add to products - Products
    • removeFromProducts

      public void removeFromProducts(SessionContext ctx, Product value)
      Generated method - Removes value from products.
      Parameters:
      value - the item to remove from products - Products
    • removeFromProducts

      public void removeFromProducts(Product value)
      Generated method - Removes value from products.
      Parameters:
      value - the item to remove from products - Products