Class BundleTemplateModel

  • All Implemented Interfaces:
    java.io.Serializable

    public class BundleTemplateModel
    extends ItemModel
    Generated model class for type BundleTemplate first defined at extension configurablebundleservices.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String _BUNDLETEMPLATERELATION
      Generated relation code constant for relation BundleTemplateRelation defining source attribute parentTemplate in extension configurablebundleservices.
      static java.lang.String _BUNDLETEMPLATESTATUSRELATION
      Generated relation code constant for relation BundleTemplateStatusRelation defining source attribute status in extension configurablebundleservices.
      static java.lang.String _PRODUCTSBUNDLETEMPLATESRELATION
      Generated relation code constant for relation ProductsBundleTemplatesRelation defining source attribute products in extension configurablebundleservices.
      static java.lang.String _REQUIREDBUNDLETEMPLATESDEPENDENTBUNDLETEMPLATESRELATION
      Generated relation code constant for relation RequiredBundleTemplatesDependentBundleTemplatesRelation defining source attribute requiredBundleTemplates in extension configurablebundleservices.
      static java.lang.String _TYPECODE
      Generated model type code constant.
      static java.lang.String BUNDLESELECTIONCRITERIA
      Generated constant - Attribute key of BundleTemplate.bundleSelectionCriteria attribute defined at extension configurablebundleservices.
      static java.lang.String CATALOGVERSION
      Generated constant - Attribute key of BundleTemplate.catalogVersion attribute defined at extension configurablebundleservices.
      static java.lang.String CHANGEPRODUCTPRICEBUNDLERULES
      Generated constant - Attribute key of BundleTemplate.changeProductPriceBundleRules attribute defined at extension configurablebundleservices.
      static java.lang.String CHILDTEMPLATES
      Generated constant - Attribute key of BundleTemplate.childTemplates attribute defined at extension configurablebundleservices.
      static java.lang.String DEPENDENTBUNDLETEMPLATES
      Generated constant - Attribute key of BundleTemplate.dependentBundleTemplates attribute defined at extension configurablebundleservices.
      static java.lang.String DESCRIPTION
      Generated constant - Attribute key of BundleTemplate.description attribute defined at extension configurablebundleservices.
      static java.lang.String DISABLEPRODUCTBUNDLERULES
      Generated constant - Attribute key of BundleTemplate.disableProductBundleRules attribute defined at extension configurablebundleservices.
      static java.lang.String ID
      Generated constant - Attribute key of BundleTemplate.id attribute defined at extension configurablebundleservices.
      static java.lang.String NAME
      Generated constant - Attribute key of BundleTemplate.name attribute defined at extension configurablebundleservices.
      static java.lang.String PARENTTEMPLATE
      Generated constant - Attribute key of BundleTemplate.parentTemplate attribute defined at extension configurablebundleservices.
      static java.lang.String PARENTTEMPLATEPOS
      Generated constant - Attribute key of BundleTemplate.parentTemplatePOS attribute defined at extension configurablebundleservices.
      static java.lang.String PRODUCTS
      Generated constant - Attribute key of BundleTemplate.products attribute defined at extension configurablebundleservices.
      static java.lang.String REQUIREDBUNDLETEMPLATES
      Generated constant - Attribute key of BundleTemplate.requiredBundleTemplates attribute defined at extension configurablebundleservices.
      static java.lang.String STATUS
      Generated constant - Attribute key of BundleTemplate.status attribute defined at extension configurablebundleservices.
      static java.lang.String VERSION
      Generated constant - Attribute key of BundleTemplate.version attribute defined at extension configurablebundleservices.
    • Constructor Summary

      Constructors 
      Constructor Description
      BundleTemplateModel()
      Generated constructor - Default constructor for generic creation.
      BundleTemplateModel​(CatalogVersionModel _catalogVersion, java.lang.String _id, ItemModel _owner, BundleTemplateModel _parentTemplate, java.lang.String _version)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      BundleTemplateModel​(CatalogVersionModel _catalogVersion, java.lang.String _id, java.lang.String _version)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      BundleTemplateModel​(ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
    • Field Detail

      • _TYPECODE

        public static final java.lang.String _TYPECODE
        Generated model type code constant.
        See Also:
        Constant Field Values
      • _BUNDLETEMPLATERELATION

        public static final java.lang.String _BUNDLETEMPLATERELATION
        Generated relation code constant for relation BundleTemplateRelation defining source attribute parentTemplate in extension configurablebundleservices.
        See Also:
        Constant Field Values
      • _PRODUCTSBUNDLETEMPLATESRELATION

        public static final java.lang.String _PRODUCTSBUNDLETEMPLATESRELATION
        Generated relation code constant for relation ProductsBundleTemplatesRelation defining source attribute products in extension configurablebundleservices.
        See Also:
        Constant Field Values
      • _REQUIREDBUNDLETEMPLATESDEPENDENTBUNDLETEMPLATESRELATION

        public static final java.lang.String _REQUIREDBUNDLETEMPLATESDEPENDENTBUNDLETEMPLATESRELATION
        Generated relation code constant for relation RequiredBundleTemplatesDependentBundleTemplatesRelation defining source attribute requiredBundleTemplates in extension configurablebundleservices.
        See Also:
        Constant Field Values
      • _BUNDLETEMPLATESTATUSRELATION

        public static final java.lang.String _BUNDLETEMPLATESTATUSRELATION
        Generated relation code constant for relation BundleTemplateStatusRelation defining source attribute status in extension configurablebundleservices.
        See Also:
        Constant Field Values
      • ID

        public static final java.lang.String ID
        Generated constant - Attribute key of BundleTemplate.id attribute defined at extension configurablebundleservices.
        See Also:
        Constant Field Values
      • VERSION

        public static final java.lang.String VERSION
        Generated constant - Attribute key of BundleTemplate.version attribute defined at extension configurablebundleservices.
        See Also:
        Constant Field Values
      • CATALOGVERSION

        public static final java.lang.String CATALOGVERSION
        Generated constant - Attribute key of BundleTemplate.catalogVersion attribute defined at extension configurablebundleservices.
        See Also:
        Constant Field Values
      • NAME

        public static final java.lang.String NAME
        Generated constant - Attribute key of BundleTemplate.name attribute defined at extension configurablebundleservices.
        See Also:
        Constant Field Values
      • DESCRIPTION

        public static final java.lang.String DESCRIPTION
        Generated constant - Attribute key of BundleTemplate.description attribute defined at extension configurablebundleservices.
        See Also:
        Constant Field Values
      • BUNDLESELECTIONCRITERIA

        public static final java.lang.String BUNDLESELECTIONCRITERIA
        Generated constant - Attribute key of BundleTemplate.bundleSelectionCriteria attribute defined at extension configurablebundleservices.
        See Also:
        Constant Field Values
      • PARENTTEMPLATEPOS

        public static final java.lang.String PARENTTEMPLATEPOS
        Generated constant - Attribute key of BundleTemplate.parentTemplatePOS attribute defined at extension configurablebundleservices.
        See Also:
        Constant Field Values
      • PARENTTEMPLATE

        public static final java.lang.String PARENTTEMPLATE
        Generated constant - Attribute key of BundleTemplate.parentTemplate attribute defined at extension configurablebundleservices.
        See Also:
        Constant Field Values
      • CHILDTEMPLATES

        public static final java.lang.String CHILDTEMPLATES
        Generated constant - Attribute key of BundleTemplate.childTemplates attribute defined at extension configurablebundleservices.
        See Also:
        Constant Field Values
      • PRODUCTS

        public static final java.lang.String PRODUCTS
        Generated constant - Attribute key of BundleTemplate.products attribute defined at extension configurablebundleservices.
        See Also:
        Constant Field Values
      • CHANGEPRODUCTPRICEBUNDLERULES

        public static final java.lang.String CHANGEPRODUCTPRICEBUNDLERULES
        Generated constant - Attribute key of BundleTemplate.changeProductPriceBundleRules attribute defined at extension configurablebundleservices.
        See Also:
        Constant Field Values
      • DISABLEPRODUCTBUNDLERULES

        public static final java.lang.String DISABLEPRODUCTBUNDLERULES
        Generated constant - Attribute key of BundleTemplate.disableProductBundleRules attribute defined at extension configurablebundleservices.
        See Also:
        Constant Field Values
      • REQUIREDBUNDLETEMPLATES

        public static final java.lang.String REQUIREDBUNDLETEMPLATES
        Generated constant - Attribute key of BundleTemplate.requiredBundleTemplates attribute defined at extension configurablebundleservices.
        See Also:
        Constant Field Values
      • DEPENDENTBUNDLETEMPLATES

        public static final java.lang.String DEPENDENTBUNDLETEMPLATES
        Generated constant - Attribute key of BundleTemplate.dependentBundleTemplates attribute defined at extension configurablebundleservices.
        See Also:
        Constant Field Values
      • STATUS

        public static final java.lang.String STATUS
        Generated constant - Attribute key of BundleTemplate.status attribute defined at extension configurablebundleservices.
        See Also:
        Constant Field Values
    • Constructor Detail

      • BundleTemplateModel

        public BundleTemplateModel()
        Generated constructor - Default constructor for generic creation.
      • BundleTemplateModel

        public BundleTemplateModel​(ItemModelContext ctx)
        Generated constructor - Default constructor for creation with existing context
        Parameters:
        ctx - the model context to be injected, must not be null
      • BundleTemplateModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public BundleTemplateModel​(CatalogVersionModel _catalogVersion,
                                   java.lang.String _id,
                                   java.lang.String _version)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 4.1.1 Please use the default constructor without parameters
        Generated constructor - Constructor with all mandatory attributes.
        Parameters:
        _catalogVersion - initial attribute declared by type BundleTemplate at extension configurablebundleservices
        _id - initial attribute declared by type BundleTemplate at extension configurablebundleservices
        _version - initial attribute declared by type BundleTemplate at extension configurablebundleservices
      • BundleTemplateModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public BundleTemplateModel​(CatalogVersionModel _catalogVersion,
                                   java.lang.String _id,
                                   ItemModel _owner,
                                   BundleTemplateModel _parentTemplate,
                                   java.lang.String _version)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 4.1.1 Please use the default constructor without parameters
        Generated constructor - for all mandatory and initial attributes.
        Parameters:
        _catalogVersion - initial attribute declared by type BundleTemplate at extension configurablebundleservices
        _id - initial attribute declared by type BundleTemplate at extension configurablebundleservices
        _owner - initial attribute declared by type Item at extension core
        _parentTemplate - initial attribute declared by type BundleTemplate at extension configurablebundleservices
        _version - initial attribute declared by type BundleTemplate at extension configurablebundleservices
    • Method Detail

      • getBundleSelectionCriteria

        @Accessor(qualifier="bundleSelectionCriteria",
                  type=GETTER)
        public BundleSelectionCriteriaModel getBundleSelectionCriteria()
        Generated method - Getter of the BundleTemplate.bundleSelectionCriteria attribute defined at extension configurablebundleservices.
        Returns:
        the bundleSelectionCriteria - Criteria how many of the bundle's assigned products must/can be selected'
      • getCatalogVersion

        @Accessor(qualifier="catalogVersion",
                  type=GETTER)
        public CatalogVersionModel getCatalogVersion()
        Generated method - Getter of the BundleTemplate.catalogVersion attribute defined at extension configurablebundleservices.
        Returns:
        the catalogVersion - Catalog Version
      • getChangeProductPriceBundleRules

        @Accessor(qualifier="changeProductPriceBundleRules",
                  type=GETTER)
        public java.util.Collection<ChangeProductPriceBundleRuleModel> getChangeProductPriceBundleRules()
        Generated method - Getter of the BundleTemplate.changeProductPriceBundleRules attribute defined at extension configurablebundleservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
        Returns:
        the changeProductPriceBundleRules
      • getChildTemplates

        @Accessor(qualifier="childTemplates",
                  type=GETTER)
        public java.util.List<BundleTemplateModel> getChildTemplates()
        Generated method - Getter of the BundleTemplate.childTemplates attribute defined at extension configurablebundleservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
        Returns:
        the childTemplates
      • getDependentBundleTemplates

        @Accessor(qualifier="dependentBundleTemplates",
                  type=GETTER)
        public java.util.Collection<BundleTemplateModel> getDependentBundleTemplates()
        Generated method - Getter of the BundleTemplate.dependentBundleTemplates attribute defined at extension configurablebundleservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
        Returns:
        the dependentBundleTemplates
      • getDescription

        @Accessor(qualifier="description",
                  type=GETTER)
        public java.lang.String getDescription()
        Generated method - Getter of the BundleTemplate.description attribute defined at extension configurablebundleservices.
        Returns:
        the description - Description of the bundle template
      • getDescription

        @Accessor(qualifier="description",
                  type=GETTER)
        public java.lang.String getDescription​(java.util.Locale loc)
        Generated method - Getter of the BundleTemplate.description attribute defined at extension configurablebundleservices.
        Parameters:
        loc - the value localization key
        Returns:
        the description - Description of the bundle template
        Throws:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language
      • getDisableProductBundleRules

        @Accessor(qualifier="disableProductBundleRules",
                  type=GETTER)
        public java.util.Collection<DisableProductBundleRuleModel> getDisableProductBundleRules()
        Generated method - Getter of the BundleTemplate.disableProductBundleRules attribute defined at extension configurablebundleservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
        Returns:
        the disableProductBundleRules
      • getId

        @Accessor(qualifier="id",
                  type=GETTER)
        public java.lang.String getId()
        Generated method - Getter of the BundleTemplate.id attribute defined at extension configurablebundleservices.
        Returns:
        the id - Identifier
      • getName

        @Accessor(qualifier="name",
                  type=GETTER)
        public java.lang.String getName()
        Generated method - Getter of the BundleTemplate.name attribute defined at extension configurablebundleservices.
        Returns:
        the name - Name of the bundle template
      • getName

        @Accessor(qualifier="name",
                  type=GETTER)
        public java.lang.String getName​(java.util.Locale loc)
        Generated method - Getter of the BundleTemplate.name attribute defined at extension configurablebundleservices.
        Parameters:
        loc - the value localization key
        Returns:
        the name - Name of the bundle template
        Throws:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language
      • getParentTemplate

        @Accessor(qualifier="parentTemplate",
                  type=GETTER)
        public BundleTemplateModel getParentTemplate()
        Generated method - Getter of the BundleTemplate.parentTemplate attribute defined at extension configurablebundleservices.
        Returns:
        the parentTemplate
      • getProducts

        @Accessor(qualifier="products",
                  type=GETTER)
        public java.util.List<ProductModel> getProducts()
        Generated method - Getter of the BundleTemplate.products attribute defined at extension configurablebundleservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
        Returns:
        the products
      • getRequiredBundleTemplates

        @Accessor(qualifier="requiredBundleTemplates",
                  type=GETTER)
        public java.util.Collection<BundleTemplateModel> getRequiredBundleTemplates()
        Generated method - Getter of the BundleTemplate.requiredBundleTemplates attribute defined at extension configurablebundleservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
        Returns:
        the requiredBundleTemplates
      • getVersion

        @Accessor(qualifier="version",
                  type=GETTER)
        public java.lang.String getVersion()
        Generated method - Getter of the BundleTemplate.version attribute defined at extension configurablebundleservices.
        Returns:
        the version - The version of the bundle template. Each clone of a BundleTemplate needs to have a different version.
      • setBundleSelectionCriteria

        @Accessor(qualifier="bundleSelectionCriteria",
                  type=SETTER)
        public void setBundleSelectionCriteria​(BundleSelectionCriteriaModel value)
        Generated method - Setter of BundleTemplate.bundleSelectionCriteria attribute defined at extension configurablebundleservices.
        Parameters:
        value - the bundleSelectionCriteria - Criteria how many of the bundle's assigned products must/can be selected'
      • setCatalogVersion

        @Accessor(qualifier="catalogVersion",
                  type=SETTER)
        public void setCatalogVersion​(CatalogVersionModel value)
        Generated method - Setter of BundleTemplate.catalogVersion attribute defined at extension configurablebundleservices.
        Parameters:
        value - the catalogVersion - Catalog Version
      • setChangeProductPriceBundleRules

        @Accessor(qualifier="changeProductPriceBundleRules",
                  type=SETTER)
        public void setChangeProductPriceBundleRules​(java.util.Collection<ChangeProductPriceBundleRuleModel> value)
        Generated method - Setter of BundleTemplate.changeProductPriceBundleRules attribute defined at extension configurablebundleservices.
        Parameters:
        value - the changeProductPriceBundleRules
      • setChildTemplates

        @Accessor(qualifier="childTemplates",
                  type=SETTER)
        public void setChildTemplates​(java.util.List<BundleTemplateModel> value)
        Generated method - Setter of BundleTemplate.childTemplates attribute defined at extension configurablebundleservices.
        Parameters:
        value - the childTemplates
      • setDependentBundleTemplates

        @Accessor(qualifier="dependentBundleTemplates",
                  type=SETTER)
        public void setDependentBundleTemplates​(java.util.Collection<BundleTemplateModel> value)
        Generated method - Setter of BundleTemplate.dependentBundleTemplates attribute defined at extension configurablebundleservices.
        Parameters:
        value - the dependentBundleTemplates
      • setDescription

        @Accessor(qualifier="description",
                  type=SETTER)
        public void setDescription​(java.lang.String value)
        Generated method - Setter of BundleTemplate.description attribute defined at extension configurablebundleservices.
        Parameters:
        value - the description - Description of the bundle template
      • setDescription

        @Accessor(qualifier="description",
                  type=SETTER)
        public void setDescription​(java.lang.String value,
                                   java.util.Locale loc)
        Generated method - Setter of BundleTemplate.description attribute defined at extension configurablebundleservices.
        Parameters:
        value - the description - Description of the bundle template
        loc - the value localization key
        Throws:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language
      • setDisableProductBundleRules

        @Accessor(qualifier="disableProductBundleRules",
                  type=SETTER)
        public void setDisableProductBundleRules​(java.util.Collection<DisableProductBundleRuleModel> value)
        Generated method - Setter of BundleTemplate.disableProductBundleRules attribute defined at extension configurablebundleservices.
        Parameters:
        value - the disableProductBundleRules
      • setId

        @Accessor(qualifier="id",
                  type=SETTER)
        public void setId​(java.lang.String value)
        Generated method - Initial setter of BundleTemplate.id attribute defined at extension configurablebundleservices. Can only be used at creation of model - before first save.
        Parameters:
        value - the id - Identifier
      • setName

        @Accessor(qualifier="name",
                  type=SETTER)
        public void setName​(java.lang.String value)
        Generated method - Setter of BundleTemplate.name attribute defined at extension configurablebundleservices.
        Parameters:
        value - the name - Name of the bundle template
      • setName

        @Accessor(qualifier="name",
                  type=SETTER)
        public void setName​(java.lang.String value,
                            java.util.Locale loc)
        Generated method - Setter of BundleTemplate.name attribute defined at extension configurablebundleservices.
        Parameters:
        value - the name - Name of the bundle template
        loc - the value localization key
        Throws:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language
      • setParentTemplate

        @Accessor(qualifier="parentTemplate",
                  type=SETTER)
        public void setParentTemplate​(BundleTemplateModel value)
        Generated method - Initial setter of BundleTemplate.parentTemplate attribute defined at extension configurablebundleservices. Can only be used at creation of model - before first save.
        Parameters:
        value - the parentTemplate
      • setProducts

        @Accessor(qualifier="products",
                  type=SETTER)
        public void setProducts​(java.util.List<ProductModel> value)
        Generated method - Setter of BundleTemplate.products attribute defined at extension configurablebundleservices.
        Parameters:
        value - the products
      • setRequiredBundleTemplates

        @Accessor(qualifier="requiredBundleTemplates",
                  type=SETTER)
        public void setRequiredBundleTemplates​(java.util.Collection<BundleTemplateModel> value)
        Generated method - Setter of BundleTemplate.requiredBundleTemplates attribute defined at extension configurablebundleservices.
        Parameters:
        value - the requiredBundleTemplates
      • setVersion

        @Accessor(qualifier="version",
                  type=SETTER)
        public void setVersion​(java.lang.String value)
        Generated method - Setter of BundleTemplate.version attribute defined at extension configurablebundleservices.
        Parameters:
        value - the version - The version of the bundle template. Each clone of a BundleTemplate needs to have a different version.