Package org.apache.ofbiz.product.product
Class ProductPromoContentWrapper
- java.lang.Object
-
- org.apache.ofbiz.product.product.ProductPromoContentWrapper
-
- All Implemented Interfaces:
ContentWrapper
public class ProductPromoContentWrapper extends java.lang.Object implements ContentWrapper
Product Promo Content Worker: gets product promo content to display
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Locale
locale
protected java.lang.String
mimeTypeId
static java.lang.String
module
protected GenericValue
productPromo
static java.lang.String
SEPARATOR
-
Constructor Summary
Constructors Constructor Description ProductPromoContentWrapper(GenericValue productPromo, javax.servlet.http.HttpServletRequest request)
ProductPromoContentWrapper(LocalDispatcher dispatcher, GenericValue productPromo, java.util.Locale locale, java.lang.String mimeTypeId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringUtil.StringWrapper
get(java.lang.String productPromoContentTypeId, java.lang.String encoderType)
static java.lang.String
getProductContentAsText(GenericValue productPromo, java.lang.String productPromoContentTypeId, java.util.Locale locale, LocalDispatcher dispatcher, java.lang.String encoderType)
static void
getProductPromoContentAsText(java.lang.String productPromoId, GenericValue productPromo, java.lang.String productPromoContentTypeId, java.util.Locale locale, java.lang.String mimeTypeId, java.lang.String partyId, java.lang.String roleTypeId, Delegator delegator, LocalDispatcher dispatcher, java.io.Writer outWriter)
static void
getProductPromoContentAsText(java.lang.String productPromoId, GenericValue productPromo, java.lang.String productPromoContentTypeId, java.util.Locale locale, java.lang.String mimeTypeId, java.lang.String partyId, java.lang.String roleTypeId, Delegator delegator, LocalDispatcher dispatcher, java.io.Writer outWriter, boolean cache)
static java.lang.String
getProductPromoContentAsText(GenericValue productPromo, java.lang.String productPromoContentTypeId, java.util.Locale locale, java.lang.String mimeTypeId, java.lang.String partyId, java.lang.String roleTypeId, Delegator delegator, LocalDispatcher dispatcher, java.lang.String encoderType)
static java.lang.String
getProductPromoContentAsText(GenericValue productPromo, java.lang.String productPromoContentTypeId, javax.servlet.http.HttpServletRequest request, java.lang.String encoderType)
static ProductPromoContentWrapper
makeProductPromoContentWrapper(GenericValue productPromo, javax.servlet.http.HttpServletRequest request)
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
SEPARATOR
public static final java.lang.String SEPARATOR
- See Also:
- Constant Field Values
-
productPromo
protected GenericValue productPromo
-
locale
protected java.util.Locale locale
-
mimeTypeId
protected java.lang.String mimeTypeId
-
-
Constructor Detail
-
ProductPromoContentWrapper
public ProductPromoContentWrapper(LocalDispatcher dispatcher, GenericValue productPromo, java.util.Locale locale, java.lang.String mimeTypeId)
-
ProductPromoContentWrapper
public ProductPromoContentWrapper(GenericValue productPromo, javax.servlet.http.HttpServletRequest request)
-
-
Method Detail
-
makeProductPromoContentWrapper
public static ProductPromoContentWrapper makeProductPromoContentWrapper(GenericValue productPromo, javax.servlet.http.HttpServletRequest request)
-
get
public StringUtil.StringWrapper get(java.lang.String productPromoContentTypeId, java.lang.String encoderType)
- Specified by:
get
in interfaceContentWrapper
-
getProductPromoContentAsText
public static java.lang.String getProductPromoContentAsText(GenericValue productPromo, java.lang.String productPromoContentTypeId, javax.servlet.http.HttpServletRequest request, java.lang.String encoderType)
-
getProductContentAsText
public static java.lang.String getProductContentAsText(GenericValue productPromo, java.lang.String productPromoContentTypeId, java.util.Locale locale, LocalDispatcher dispatcher, java.lang.String encoderType)
-
getProductPromoContentAsText
public static java.lang.String getProductPromoContentAsText(GenericValue productPromo, java.lang.String productPromoContentTypeId, java.util.Locale locale, java.lang.String mimeTypeId, java.lang.String partyId, java.lang.String roleTypeId, Delegator delegator, LocalDispatcher dispatcher, java.lang.String encoderType)
-
getProductPromoContentAsText
public static void getProductPromoContentAsText(java.lang.String productPromoId, GenericValue productPromo, java.lang.String productPromoContentTypeId, java.util.Locale locale, java.lang.String mimeTypeId, java.lang.String partyId, java.lang.String roleTypeId, Delegator delegator, LocalDispatcher dispatcher, java.io.Writer outWriter) throws GeneralException, java.io.IOException
- Throws:
GeneralException
java.io.IOException
-
getProductPromoContentAsText
public static void getProductPromoContentAsText(java.lang.String productPromoId, GenericValue productPromo, java.lang.String productPromoContentTypeId, java.util.Locale locale, java.lang.String mimeTypeId, java.lang.String partyId, java.lang.String roleTypeId, Delegator delegator, LocalDispatcher dispatcher, java.io.Writer outWriter, boolean cache) throws GeneralException, java.io.IOException
- Throws:
GeneralException
java.io.IOException
-
-