Class BrowseEntityDetails
java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.BrowseEntityDetails
- All Implemented Interfaces:
Serializable
A structure containing either a
Product or a Category 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe category that matched theBrowseDetailsRequest.TheContentItemsthat matched theBrowseDetailsRequestif not paginated.Any requestedContentItem idsthat did not match active content.Any requestedContentItem namesthat did not match active content.TheContentItemsthat matched theBrowseDetailsRequestif paginated.AllProductsand their details if products match theBrowseDetailsRequest.All URIs that failed to match knownProductsorCategories.inthashCode()booleanvoidsetCategory(Category category) The category that matched theBrowseDetailsRequest.voidsetContentItems(List<ContentItem> contentItems) TheContentItemsthat matched theBrowseDetailsRequestif not paginated.voidsetItemIdsNotFound(Set<String> itemIdsNotFound) Any requestedContentItem idsthat did not match active content.voidsetItemNamesNotFound(Set<String> itemNamesNotFound) Any requestedContentItem namesthat did not match active content.voidsetPaginatedContentItems(SimplePage<ContentItem> paginatedContentItems) TheContentItemsthat matched theBrowseDetailsRequestif paginated.voidsetProducts(List<Product> products) AllProductsand their details if products match theBrowseDetailsRequest.voidsetUrisForMissingEntities(Set<String> urisForMissingEntities) All URIs that failed to match knownProductsorCategories.toString()
-
Constructor Details
-
BrowseEntityDetails
public BrowseEntityDetails()
-
-
Method Details
-
hasResults
public boolean hasResults() -
getProducts
AllProductsand their details if products match theBrowseDetailsRequest.- Returns:
- All
Productsfor the request.
-
getCategory
The category that matched theBrowseDetailsRequest.- Returns:
- The category that matched the
BrowseDetailsRequest.
-
getContentItems
TheContentItemsthat matched theBrowseDetailsRequestif not paginated.- Returns:
- The
ContentItemsthat matched theBrowseDetailsRequest.
-
getPaginatedContentItems
TheContentItemsthat matched theBrowseDetailsRequestif paginated.- Returns:
- The
ContentItemsthat matched theBrowseDetailsRequest.
-
getUrisForMissingEntities
All URIs that failed to match knownProductsorCategories.- Returns:
- All URIs that failed to match known
ProductsorCategories.
-
getItemNamesNotFound
Any requestedContentItem namesthat did not match active content.- Returns:
- Any requested
ContentItem namesthat did not match active content.
-
getItemIdsNotFound
Any requestedContentItem idsthat did not match active content.- Returns:
- Any requested
ContentItem idsthat did not match active content.
-
setProducts
AllProductsand their details if products match theBrowseDetailsRequest.- Parameters:
products- AllProductsfor the request.
-
setCategory
The category that matched theBrowseDetailsRequest.- Parameters:
category- The category that matched theBrowseDetailsRequest.
-
setContentItems
TheContentItemsthat matched theBrowseDetailsRequestif not paginated.- Parameters:
contentItems- TheContentItemsthat matched theBrowseDetailsRequest.
-
setPaginatedContentItems
TheContentItemsthat matched theBrowseDetailsRequestif paginated.- Parameters:
contentItems- TheContentItemsthat matched theBrowseDetailsRequest.
-
setUrisForMissingEntities
All URIs that failed to match knownProductsorCategories.- Parameters:
productUrisForMissingEntities- All URIs that failed to match knownProductsorCategories.
-
setItemNamesNotFound
Any requestedContentItem namesthat did not match active content. -
setItemIdsNotFound
Any requestedContentItem idsthat did not match active content. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-