Package org.apache.ofbiz.product.product
Class ProductPromoContentWrapper
java.lang.Object
org.apache.ofbiz.product.product.ProductPromoContentWrapper
- All Implemented Interfaces:
ContentWrapper
Product Promo Content Worker: gets product promo content to display
-
Field Summary
-
Constructor Summary
ConstructorDescriptionProductPromoContentWrapper
(GenericValue productPromo, HttpServletRequest request) ProductPromoContentWrapper
(LocalDispatcher dispatcher, GenericValue productPromo, Locale locale, String mimeTypeId) -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getProductContentAsText
(GenericValue productPromo, String productPromoContentTypeId, Locale locale, LocalDispatcher dispatcher, String encoderType) static void
getProductPromoContentAsText
(String productPromoId, GenericValue productPromo, String productPromoContentTypeId, Locale locale, String mimeTypeId, String partyId, String roleTypeId, Delegator delegator, LocalDispatcher dispatcher, Writer outWriter) static void
getProductPromoContentAsText
(String productPromoId, GenericValue productPromo, String productPromoContentTypeId, Locale locale, String mimeTypeId, String partyId, String roleTypeId, Delegator delegator, LocalDispatcher dispatcher, Writer outWriter, boolean cache) static String
getProductPromoContentAsText
(GenericValue productPromo, String productPromoContentTypeId, Locale locale, String mimeTypeId, String partyId, String roleTypeId, Delegator delegator, LocalDispatcher dispatcher, String encoderType) static String
getProductPromoContentAsText
(GenericValue productPromo, String productPromoContentTypeId, HttpServletRequest request, String encoderType) static ProductPromoContentWrapper
makeProductPromoContentWrapper
(GenericValue productPromo, HttpServletRequest request)
-
Field Details
-
SEPARATOR
- See Also:
-
-
Constructor Details
-
ProductPromoContentWrapper
public ProductPromoContentWrapper(LocalDispatcher dispatcher, GenericValue productPromo, Locale locale, String mimeTypeId) -
ProductPromoContentWrapper
-
-
Method Details
-
makeProductPromoContentWrapper
public static ProductPromoContentWrapper makeProductPromoContentWrapper(GenericValue productPromo, HttpServletRequest request) -
get
- Specified by:
get
in interfaceContentWrapper
-
getProductPromoContentAsText
public static String getProductPromoContentAsText(GenericValue productPromo, String productPromoContentTypeId, HttpServletRequest request, String encoderType) -
getProductContentAsText
public static String getProductContentAsText(GenericValue productPromo, String productPromoContentTypeId, Locale locale, LocalDispatcher dispatcher, String encoderType) -
getProductPromoContentAsText
public static String getProductPromoContentAsText(GenericValue productPromo, String productPromoContentTypeId, Locale locale, String mimeTypeId, String partyId, String roleTypeId, Delegator delegator, LocalDispatcher dispatcher, String encoderType) -
getProductPromoContentAsText
public static void getProductPromoContentAsText(String productPromoId, GenericValue productPromo, String productPromoContentTypeId, Locale locale, String mimeTypeId, String partyId, String roleTypeId, Delegator delegator, LocalDispatcher dispatcher, Writer outWriter) throws GeneralException, IOException - Throws:
GeneralException
IOException
-
getProductPromoContentAsText
public static void getProductPromoContentAsText(String productPromoId, GenericValue productPromo, String productPromoContentTypeId, Locale locale, String mimeTypeId, String partyId, String roleTypeId, Delegator delegator, LocalDispatcher dispatcher, Writer outWriter, boolean cache) throws GeneralException, IOException - Throws:
GeneralException
IOException
-