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(javax.servlet.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(javax.servlet.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(javax.servlet.ServletRequest request)
static java.lang.String
getCatalogName(javax.servlet.ServletRequest request, java.lang.String prodCatalogId)
static java.lang.String
getCatalogPromotionsCategoryId(javax.servlet.ServletRequest request)
static java.lang.String
getCatalogPromotionsCategoryId(javax.servlet.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(javax.servlet.ServletRequest request)
static java.util.Collection<java.lang.String>
getCatalogQuickaddCategories(javax.servlet.ServletRequest request, java.lang.String prodCatalogId)
static java.lang.String
getCatalogQuickaddCategoryPrimary(javax.servlet.ServletRequest request)
static java.lang.String
getCatalogQuickaddCategoryPrimary(javax.servlet.ServletRequest request, java.lang.String prodCatalogId)
static boolean
getCatalogQuickaddUse(javax.servlet.ServletRequest request)
static boolean
getCatalogQuickaddUse(javax.servlet.ServletRequest request, java.lang.String prodCatalogId)
static java.lang.String
getCatalogSearchCategoryId(javax.servlet.ServletRequest request)
static java.lang.String
getCatalogSearchCategoryId(javax.servlet.ServletRequest request, java.lang.String prodCatalogId)
static java.lang.String
getCatalogSearchCategoryId(Delegator delegator, java.lang.String prodCatalogId)
static java.lang.String
getCatalogTopCategoryId(javax.servlet.ServletRequest request)
static java.lang.String
getCatalogTopCategoryId(javax.servlet.ServletRequest request, java.lang.String prodCatalogId)
static java.lang.String
getCatalogTopEbayCategoryId(javax.servlet.ServletRequest request, java.lang.String prodCatalogId)
static java.lang.String
getCatalogViewAllowCategoryId(Delegator delegator, java.lang.String prodCatalogId)
static java.lang.String
getContentPathPrefix(javax.servlet.ServletRequest request)
static java.lang.String
getCurrentCatalogId(javax.servlet.ServletRequest request)
Retrieves the current prodCatalogId.static java.util.List<GenericValue>
getPartyCatalogs(javax.servlet.ServletRequest request)
static java.util.List<GenericValue>
getPartyCatalogs(Delegator delegator, java.lang.String partyId)
static GenericValue
getProdCatalog(javax.servlet.ServletRequest request)
static GenericValue
getProdCatalog(javax.servlet.ServletRequest request, java.lang.String prodCatalogId)
static java.util.List<GenericValue>
getProdCatalogCategories(javax.servlet.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(javax.servlet.ServletRequest request)
static java.util.List<GenericValue>
getStoreCatalogs(Delegator delegator, java.lang.String productStoreId)
static java.lang.String
getTemplatePathPrefix(javax.servlet.ServletRequest request)
static GenericValue
getWebSite(javax.servlet.ServletRequest request)
Deprecated.- Use WebSiteWorker.getWebSite(ServletRequest) insteadstatic java.lang.String
getWebSiteId(javax.servlet.ServletRequest request)
Deprecated.- Use WebSiteWorker.getWebSiteId(ServletRequest) instead
-
-
-
Method Detail
-
getWebSiteId
@Deprecated public static java.lang.String getWebSiteId(javax.servlet.ServletRequest request)
Deprecated.- Use WebSiteWorker.getWebSiteId(ServletRequest) instead
-
getWebSite
@Deprecated public static GenericValue getWebSite(javax.servlet.ServletRequest request)
Deprecated.- Use WebSiteWorker.getWebSite(ServletRequest) instead
-
getAllCatalogIds
public static java.util.List<java.lang.String> getAllCatalogIds(javax.servlet.ServletRequest request)
-
getStoreCatalogs
public static java.util.List<GenericValue> getStoreCatalogs(javax.servlet.ServletRequest request)
-
getStoreCatalogs
public static java.util.List<GenericValue> getStoreCatalogs(Delegator delegator, java.lang.String productStoreId)
-
getPartyCatalogs
public static java.util.List<GenericValue> getPartyCatalogs(javax.servlet.ServletRequest request)
-
getPartyCatalogs
public static java.util.List<GenericValue> getPartyCatalogs(Delegator delegator, java.lang.String partyId)
-
getProdCatalogCategories
public static java.util.List<GenericValue> getProdCatalogCategories(javax.servlet.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(javax.servlet.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(javax.servlet.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(javax.servlet.ServletRequest request)
-
getCatalogName
public static java.lang.String getCatalogName(javax.servlet.ServletRequest request, java.lang.String prodCatalogId)
-
getContentPathPrefix
public static java.lang.String getContentPathPrefix(javax.servlet.ServletRequest request)
-
getTemplatePathPrefix
public static java.lang.String getTemplatePathPrefix(javax.servlet.ServletRequest request)
-
getProdCatalog
public static GenericValue getProdCatalog(javax.servlet.ServletRequest request)
-
getProdCatalog
public static GenericValue getProdCatalog(javax.servlet.ServletRequest request, java.lang.String prodCatalogId)
-
getCatalogTopCategoryId
public static java.lang.String getCatalogTopCategoryId(javax.servlet.ServletRequest request)
-
getCatalogTopCategoryId
public static java.lang.String getCatalogTopCategoryId(javax.servlet.ServletRequest request, java.lang.String prodCatalogId)
-
getCatalogSearchCategoryId
public static java.lang.String getCatalogSearchCategoryId(javax.servlet.ServletRequest request)
-
getCatalogSearchCategoryId
public static java.lang.String getCatalogSearchCategoryId(javax.servlet.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(javax.servlet.ServletRequest request)
-
getCatalogPromotionsCategoryId
public static java.lang.String getCatalogPromotionsCategoryId(javax.servlet.ServletRequest request, java.lang.String prodCatalogId)
-
getCatalogQuickaddUse
public static boolean getCatalogQuickaddUse(javax.servlet.ServletRequest request)
-
getCatalogQuickaddUse
public static boolean getCatalogQuickaddUse(javax.servlet.ServletRequest request, java.lang.String prodCatalogId)
-
getCatalogQuickaddCategoryPrimary
public static java.lang.String getCatalogQuickaddCategoryPrimary(javax.servlet.ServletRequest request)
-
getCatalogQuickaddCategoryPrimary
public static java.lang.String getCatalogQuickaddCategoryPrimary(javax.servlet.ServletRequest request, java.lang.String prodCatalogId)
-
getCatalogQuickaddCategories
public static java.util.Collection<java.lang.String> getCatalogQuickaddCategories(javax.servlet.ServletRequest request)
-
getCatalogQuickaddCategories
public static java.util.Collection<java.lang.String> getCatalogQuickaddCategories(javax.servlet.ServletRequest request, java.lang.String prodCatalogId)
-
getCatalogTopEbayCategoryId
public static java.lang.String getCatalogTopEbayCategoryId(javax.servlet.ServletRequest request, java.lang.String prodCatalogId)
-
-