Interface CategoryProductXref
- All Superinterfaces:
org.broadleafcommerce.common.copy.MultiTenantCloneable<CategoryProductXref>,Serializable
- All Known Implementing Classes:
CategoryProductXrefImpl
public interface CategoryProductXref
extends Serializable, org.broadleafcommerce.common.copy.MultiTenantCloneable<CategoryProductXref>
Implementations of this interface are used to hold data about the many-to-many relationship between
the Category table and the Product table.
You should implement this class if you want to make significant changes to the
relationship between Category and Product. If you just want to add additional fields
then you should extend
CategoryProductXrefImpl.- Author:
- btaylor
-
Method Summary
Modifier and TypeMethodDescriptionGets the category.Specifies the default reference between a category and a product.Gets the display order.getId()Gets the product.voidsetCategory(Category category) Sets the category.voidsetDefaultReference(Boolean defaultReference) voidsetDisplayOrder(BigDecimal displayOrder) Sets the display order.voidvoidsetProduct(Product product) Sets the product.Methods inherited from interface org.broadleafcommerce.common.copy.MultiTenantCloneable
createOrRetrieveCopyInstance
-
Method Details
-
getCategory
Category getCategory()Gets the category.- Returns:
- the category
-
setCategory
Sets the category.- Parameters:
category- the new category
-
getProduct
Product getProduct()Gets the product.- Returns:
- the product
-
setProduct
Sets the product.- Parameters:
product- the new product
-
getDisplayOrder
BigDecimal getDisplayOrder()Gets the display order.- Returns:
- the display order
-
setDisplayOrder
Sets the display order.- Parameters:
displayOrder- the new display order
-
getId
Long getId() -
setId
-
getDefaultReference
Boolean getDefaultReference()Specifies the default reference between a category and a product. The default reference is used to drive cononical urls and also drives inheritance of fulfillment types and inventory types from the category to the product. This replaces the concept ofProductImpl.getDefaultCategory()- Returns:
- the default reference between a product and a category
- See Also:
-
setDefaultReference
-