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