Package org.apache.ofbiz.solr
Class CategoryUtil
java.lang.Object
org.apache.ofbiz.solr.CategoryUtil
Product category util class for solr.
-
Method Summary
Modifier and TypeMethodDescriptiongetCatalogIdsByCategoryId
(Delegator delegator, String productCategoryId) Gets catalog IDs for specified product category.static String
getCategoryNameWithTrail
(String productCategoryId, Boolean showDepth, DispatchContext dctx) static String
getCategoryNameWithTrail
(String productCategoryId, DispatchContext dctx) Returns categoryName with trailgetCategoryTrail
(String productCategoryId, DispatchContext dctx) static String
getFacetFilterForCategory
(String productCategoryId, DispatchContext dctx) Returns proper FacetFilter from trailed category.static int
getNextLevelFromCategoryId
(String productCategoryId, DispatchContext dctx) Returns nextLevel from trailed category.
-
Method Details
-
getCatalogIdsByCategoryId
Gets catalog IDs for specified product category.This method is a supplement to CatalogWorker methods.
-
getCategoryTrail
-
getCategoryNameWithTrail
Returns categoryName with trail -
getCategoryNameWithTrail
public static String getCategoryNameWithTrail(String productCategoryId, Boolean showDepth, DispatchContext dctx) -
getNextLevelFromCategoryId
Returns nextLevel from trailed category.Ie for "1/SYRACUS2_CATEGORY/FICTION_C/" the returned value would be 2.
-
getFacetFilterForCategory
Returns proper FacetFilter from trailed category.Ie for "1/SYRACUS2_CATEGORY/FICTION_C/" the returned value would be "2/SYRACUS2_CATEGORY/FICTION_C/".
-