Class ProductEntitlementModel

All Implemented Interfaces:
Serializable

public class ProductEntitlementModel extends ItemModel
Generated model class for type ProductEntitlement first defined at extension entitlementservices.
See Also:
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • _PRODUCT2PRODUCTENTITLEMENTSRELATION

      public static final String _PRODUCT2PRODUCTENTITLEMENTSRELATION
      Generated relation code constant for relation Product2ProductEntitlementsRelation defining source attribute subscriptionProduct in extension entitlementservices.
      See Also:
    • ID

      public static final String ID
      Generated constant - Attribute key of ProductEntitlement.id attribute defined at extension entitlementservices.
      See Also:
    • DESCRIPTION

      public static final String DESCRIPTION
      Generated constant - Attribute key of ProductEntitlement.description attribute defined at extension entitlementservices.
      See Also:
    • CATALOGVERSION

      public static final String CATALOGVERSION
      Generated constant - Attribute key of ProductEntitlement.catalogVersion attribute defined at extension entitlementservices.
      See Also:
    • TIMEUNIT

      public static final String TIMEUNIT
      Generated constant - Attribute key of ProductEntitlement.timeUnit attribute defined at extension entitlementservices.
      See Also:
    • TIMEUNITSTART

      public static final String TIMEUNITSTART
      Generated constant - Attribute key of ProductEntitlement.timeUnitStart attribute defined at extension entitlementservices.
      See Also:
    • TIMEUNITDURATION

      public static final String TIMEUNITDURATION
      Generated constant - Attribute key of ProductEntitlement.timeUnitDuration attribute defined at extension entitlementservices.
      See Also:
    • CONDITIONSTRING

      public static final String CONDITIONSTRING
      Generated constant - Attribute key of ProductEntitlement.conditionString attribute defined at extension entitlementservices.
      See Also:
    • CONDITIONPATH

      public static final String CONDITIONPATH
      Generated constant - Attribute key of ProductEntitlement.conditionPath attribute defined at extension entitlementservices.
      See Also:
    • CONDITIONGEO

      public static final String CONDITIONGEO
      Generated constant - Attribute key of ProductEntitlement.conditionGeo attribute defined at extension entitlementservices.
      See Also:
    • QUANTITY

      public static final String QUANTITY
      Generated constant - Attribute key of ProductEntitlement.quantity attribute defined at extension entitlementservices.
      See Also:
    • SUBSCRIPTIONPRODUCT

      public static final String SUBSCRIPTIONPRODUCT
      Generated constant - Attribute key of ProductEntitlement.subscriptionProduct attribute defined at extension entitlementservices.
      See Also:
    • ENTITLEMENT

      public static final String ENTITLEMENT
      Generated constant - Attribute key of ProductEntitlement.entitlement attribute defined at extension entitlementservices.
      See Also:
  • Constructor Details

    • ProductEntitlementModel

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

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

      @Deprecated(since="4.1.1", forRemoval=true) public ProductEntitlementModel(EntitlementModel _entitlement, ProductModel _subscriptionProduct)
      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:
      _entitlement - initial attribute declared by type ProductEntitlement at extension entitlementservices
      _subscriptionProduct - initial attribute declared by type ProductEntitlement at extension entitlementservices
    • ProductEntitlementModel

      @Deprecated(since="4.1.1", forRemoval=true) public ProductEntitlementModel(CatalogVersionModel _catalogVersion, EntitlementModel _entitlement, String _id, ItemModel _owner, ProductModel _subscriptionProduct)
      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 ProductEntitlement at extension entitlementservices
      _entitlement - initial attribute declared by type ProductEntitlement at extension entitlementservices
      _id - initial attribute declared by type ProductEntitlement at extension entitlementservices
      _owner - initial attribute declared by type Item at extension core
      _subscriptionProduct - initial attribute declared by type ProductEntitlement at extension entitlementservices
  • Method Details

    • getCatalogVersion

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

      @Accessor(qualifier="conditionGeo", type=GETTER) public Collection<String> getConditionGeo()
      Generated method - Getter of the ProductEntitlement.conditionGeo attribute defined at extension entitlementservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the conditionGeo - Geo Condition
    • getConditionPath

      @Accessor(qualifier="conditionPath", type=GETTER) public String getConditionPath()
      Generated method - Getter of the ProductEntitlement.conditionPath attribute defined at extension entitlementservices.
      Returns:
      the conditionPath - Path Condition
    • getConditionString

      @Accessor(qualifier="conditionString", type=GETTER) public String getConditionString()
      Generated method - Getter of the ProductEntitlement.conditionString attribute defined at extension entitlementservices.
      Returns:
      the conditionString - String Condition
    • getDescription

      @Accessor(qualifier="description", type=GETTER) public String getDescription()
      Generated method - Getter of the ProductEntitlement.description attribute defined at extension entitlementservices.
      Returns:
      the description - Description
    • getDescription

      @Accessor(qualifier="description", type=GETTER) public String getDescription(Locale loc)
      Generated method - Getter of the ProductEntitlement.description attribute defined at extension entitlementservices.
      Parameters:
      loc - the value localization key
      Returns:
      the description - Description
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • getEntitlement

      @Accessor(qualifier="entitlement", type=GETTER) public EntitlementModel getEntitlement()
      Generated method - Getter of the ProductEntitlement.entitlement attribute defined at extension entitlementservices.
      Returns:
      the entitlement
    • getId

      @Accessor(qualifier="id", type=GETTER) public String getId()
      Generated method - Getter of the ProductEntitlement.id attribute defined at extension entitlementservices.
      Returns:
      the id - Identifier
    • getQuantity

      @Accessor(qualifier="quantity", type=GETTER) public Integer getQuantity()
      Generated method - Getter of the ProductEntitlement.quantity attribute defined at extension entitlementservices.
      Returns:
      the quantity - Quantity
    • getSubscriptionProduct

      @Accessor(qualifier="subscriptionProduct", type=GETTER) public ProductModel getSubscriptionProduct()
      Generated method - Getter of the ProductEntitlement.subscriptionProduct attribute defined at extension entitlementservices.
      Returns:
      the subscriptionProduct
    • getTimeUnit

      @Accessor(qualifier="timeUnit", type=GETTER) public EntitlementTimeUnit getTimeUnit()
      Generated method - Getter of the ProductEntitlement.timeUnit attribute defined at extension entitlementservices.
      Returns:
      the timeUnit - Time Unit
    • getTimeUnitDuration

      @Accessor(qualifier="timeUnitDuration", type=GETTER) public Integer getTimeUnitDuration()
      Generated method - Getter of the ProductEntitlement.timeUnitDuration attribute defined at extension entitlementservices.
      Returns:
      the timeUnitDuration - Duration
    • getTimeUnitStart

      @Accessor(qualifier="timeUnitStart", type=GETTER) public Integer getTimeUnitStart()
      Generated method - Getter of the ProductEntitlement.timeUnitStart attribute defined at extension entitlementservices.
      Returns:
      the timeUnitStart - Start
    • setCatalogVersion

      @Accessor(qualifier="catalogVersion", type=SETTER) public void setCatalogVersion(CatalogVersionModel value)
      Generated method - Initial setter of ProductEntitlement.catalogVersion attribute defined at extension entitlementservices. Can only be used at creation of model - before first save.
      Parameters:
      value - the catalogVersion - Catalog Version
    • setConditionGeo

      @Accessor(qualifier="conditionGeo", type=SETTER) public void setConditionGeo(Collection<String> value)
      Generated method - Setter of ProductEntitlement.conditionGeo attribute defined at extension entitlementservices.
      Parameters:
      value - the conditionGeo - Geo Condition
    • setConditionPath

      @Accessor(qualifier="conditionPath", type=SETTER) public void setConditionPath(String value)
      Generated method - Setter of ProductEntitlement.conditionPath attribute defined at extension entitlementservices.
      Parameters:
      value - the conditionPath - Path Condition
    • setConditionString

      @Accessor(qualifier="conditionString", type=SETTER) public void setConditionString(String value)
      Generated method - Setter of ProductEntitlement.conditionString attribute defined at extension entitlementservices.
      Parameters:
      value - the conditionString - String Condition
    • setDescription

      @Accessor(qualifier="description", type=SETTER) public void setDescription(String value)
      Generated method - Setter of ProductEntitlement.description attribute defined at extension entitlementservices.
      Parameters:
      value - the description - Description
    • setDescription

      @Accessor(qualifier="description", type=SETTER) public void setDescription(String value, Locale loc)
      Generated method - Setter of ProductEntitlement.description attribute defined at extension entitlementservices.
      Parameters:
      value - the description - Description
      loc - the value localization key
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • setEntitlement

      @Accessor(qualifier="entitlement", type=SETTER) public void setEntitlement(EntitlementModel value)
      Generated method - Setter of ProductEntitlement.entitlement attribute defined at extension entitlementservices.
      Parameters:
      value - the entitlement
    • setId

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

      @Accessor(qualifier="quantity", type=SETTER) public void setQuantity(Integer value)
      Generated method - Setter of ProductEntitlement.quantity attribute defined at extension entitlementservices.
      Parameters:
      value - the quantity - Quantity
    • setSubscriptionProduct

      @Accessor(qualifier="subscriptionProduct", type=SETTER) public void setSubscriptionProduct(ProductModel value)
      Generated method - Setter of ProductEntitlement.subscriptionProduct attribute defined at extension entitlementservices.
      Parameters:
      value - the subscriptionProduct
    • setTimeUnit

      @Accessor(qualifier="timeUnit", type=SETTER) public void setTimeUnit(EntitlementTimeUnit value)
      Generated method - Setter of ProductEntitlement.timeUnit attribute defined at extension entitlementservices.
      Parameters:
      value - the timeUnit - Time Unit
    • setTimeUnitDuration

      @Accessor(qualifier="timeUnitDuration", type=SETTER) public void setTimeUnitDuration(Integer value)
      Generated method - Setter of ProductEntitlement.timeUnitDuration attribute defined at extension entitlementservices.
      Parameters:
      value - the timeUnitDuration - Duration
    • setTimeUnitStart

      @Accessor(qualifier="timeUnitStart", type=SETTER) public void setTimeUnitStart(Integer value)
      Generated method - Setter of ProductEntitlement.timeUnitStart attribute defined at extension entitlementservices.
      Parameters:
      value - the timeUnitStart - Start