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
ConstructorDescriptionBrowseEntityDetails
(List<ProductDetails> productDetails, CategoryDetails categoryDetails, Set<String> urisForMissingEntities) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The category that matched the requested URI.The products that matched the requested URI.int
hashCode()
void
setCategoryDetails
(CategoryDetails categoryDetails) The category that matched the requested URI.void
setProductDetails
(List<ProductDetails> productDetails) The products that matched the requested URI.void
setUrisForMissingEntities
(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 knownProducts
orCategories
.
-
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 knownProducts
orCategories
.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-