Class CatalogWorker


  • public final class CatalogWorker
    extends java.lang.Object
    CatalogWorker - Worker class for catalog related functionality
    • 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​(Delegator delegator,
                                                                    java.lang.String productStoreId)
      • 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)
      • getProdCatalogCategoryId

        public static java.lang.String getProdCatalogCategoryId​(Delegator delegator,
                                                                java.lang.String prodCatalogId,
                                                                java.lang.String prodCatalogCategoryTypeId)
      • getCatalogTopCategoryId

        public static java.lang.String getCatalogTopCategoryId​(ServletRequest request)
      • getCatalogTopCategoryId

        public static java.lang.String getCatalogTopCategoryId​(ServletRequest request,
                                                               java.lang.String prodCatalogId)
      • getCatalogTopCategoryId

        public static java.lang.String getCatalogTopCategoryId​(Delegator delegator,
                                                               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)
      • getCatalogPromotionsCategoryId

        public static java.lang.String getCatalogPromotionsCategoryId​(Delegator delegator,
                                                                      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)