Class BrowseEntityDetails
java.lang.Object
com.broadleafcommerce.catalog.domain.commerce.BrowseEntityDetails
- All Implemented Interfaces:
Serializable
A structure containing either a
ProductDetails or a CategoryDetails for a
BrowseDetailsRequest.
Note: In the case of a category matching the URIs requested, only one category may be returned.
- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBrowseEntityDetails(List<ProductDetails> productDetails, CategoryDetails categoryDetails, Set<String> urisForMissingEntities) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe category that matched the requested URI.The products that matched the requested URI.inthashCode()voidsetCategoryDetails(CategoryDetails categoryDetails) The category that matched the requested URI.voidsetProductDetails(List<ProductDetails> productDetails) The products that matched the requested URI.voidsetUrisForMissingEntities(Set<String> urisForMissingEntities) toString()
-
Constructor Details
-
BrowseEntityDetails
public BrowseEntityDetails() -
BrowseEntityDetails
public BrowseEntityDetails(List<ProductDetails> productDetails, CategoryDetails categoryDetails, Set<String> urisForMissingEntities)
-
-
Method Details
-
getProductDetails
The products that matched the requested URI.- Returns:
- The products that matched the requested URIs.
-
getCategoryDetails
The category that matched the requested URI.- Returns:
- The category that matched the requested URI.
-
getUrisForMissingEntities
- Returns:
- All
BrowseDetailsRequest.getUris()that failed to match knownProductsorCategories.
-
setProductDetails
The products that matched the requested URI.- Parameters:
productDetails- The products that matched the requested URIs.
-
setCategoryDetails
The category that matched the requested URI.- Parameters:
category- The category that matched the requested URI.
-
setUrisForMissingEntities
- Parameters:
productUrisForMissingEntities- AllBrowseDetailsRequest.getUris()that failed to match knownProductsorCategories.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-