Class CategoryDetailsRequest
java.lang.Object
com.broadleafcommerce.catalog.domain.category.commerce.CategoryDetailsRequest
- All Implemented Interfaces:
Serializable
A structure representing a request for a commerce-facing category details page or section
included identifying information for the category for which to get details and interesting
context information.
- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
ConstructorDescriptionCategoryDetailsRequest
(String categoryUrl, String categoryId, org.springframework.data.domain.Pageable productPageInfo, org.springframework.util.MultiValueMap<String, String> attributes) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Map holding any additional attributes passed in the request not matching any defined properties.Thecategory ID
to match against.Thecategory URL
to match against.org.springframework.data.domain.Pageable
Pagination info to apply to theproducts included in the response
.int
hashCode()
void
setAttributes
(org.springframework.util.MultiValueMap<String, String> attributes) Map holding any additional attributes passed in the request not matching any defined properties.void
setCategoryId
(String categoryId) Thecategory ID
to match against.void
setCategoryUrl
(String categoryUrl) Thecategory URL
to match against.void
setProductPageInfo
(org.springframework.data.domain.Pageable productPageInfo) Pagination info to apply to theproducts included in the response
.toString()
-
Constructor Details
-
CategoryDetailsRequest
-
CategoryDetailsRequest
public CategoryDetailsRequest()
-
-
Method Details
-
getCategoryUrl
Thecategory URL
to match against. IfcategoryId
is non-null, then it is used instead of this field.- Returns:
- The
category URL
to match against.
-
getCategoryId
Thecategory ID
to match against. If this field is non-null, then it is used instead ofcategoryUrl
.- Returns:
- The
category ID
to match against.
-
getProductPageInfo
public org.springframework.data.domain.Pageable getProductPageInfo()Pagination info to apply to theproducts included in the response
.- Returns:
- Pagination info to apply to the
products included in the response
-
getAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
setCategoryUrl
Thecategory URL
to match against. IfcategoryId
is non-null, then it is used instead of this field.- Parameters:
categoryUrl
- Thecategory URL
to match against.
-
setCategoryId
Thecategory ID
to match against. If this field is non-null, then it is used instead ofcategoryUrl
.- Parameters:
categoryId
- Thecategory ID
to match against.
-
setProductPageInfo
public void setProductPageInfo(org.springframework.data.domain.Pageable productPageInfo) Pagination info to apply to theproducts included in the response
.- Parameters:
productPageInfo
- Pagination info to apply to theproducts included in the response
-
setAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-