Class OptionGenerationRequest
java.lang.Object
com.broadleafcommerce.catalog.web.endpoint.dto.OptionGenerationRequest
- All Implemented Interfaces:
Serializable
DTO representing a request to generate a
Product's options from a
OptionTemplate or OptionTemplateGroup.- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe type of the generation: EitherOptionGenerationType.TEMPLATEorOptionGenerationType.TEMPLATE_GROUP.A direct getter for the ID of theOptionTemplateGroupto be used for generating options for a product.A direct getter for the ID of theOptionTemplateto be used for generating options for a product.ID of theProductfor which options should be generated.The OptionTemplateRef of theOptionTemplateto be used for generating options for a product if thegenerationTypeisOptionGenerationType.TEMPLATE, then this field is used.The OptionTemplateGroupRef of theOptionTemplateGroupto be used for generating options for a product if thegenerationTypeisOptionGenerationType.TEMPLATE_GROUP, then this field is used.inthashCode()voidsetGenerationType(String generationType) The type of the generation: EitherOptionGenerationType.TEMPLATEorOptionGenerationType.TEMPLATE_GROUP.voidsetProductId(String productId) ID of theProductfor which options should be generated.voidsetTemplate(OptionTemplateRef template) The OptionTemplateRef of theOptionTemplateto be used for generating options for a product if thegenerationTypeisOptionGenerationType.TEMPLATE, then this field is used.voidsetTemplateGroup(OptionTemplateGroupRef templateGroup) The OptionTemplateGroupRef of theOptionTemplateGroupto be used for generating options for a product if thegenerationTypeisOptionGenerationType.TEMPLATE_GROUP, then this field is used.toString()
-
Constructor Details
-
OptionGenerationRequest
public OptionGenerationRequest()
-
-
Method Details
-
getOptionTemplateId
A direct getter for the ID of theOptionTemplateto be used for generating options for a product.- Returns:
- The ID of the
OptionTemplate
-
getOptionTemplateGroupId
A direct getter for the ID of theOptionTemplateGroupto be used for generating options for a product.- Returns:
- The ID of the
OptionTemplateGroup
-
getProductId
ID of theProductfor which options should be generated.- Returns:
- ID of the
Productfor which options should be generated.
-
getGenerationType
The type of the generation: EitherOptionGenerationType.TEMPLATEorOptionGenerationType.TEMPLATE_GROUP.- Returns:
- The type of the generation
-
getTemplate
The OptionTemplateRef of theOptionTemplateto be used for generating options for a product if thegenerationTypeisOptionGenerationType.TEMPLATE, then this field is used.- Returns:
- The OptionTemplateRef to be used for generating options for a product
-
getTemplateGroup
The OptionTemplateGroupRef of theOptionTemplateGroupto be used for generating options for a product if thegenerationTypeisOptionGenerationType.TEMPLATE_GROUP, then this field is used.- Returns:
- The OptionTemplateGroupRef to be used for generating options for a product
-
setProductId
ID of theProductfor which options should be generated.- Parameters:
productId- ID of theProductfor which options should be generated.
-
setGenerationType
The type of the generation: EitherOptionGenerationType.TEMPLATEorOptionGenerationType.TEMPLATE_GROUP.- Parameters:
generationType- The type of the generation
-
setTemplate
The OptionTemplateRef of theOptionTemplateto be used for generating options for a product if thegenerationTypeisOptionGenerationType.TEMPLATE, then this field is used.- Parameters:
optionTemplate- The OptionTemplateRef to be used for generating options for a product
-
setTemplateGroup
The OptionTemplateGroupRef of theOptionTemplateGroupto be used for generating options for a product if thegenerationTypeisOptionGenerationType.TEMPLATE_GROUP, then this field is used.- Parameters:
optionTemplate- The OptionTemplateGroupRef to be used for generating options for a product
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-