Class CategoryContentWrapper
- java.lang.Object
-
- org.apache.ofbiz.product.category.CategoryContentWrapper
-
- All Implemented Interfaces:
ContentWrapper
public class CategoryContentWrapper extends java.lang.Object implements ContentWrapper
Category Content Worker: gets category content to display
-
-
Field Summary
Fields Modifier and Type Field Description protected LocalDispatcher
dispatcher
protected java.util.Locale
locale
protected java.lang.String
mimeTypeId
static java.lang.String
module
protected GenericValue
productCategory
static java.lang.String
SEPARATOR
-
Constructor Summary
Constructors Constructor Description CategoryContentWrapper(GenericValue productCategory, javax.servlet.http.HttpServletRequest request)
CategoryContentWrapper(LocalDispatcher dispatcher, GenericValue productCategory, 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 prodCatContentTypeId, java.lang.String encoderType)
static void
getProductCategoryContentAsText(java.lang.String productCategoryId, GenericValue productCategory, java.lang.String prodCatContentTypeId, java.util.Locale locale, java.lang.String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher, java.io.Writer outWriter)
static void
getProductCategoryContentAsText(java.lang.String productCategoryId, GenericValue productCategory, java.lang.String prodCatContentTypeId, java.util.Locale locale, java.lang.String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher, java.io.Writer outWriter, boolean cache)
static java.lang.String
getProductCategoryContentAsText(GenericValue productCategory, java.lang.String prodCatContentTypeId, java.util.Locale locale, java.lang.String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher, java.lang.String encoderType)
static java.lang.String
getProductCategoryContentAsText(GenericValue productCategory, java.lang.String prodCatContentTypeId, java.util.Locale locale, LocalDispatcher dispatcher, java.lang.String encoderType)
static java.lang.String
getProductCategoryContentAsText(GenericValue productCategory, java.lang.String prodCatContentTypeId, javax.servlet.http.HttpServletRequest request, java.lang.String encoderType)
static CategoryContentWrapper
makeCategoryContentWrapper(GenericValue productCategory, 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
-
dispatcher
protected LocalDispatcher dispatcher
-
productCategory
protected GenericValue productCategory
-
locale
protected java.util.Locale locale
-
mimeTypeId
protected java.lang.String mimeTypeId
-
-
Constructor Detail
-
CategoryContentWrapper
public CategoryContentWrapper(LocalDispatcher dispatcher, GenericValue productCategory, java.util.Locale locale, java.lang.String mimeTypeId)
-
CategoryContentWrapper
public CategoryContentWrapper(GenericValue productCategory, javax.servlet.http.HttpServletRequest request)
-
-
Method Detail
-
makeCategoryContentWrapper
public static CategoryContentWrapper makeCategoryContentWrapper(GenericValue productCategory, javax.servlet.http.HttpServletRequest request)
-
get
public StringUtil.StringWrapper get(java.lang.String prodCatContentTypeId, java.lang.String encoderType)
- Specified by:
get
in interfaceContentWrapper
-
getProductCategoryContentAsText
public static java.lang.String getProductCategoryContentAsText(GenericValue productCategory, java.lang.String prodCatContentTypeId, javax.servlet.http.HttpServletRequest request, java.lang.String encoderType)
-
getProductCategoryContentAsText
public static java.lang.String getProductCategoryContentAsText(GenericValue productCategory, java.lang.String prodCatContentTypeId, java.util.Locale locale, LocalDispatcher dispatcher, java.lang.String encoderType)
-
getProductCategoryContentAsText
public static java.lang.String getProductCategoryContentAsText(GenericValue productCategory, java.lang.String prodCatContentTypeId, java.util.Locale locale, java.lang.String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher, java.lang.String encoderType)
-
getProductCategoryContentAsText
public static void getProductCategoryContentAsText(java.lang.String productCategoryId, GenericValue productCategory, java.lang.String prodCatContentTypeId, java.util.Locale locale, java.lang.String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher, java.io.Writer outWriter) throws GeneralException, java.io.IOException
- Throws:
GeneralException
java.io.IOException
-
getProductCategoryContentAsText
public static void getProductCategoryContentAsText(java.lang.String productCategoryId, GenericValue productCategory, java.lang.String prodCatContentTypeId, java.util.Locale locale, java.lang.String mimeTypeId, Delegator delegator, LocalDispatcher dispatcher, java.io.Writer outWriter, boolean cache) throws GeneralException, java.io.IOException
- Throws:
GeneralException
java.io.IOException
-
-