Class CategoryDetailsRequest
- All Implemented Interfaces:
CatalogEntityDetailsRequest,Serializable
CatalogProvider to
retrieve a category's details.- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCategoryDetailsRequest(org.springframework.util.MultiValueMap<String, String> parameters, String categoryUrl, String categoryId, boolean hydrateCategoryProductsFromSearch, com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext, com.broadleafcommerce.pricing.client.domain.context.PriceInfoContext priceInfoContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThecategory IDto match against.The category URL to match against.com.broadleafcommerce.data.tracking.core.context.ContextInfoTheContextInfoderived from the original request containing tenant and sandbox info.The parameters included in the original request that don't need to be enumerated in this service but passed along to the provider.com.broadleafcommerce.pricing.client.domain.context.PriceContextThePriceContextfrom the original request containing general pricing info.com.broadleafcommerce.pricing.client.domain.context.PriceInfoContextThePriceInfoContextfrom the original request containing info specific for gettingPriceInfossuch as prefetchedPriceLists.inthashCode()booleanThis flag indicates that the category's products should be hydrated from Search Services rather than Catalog.voidsetCategoryId(String categoryId) Thecategory IDto match against.voidsetCategoryUrl(String categoryUrl) The category URL to match against.voidsetContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfoderived from the original request containing tenant and sandbox info.voidsetHydrateCategoryProductsFromSearch(boolean hydrateCategoryProductsFromSearch) This flag indicates that the category's products should be hydrated from Search Services rather than Catalog.voidsetParameters(org.springframework.util.MultiValueMap<String, String> parameters) The parameters included in the original request that don't need to be enumerated in this service but passed along to the provider.voidsetPriceContext(com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext) ThePriceContextfrom the original request containing general pricing info.voidsetPriceInfoContext(com.broadleafcommerce.pricing.client.domain.context.PriceInfoContext priceInfoContext) ThePriceInfoContextfrom the original request containing info specific for gettingPriceInfossuch as prefetchedPriceLists.toString()
-
Constructor Details
-
CategoryDetailsRequest
public CategoryDetailsRequest() -
CategoryDetailsRequest
public CategoryDetailsRequest(org.springframework.util.MultiValueMap<String, String> parameters, String categoryUrl, String categoryId, boolean hydrateCategoryProductsFromSearch, com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext, com.broadleafcommerce.pricing.client.domain.context.PriceInfoContext priceInfoContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
-
Method Details
-
getParameters
The parameters included in the original request that don't need to be enumerated in this service but passed along to the provider.- Specified by:
getParametersin interfaceCatalogEntityDetailsRequest- Returns:
- The parameters included in the original request
-
getCategoryUrl
The category URL to match against. IfcategoryIdis non-null, then it is used instead of this field.This is typically left unset when fetching a single Category, but is set when using a
BulkCategoryDetailsRequest. Instead, it will be left in theparameters.- Returns:
- The category URL to match against.
-
getCategoryId
Thecategory IDto match against. If this field is non-null, then it is used instead ofcategoryUrl.This is typically left unset when fetching a single Category, but is set when using a
BulkCategoryDetailsRequest. Instead, it will be left in theparameters.- Returns:
- The
category IDto match against.
-
isHydrateCategoryProductsFromSearch
public boolean isHydrateCategoryProductsFromSearch()This flag indicates that the category's products should be hydrated from Search Services rather than Catalog.This is only used in Catalog Browse Service and not passed downstream as a parameter.
- Since:
- Catalog Browse Service 2.1.0, Release Train 2.2.0
-
getPriceContext
public com.broadleafcommerce.pricing.client.domain.context.PriceContext getPriceContext()ThePriceContextfrom the original request containing general pricing info.- Specified by:
getPriceContextin interfaceCatalogEntityDetailsRequest- Returns:
PriceContextfrom the original request
-
getPriceInfoContext
public com.broadleafcommerce.pricing.client.domain.context.PriceInfoContext getPriceInfoContext()ThePriceInfoContextfrom the original request containing info specific for gettingPriceInfossuch as prefetchedPriceLists.- Specified by:
getPriceInfoContextin interfaceCatalogEntityDetailsRequest- Returns:
- The
PriceInfoContextfrom the original request
-
getContextInfo
public com.broadleafcommerce.data.tracking.core.context.ContextInfo getContextInfo()TheContextInfoderived from the original request containing tenant and sandbox info.- Specified by:
getContextInfoin interfaceCatalogEntityDetailsRequest- Returns:
- The
ContextInfoderived from the original request
-
setParameters
The parameters included in the original request that don't need to be enumerated in this service but passed along to the provider. -
setCategoryUrl
The category URL to match against. IfcategoryIdis non-null, then it is used instead of this field.This is typically left unset when fetching a single Category, but is set when using a
BulkCategoryDetailsRequest. Instead, it will be left in theparameters.- Parameters:
categoryUrl- The category URL to match against.
-
setCategoryId
Thecategory IDto match against. If this field is non-null, then it is used instead ofcategoryUrl.This is typically left unset when fetching a single Category, but is set when using a
BulkCategoryDetailsRequest. Instead, it will be left in theparameters.- Parameters:
categoryId- Thecategory IDto match against.
-
setHydrateCategoryProductsFromSearch
public void setHydrateCategoryProductsFromSearch(boolean hydrateCategoryProductsFromSearch) This flag indicates that the category's products should be hydrated from Search Services rather than Catalog.This is only used in Catalog Browse Service and not passed downstream as a parameter.
- Since:
- Catalog Browse Service 2.1.0, Release Train 2.2.0
-
setPriceContext
public void setPriceContext(com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext) ThePriceContextfrom the original request containing general pricing info. -
setPriceInfoContext
public void setPriceInfoContext(com.broadleafcommerce.pricing.client.domain.context.PriceInfoContext priceInfoContext) ThePriceInfoContextfrom the original request containing info specific for gettingPriceInfossuch as prefetchedPriceLists. -
setContextInfo
public void setContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfoderived from the original request containing tenant and sandbox info. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-