Class BrowseEntityDetails
- java.lang.Object
-
- com.broadleafcommerce.catalogbrowse.domain.BrowseEntityDetails
-
- All Implemented Interfaces:
Serializable
public class BrowseEntityDetails extends Object implements Serializable
A structure containing either aProductor aCategoryfor aBrowseDetailsRequest.Note: In the case of a category matching the URIs requested, only one category may be returned.
- Author:
- Nathan Moore (nathandmoore)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BrowseEntityDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)CategorygetCategory()The category that matched theBrowseDetailsRequest.List<Product>getProducts()AllProductsand their details if products match theBrowseDetailsRequest.Set<String>getUrisForMissingEntities()All URIs that failed to match knownProductsorCategories.inthashCode()voidsetCategory(Category category)The category that matched theBrowseDetailsRequest.voidsetProducts(List<Product> products)AllProductsand their details if products match theBrowseDetailsRequest.voidsetUrisForMissingEntities(Set<String> urisForMissingEntities)All URIs that failed to match knownProductsorCategories.StringtoString()
-
-
-
Method Detail
-
getProducts
public List<Product> getProducts()
AllProductsand their details if products match theBrowseDetailsRequest.- Returns:
- All
Productsfor the request.
-
getCategory
public Category getCategory()
The category that matched theBrowseDetailsRequest.- Returns:
- The category that matched the
BrowseDetailsRequest.
-
getUrisForMissingEntities
public Set<String> getUrisForMissingEntities()
All URIs that failed to match knownProductsorCategories.- Returns:
- All URIs that failed to match known
ProductsorCategories.
-
setProducts
public void setProducts(List<Product> products)
AllProductsand their details if products match theBrowseDetailsRequest.- Parameters:
products- AllProductsfor the request.
-
setCategory
public void setCategory(Category category)
The category that matched theBrowseDetailsRequest.- Parameters:
category- The category that matched theBrowseDetailsRequest.
-
setUrisForMissingEntities
public void setUrisForMissingEntities(Set<String> urisForMissingEntities)
All URIs that failed to match knownProductsorCategories.- Parameters:
productUrisForMissingEntities- All URIs that failed to match knownProductsorCategories.
-
canEqual
protected boolean canEqual(Object other)
-
-