Package org.apache.ofbiz.solr
Class CategoryUtil
- java.lang.Object
-
- org.apache.ofbiz.solr.CategoryUtil
-
public final class CategoryUtil extends java.lang.Object
Product category util class for solr.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<java.lang.String>
getCatalogIdsByCategoryId(Delegator delegator, java.lang.String productCategoryId)
Gets catalog IDs for specified product category.static java.lang.String
getCategoryNameWithTrail(java.lang.String productCategoryId, java.lang.Boolean showDepth, DispatchContext dctx)
static java.lang.String
getCategoryNameWithTrail(java.lang.String productCategoryId, DispatchContext dctx)
Returns categoryName with trailstatic java.util.List<java.util.List<java.lang.String>>
getCategoryTrail(java.lang.String productCategoryId, DispatchContext dctx)
static java.lang.String
getFacetFilterForCategory(java.lang.String productCategoryId, DispatchContext dctx)
Returns proper FacetFilter from trailed category.static int
getNextLevelFromCategoryId(java.lang.String productCategoryId, DispatchContext dctx)
Returns nextLevel from trailed category.
-
-
-
Method Detail
-
getCatalogIdsByCategoryId
public static java.util.List<java.lang.String> getCatalogIdsByCategoryId(Delegator delegator, java.lang.String productCategoryId)
Gets catalog IDs for specified product category.This method is a supplement to CatalogWorker methods.
-
getCategoryTrail
public static java.util.List<java.util.List<java.lang.String>> getCategoryTrail(java.lang.String productCategoryId, DispatchContext dctx)
-
getCategoryNameWithTrail
public static java.lang.String getCategoryNameWithTrail(java.lang.String productCategoryId, DispatchContext dctx)
Returns categoryName with trail
-
getCategoryNameWithTrail
public static java.lang.String getCategoryNameWithTrail(java.lang.String productCategoryId, java.lang.Boolean showDepth, DispatchContext dctx)
-
getNextLevelFromCategoryId
public static int getNextLevelFromCategoryId(java.lang.String productCategoryId, DispatchContext dctx)
Returns nextLevel from trailed category.Ie for "1/SYRACUS2_CATEGORY/FICTION_C/" the returned value would be 2.
-
getFacetFilterForCategory
public static java.lang.String getFacetFilterForCategory(java.lang.String productCategoryId, DispatchContext dctx)
Returns proper FacetFilter from trailed category.Ie for "1/SYRACUS2_CATEGORY/FICTION_C/" the returned value would be "2/SYRACUS2_CATEGORY/FICTION_C/".
-
-