Package org.apache.ofbiz.product.product
Class ProductContentWrapper
- java.lang.Object
-
- org.apache.ofbiz.product.product.ProductContentWrapper
-
- All Implemented Interfaces:
ContentWrapper
public class ProductContentWrapper extends java.lang.Object implements ContentWrapper
Product Content Worker: gets product 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
product
static java.lang.String
SEPARATOR
-
Constructor Summary
Constructors Constructor Description ProductContentWrapper(GenericValue product, javax.servlet.http.HttpServletRequest request)
ProductContentWrapper(LocalDispatcher dispatcher, GenericValue product, 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 productContentTypeId, java.lang.String encoderType)
static void
getProductContentAsText(java.lang.String productId, GenericValue product, java.lang.String productContentTypeId, 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
getProductContentAsText(java.lang.String productId, GenericValue product, java.lang.String productContentTypeId, 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
getProductContentAsText(GenericValue product, java.lang.String productContentTypeId, 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
getProductContentAsText(GenericValue product, java.lang.String productContentTypeId, java.util.Locale locale, LocalDispatcher dispatcher, java.lang.String encoderType)
static java.lang.String
getProductContentAsText(GenericValue product, java.lang.String productContentTypeId, javax.servlet.http.HttpServletRequest request, java.lang.String encoderType)
static ProductContentWrapper
makeProductContentWrapper(GenericValue product, 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
-
product
protected GenericValue product
-
locale
protected java.util.Locale locale
-
mimeTypeId
protected java.lang.String mimeTypeId
-
-
Constructor Detail
-
ProductContentWrapper
public ProductContentWrapper(LocalDispatcher dispatcher, GenericValue product, java.util.Locale locale, java.lang.String mimeTypeId)
-
ProductContentWrapper
public ProductContentWrapper(GenericValue product, javax.servlet.http.HttpServletRequest request)
-
-
Method Detail
-
makeProductContentWrapper
public static ProductContentWrapper makeProductContentWrapper(GenericValue product, javax.servlet.http.HttpServletRequest request)
-
get
public StringUtil.StringWrapper get(java.lang.String productContentTypeId, java.lang.String encoderType)
- Specified by:
get
in interfaceContentWrapper
-
getProductContentAsText
public static java.lang.String getProductContentAsText(GenericValue product, java.lang.String productContentTypeId, javax.servlet.http.HttpServletRequest request, java.lang.String encoderType)
-
getProductContentAsText
public static java.lang.String getProductContentAsText(GenericValue product, java.lang.String productContentTypeId, java.util.Locale locale, LocalDispatcher dispatcher, java.lang.String encoderType)
-
getProductContentAsText
public static java.lang.String getProductContentAsText(GenericValue product, java.lang.String productContentTypeId, java.util.Locale locale, java.lang.String mimeTypeId, java.lang.String partyId, java.lang.String roleTypeId, Delegator delegator, LocalDispatcher dispatcher, java.lang.String encoderType)
-
getProductContentAsText
public static void getProductContentAsText(java.lang.String productId, GenericValue product, java.lang.String productContentTypeId, 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
-
getProductContentAsText
public static void getProductContentAsText(java.lang.String productId, GenericValue product, java.lang.String productContentTypeId, 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
-
-