Package org.apache.ofbiz.product.catalog
Class CatalogWorker
java.lang.Object
org.apache.ofbiz.product.catalog.CatalogWorker
CatalogWorker - Worker class for catalog related functionality
-
Method Summary
Modifier and TypeMethodDescriptiongetAllCatalogIds
(ServletRequest request) getCatalogIdsAvailable
(List<GenericValue> partyCatalogs, List<GenericValue> storeCatalogs) getCatalogIdsAvailable
(ServletRequest request) getCatalogIdsAvailable
(Delegator delegator, String productStoreId, String partyId) static String
getCatalogName
(ServletRequest request) static String
getCatalogName
(ServletRequest request, String prodCatalogId) static String
static String
getCatalogPromotionsCategoryId
(ServletRequest request, String prodCatalogId) static String
getCatalogPromotionsCategoryId
(Delegator delegator, String prodCatalogId) static String
getCatalogPurchaseAllowCategoryId
(Delegator delegator, String prodCatalogId) static Collection<String>
static Collection<String>
getCatalogQuickaddCategories
(ServletRequest request, String prodCatalogId) static String
static String
getCatalogQuickaddCategoryPrimary
(ServletRequest request, String prodCatalogId) static boolean
getCatalogQuickaddUse
(ServletRequest request) static boolean
getCatalogQuickaddUse
(ServletRequest request, String prodCatalogId) static String
getCatalogSearchCategoryId
(ServletRequest request) static String
getCatalogSearchCategoryId
(ServletRequest request, String prodCatalogId) static String
getCatalogSearchCategoryId
(Delegator delegator, String prodCatalogId) static String
getCatalogTopCategoryId
(ServletRequest request) static String
getCatalogTopCategoryId
(ServletRequest request, String prodCatalogId) static String
getCatalogTopCategoryId
(Delegator delegator, String prodCatalogId) static String
getCatalogTopEbayCategoryId
(ServletRequest request, String prodCatalogId) static String
getCatalogViewAllowCategoryId
(Delegator delegator, String prodCatalogId) static String
getContentPathPrefix
(ServletRequest request) static String
getCurrentCatalogId
(ServletRequest request) Retrieves the current prodCatalogId.static List<GenericValue>
getPartyCatalogs
(ServletRequest request) static List<GenericValue>
getPartyCatalogs
(Delegator delegator, String partyId) static GenericValue
getProdCatalog
(ServletRequest request) static GenericValue
getProdCatalog
(ServletRequest request, String prodCatalogId) static List<GenericValue>
getProdCatalogCategories
(ServletRequest request, String prodCatalogId, String prodCatalogCategoryTypeId) static List<GenericValue>
getProdCatalogCategories
(Delegator delegator, String prodCatalogId, String prodCatalogCategoryTypeId) static String
getProdCatalogCategoryId
(Delegator delegator, String prodCatalogId, String prodCatalogCategoryTypeId) static List<GenericValue>
getStoreCatalogs
(ServletRequest request) static List<GenericValue>
getStoreCatalogs
(Delegator delegator, String productStoreId) static String
getTemplatePathPrefix
(ServletRequest request) static GenericValue
getWebSite
(ServletRequest request) Deprecated.- Use WebSiteWorker.getWebSite(ServletRequest) insteadstatic String
getWebSiteId
(ServletRequest request) Deprecated.- Use WebSiteWorker.getWebSiteId(ServletRequest) instead
-
Method Details
-
getWebSiteId
Deprecated.- Use WebSiteWorker.getWebSiteId(ServletRequest) instead -
getWebSite
Deprecated.- Use WebSiteWorker.getWebSite(ServletRequest) instead -
getAllCatalogIds
-
getStoreCatalogs
-
getStoreCatalogs
-
getPartyCatalogs
-
getPartyCatalogs
-
getProdCatalogCategories
public static List<GenericValue> getProdCatalogCategories(ServletRequest request, String prodCatalogId, String prodCatalogCategoryTypeId) -
getProdCatalogCategories
public static List<GenericValue> getProdCatalogCategories(Delegator delegator, String prodCatalogId, String prodCatalogCategoryTypeId) -
getCurrentCatalogId
Retrieves the current prodCatalogId. First it will attempt to find it from a special request parameter or session attribute named CURRENT_CATALOG_ID. Failing that, it will get the first catalog from the database as specified in getCatalogIdsAvailable(). If this behavior is undesired, give the user a selectable list of catalogs. -
getCatalogIdsAvailable
-
getCatalogIdsAvailable
-
getCatalogIdsAvailable
public static List<String> getCatalogIdsAvailable(List<GenericValue> partyCatalogs, List<GenericValue> storeCatalogs) -
getCatalogName
-
getCatalogName
-
getContentPathPrefix
-
getTemplatePathPrefix
-
getProdCatalog
-
getProdCatalog
-
getProdCatalogCategoryId
-
getCatalogTopCategoryId
-
getCatalogTopCategoryId
-
getCatalogTopCategoryId
-
getCatalogSearchCategoryId
-
getCatalogSearchCategoryId
-
getCatalogSearchCategoryId
-
getCatalogViewAllowCategoryId
-
getCatalogPurchaseAllowCategoryId
-
getCatalogPromotionsCategoryId
-
getCatalogPromotionsCategoryId
-
getCatalogPromotionsCategoryId
-
getCatalogQuickaddUse
-
getCatalogQuickaddUse
-
getCatalogQuickaddCategoryPrimary
-
getCatalogQuickaddCategoryPrimary
public static String getCatalogQuickaddCategoryPrimary(ServletRequest request, String prodCatalogId) -
getCatalogQuickaddCategories
-
getCatalogQuickaddCategories
public static Collection<String> getCatalogQuickaddCategories(ServletRequest request, String prodCatalogId) -
getCatalogTopEbayCategoryId
-