Package org.apache.ofbiz.product.catalog
Class CatalogWorker
- java.lang.Object
-
- org.apache.ofbiz.product.catalog.CatalogWorker
-
public final class CatalogWorker extends java.lang.Object
CatalogWorker - Worker class for catalog related functionality
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.util.List<java.lang.String>
getAllCatalogIds(ServletRequest request)
static java.util.List<java.lang.String>
getCatalogIdsAvailable(java.util.List<GenericValue> partyCatalogs, java.util.List<GenericValue> storeCatalogs)
static java.util.List<java.lang.String>
getCatalogIdsAvailable(ServletRequest request)
static java.util.List<java.lang.String>
getCatalogIdsAvailable(Delegator delegator, java.lang.String productStoreId, java.lang.String partyId)
static java.lang.String
getCatalogName(ServletRequest request)
static java.lang.String
getCatalogName(ServletRequest request, java.lang.String prodCatalogId)
static java.lang.String
getCatalogPromotionsCategoryId(ServletRequest request)
static java.lang.String
getCatalogPromotionsCategoryId(ServletRequest request, java.lang.String prodCatalogId)
static java.lang.String
getCatalogPurchaseAllowCategoryId(Delegator delegator, java.lang.String prodCatalogId)
static java.util.Collection<java.lang.String>
getCatalogQuickaddCategories(ServletRequest request)
static java.util.Collection<java.lang.String>
getCatalogQuickaddCategories(ServletRequest request, java.lang.String prodCatalogId)
static java.lang.String
getCatalogQuickaddCategoryPrimary(ServletRequest request)
static java.lang.String
getCatalogQuickaddCategoryPrimary(ServletRequest request, java.lang.String prodCatalogId)
static boolean
getCatalogQuickaddUse(ServletRequest request)
static boolean
getCatalogQuickaddUse(ServletRequest request, java.lang.String prodCatalogId)
static java.lang.String
getCatalogSearchCategoryId(ServletRequest request)
static java.lang.String
getCatalogSearchCategoryId(ServletRequest request, java.lang.String prodCatalogId)
static java.lang.String
getCatalogSearchCategoryId(Delegator delegator, java.lang.String prodCatalogId)
static java.lang.String
getCatalogTopCategoryId(ServletRequest request)
static java.lang.String
getCatalogTopCategoryId(ServletRequest request, java.lang.String prodCatalogId)
static java.lang.String
getCatalogTopEbayCategoryId(ServletRequest request, java.lang.String prodCatalogId)
static java.lang.String
getCatalogViewAllowCategoryId(Delegator delegator, java.lang.String prodCatalogId)
static java.lang.String
getContentPathPrefix(ServletRequest request)
static java.lang.String
getCurrentCatalogId(ServletRequest request)
Retrieves the current prodCatalogId.static java.util.List<GenericValue>
getPartyCatalogs(ServletRequest request)
static java.util.List<GenericValue>
getPartyCatalogs(Delegator delegator, java.lang.String partyId)
static GenericValue
getProdCatalog(ServletRequest request)
static GenericValue
getProdCatalog(ServletRequest request, java.lang.String prodCatalogId)
static java.util.List<GenericValue>
getProdCatalogCategories(ServletRequest request, java.lang.String prodCatalogId, java.lang.String prodCatalogCategoryTypeId)
static java.util.List<GenericValue>
getProdCatalogCategories(Delegator delegator, java.lang.String prodCatalogId, java.lang.String prodCatalogCategoryTypeId)
static java.util.List<GenericValue>
getStoreCatalogs(ServletRequest request)
static java.util.List<GenericValue>
getStoreCatalogs(Delegator delegator, java.lang.String productStoreId)
static java.lang.String
getTemplatePathPrefix(ServletRequest request)
static GenericValue
getWebSite(ServletRequest request)
Deprecated.- Use WebSiteWorker.getWebSite(ServletRequest) insteadstatic java.lang.String
getWebSiteId(ServletRequest request)
Deprecated.- Use WebSiteWorker.getWebSiteId(ServletRequest) instead
-
-
-
Method Detail
-
getWebSiteId
@Deprecated public static java.lang.String getWebSiteId(ServletRequest request)
Deprecated.- Use WebSiteWorker.getWebSiteId(ServletRequest) instead
-
getWebSite
@Deprecated public static GenericValue getWebSite(ServletRequest request)
Deprecated.- Use WebSiteWorker.getWebSite(ServletRequest) instead
-
getAllCatalogIds
public static java.util.List<java.lang.String> getAllCatalogIds(ServletRequest request)
-
getStoreCatalogs
public static java.util.List<GenericValue> getStoreCatalogs(ServletRequest request)
-
getStoreCatalogs
public static java.util.List<GenericValue> getStoreCatalogs(Delegator delegator, java.lang.String productStoreId)
-
getPartyCatalogs
public static java.util.List<GenericValue> getPartyCatalogs(ServletRequest request)
-
getPartyCatalogs
public static java.util.List<GenericValue> getPartyCatalogs(Delegator delegator, java.lang.String partyId)
-
getProdCatalogCategories
public static java.util.List<GenericValue> getProdCatalogCategories(ServletRequest request, java.lang.String prodCatalogId, java.lang.String prodCatalogCategoryTypeId)
-
getProdCatalogCategories
public static java.util.List<GenericValue> getProdCatalogCategories(Delegator delegator, java.lang.String prodCatalogId, java.lang.String prodCatalogCategoryTypeId)
-
getCurrentCatalogId
public static java.lang.String getCurrentCatalogId(ServletRequest request)
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
public static java.util.List<java.lang.String> getCatalogIdsAvailable(ServletRequest request)
-
getCatalogIdsAvailable
public static java.util.List<java.lang.String> getCatalogIdsAvailable(Delegator delegator, java.lang.String productStoreId, java.lang.String partyId)
-
getCatalogIdsAvailable
public static java.util.List<java.lang.String> getCatalogIdsAvailable(java.util.List<GenericValue> partyCatalogs, java.util.List<GenericValue> storeCatalogs)
-
getCatalogName
public static java.lang.String getCatalogName(ServletRequest request)
-
getCatalogName
public static java.lang.String getCatalogName(ServletRequest request, java.lang.String prodCatalogId)
-
getContentPathPrefix
public static java.lang.String getContentPathPrefix(ServletRequest request)
-
getTemplatePathPrefix
public static java.lang.String getTemplatePathPrefix(ServletRequest request)
-
getProdCatalog
public static GenericValue getProdCatalog(ServletRequest request)
-
getProdCatalog
public static GenericValue getProdCatalog(ServletRequest request, java.lang.String prodCatalogId)
-
getCatalogTopCategoryId
public static java.lang.String getCatalogTopCategoryId(ServletRequest request)
-
getCatalogTopCategoryId
public static java.lang.String getCatalogTopCategoryId(ServletRequest request, java.lang.String prodCatalogId)
-
getCatalogSearchCategoryId
public static java.lang.String getCatalogSearchCategoryId(ServletRequest request)
-
getCatalogSearchCategoryId
public static java.lang.String getCatalogSearchCategoryId(ServletRequest request, java.lang.String prodCatalogId)
-
getCatalogSearchCategoryId
public static java.lang.String getCatalogSearchCategoryId(Delegator delegator, java.lang.String prodCatalogId)
-
getCatalogViewAllowCategoryId
public static java.lang.String getCatalogViewAllowCategoryId(Delegator delegator, java.lang.String prodCatalogId)
-
getCatalogPurchaseAllowCategoryId
public static java.lang.String getCatalogPurchaseAllowCategoryId(Delegator delegator, java.lang.String prodCatalogId)
-
getCatalogPromotionsCategoryId
public static java.lang.String getCatalogPromotionsCategoryId(ServletRequest request)
-
getCatalogPromotionsCategoryId
public static java.lang.String getCatalogPromotionsCategoryId(ServletRequest request, java.lang.String prodCatalogId)
-
getCatalogQuickaddUse
public static boolean getCatalogQuickaddUse(ServletRequest request)
-
getCatalogQuickaddUse
public static boolean getCatalogQuickaddUse(ServletRequest request, java.lang.String prodCatalogId)
-
getCatalogQuickaddCategoryPrimary
public static java.lang.String getCatalogQuickaddCategoryPrimary(ServletRequest request)
-
getCatalogQuickaddCategoryPrimary
public static java.lang.String getCatalogQuickaddCategoryPrimary(ServletRequest request, java.lang.String prodCatalogId)
-
getCatalogQuickaddCategories
public static java.util.Collection<java.lang.String> getCatalogQuickaddCategories(ServletRequest request)
-
getCatalogQuickaddCategories
public static java.util.Collection<java.lang.String> getCatalogQuickaddCategories(ServletRequest request, java.lang.String prodCatalogId)
-
getCatalogTopEbayCategoryId
public static java.lang.String getCatalogTopEbayCategoryId(ServletRequest request, java.lang.String prodCatalogId)
-
-