Class ProductEntitlementModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.entitlementservices.model.ProductEntitlementModel
-
- All Implemented Interfaces:
java.io.Serializable
public class ProductEntitlementModel extends ItemModel
Generated model class for type ProductEntitlement first defined at extension entitlementservices.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_PRODUCT2PRODUCTENTITLEMENTSRELATIONGenerated relation code constant for relationProduct2ProductEntitlementsRelationdefining source attributesubscriptionProductin extensionentitlementservices.static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringCATALOGVERSIONGenerated constant - Attribute key ofProductEntitlement.catalogVersionattribute defined at extensionentitlementservices.static java.lang.StringCONDITIONGEOGenerated constant - Attribute key ofProductEntitlement.conditionGeoattribute defined at extensionentitlementservices.static java.lang.StringCONDITIONPATHGenerated constant - Attribute key ofProductEntitlement.conditionPathattribute defined at extensionentitlementservices.static java.lang.StringCONDITIONSTRINGGenerated constant - Attribute key ofProductEntitlement.conditionStringattribute defined at extensionentitlementservices.static java.lang.StringDESCRIPTIONGenerated constant - Attribute key ofProductEntitlement.descriptionattribute defined at extensionentitlementservices.static java.lang.StringENTITLEMENTGenerated constant - Attribute key ofProductEntitlement.entitlementattribute defined at extensionentitlementservices.static java.lang.StringIDGenerated constant - Attribute key ofProductEntitlement.idattribute defined at extensionentitlementservices.static java.lang.StringQUANTITYGenerated constant - Attribute key ofProductEntitlement.quantityattribute defined at extensionentitlementservices.static java.lang.StringSUBSCRIPTIONPRODUCTGenerated constant - Attribute key ofProductEntitlement.subscriptionProductattribute defined at extensionentitlementservices.static java.lang.StringTIMEUNITGenerated constant - Attribute key ofProductEntitlement.timeUnitattribute defined at extensionentitlementservices.static java.lang.StringTIMEUNITDURATIONGenerated constant - Attribute key ofProductEntitlement.timeUnitDurationattribute defined at extensionentitlementservices.static java.lang.StringTIMEUNITSTARTGenerated constant - Attribute key ofProductEntitlement.timeUnitStartattribute defined at extensionentitlementservices.-
Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED
-
Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
-
-
Constructor Summary
Constructors Constructor Description ProductEntitlementModel()Generated constructor - Default constructor for generic creation.ProductEntitlementModel(CatalogVersionModel _catalogVersion, EntitlementModel _entitlement, java.lang.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 parametersProductEntitlementModel(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 parametersProductEntitlementModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing context
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CatalogVersionModelgetCatalogVersion()Generated method - Getter of theProductEntitlement.catalogVersionattribute defined at extensionentitlementservices.java.util.Collection<java.lang.String>getConditionGeo()Generated method - Getter of theProductEntitlement.conditionGeoattribute defined at extensionentitlementservices.java.lang.StringgetConditionPath()Generated method - Getter of theProductEntitlement.conditionPathattribute defined at extensionentitlementservices.java.lang.StringgetConditionString()Generated method - Getter of theProductEntitlement.conditionStringattribute defined at extensionentitlementservices.java.lang.StringgetDescription()Generated method - Getter of theProductEntitlement.descriptionattribute defined at extensionentitlementservices.java.lang.StringgetDescription(java.util.Locale loc)Generated method - Getter of theProductEntitlement.descriptionattribute defined at extensionentitlementservices.EntitlementModelgetEntitlement()Generated method - Getter of theProductEntitlement.entitlementattribute defined at extensionentitlementservices.java.lang.StringgetId()Generated method - Getter of theProductEntitlement.idattribute defined at extensionentitlementservices.java.lang.IntegergetQuantity()Generated method - Getter of theProductEntitlement.quantityattribute defined at extensionentitlementservices.ProductModelgetSubscriptionProduct()Generated method - Getter of theProductEntitlement.subscriptionProductattribute defined at extensionentitlementservices.EntitlementTimeUnitgetTimeUnit()Generated method - Getter of theProductEntitlement.timeUnitattribute defined at extensionentitlementservices.java.lang.IntegergetTimeUnitDuration()Generated method - Getter of theProductEntitlement.timeUnitDurationattribute defined at extensionentitlementservices.java.lang.IntegergetTimeUnitStart()Generated method - Getter of theProductEntitlement.timeUnitStartattribute defined at extensionentitlementservices.voidsetCatalogVersion(CatalogVersionModel value)Generated method - Initial setter ofProductEntitlement.catalogVersionattribute defined at extensionentitlementservices.voidsetConditionGeo(java.util.Collection<java.lang.String> value)Generated method - Setter ofProductEntitlement.conditionGeoattribute defined at extensionentitlementservices.voidsetConditionPath(java.lang.String value)Generated method - Setter ofProductEntitlement.conditionPathattribute defined at extensionentitlementservices.voidsetConditionString(java.lang.String value)Generated method - Setter ofProductEntitlement.conditionStringattribute defined at extensionentitlementservices.voidsetDescription(java.lang.String value)Generated method - Setter ofProductEntitlement.descriptionattribute defined at extensionentitlementservices.voidsetDescription(java.lang.String value, java.util.Locale loc)Generated method - Setter ofProductEntitlement.descriptionattribute defined at extensionentitlementservices.voidsetEntitlement(EntitlementModel value)Generated method - Setter ofProductEntitlement.entitlementattribute defined at extensionentitlementservices.voidsetId(java.lang.String value)Generated method - Initial setter ofProductEntitlement.idattribute defined at extensionentitlementservices.voidsetQuantity(java.lang.Integer value)Generated method - Setter ofProductEntitlement.quantityattribute defined at extensionentitlementservices.voidsetSubscriptionProduct(ProductModel value)Generated method - Setter ofProductEntitlement.subscriptionProductattribute defined at extensionentitlementservices.voidsetTimeUnit(EntitlementTimeUnit value)Generated method - Setter ofProductEntitlement.timeUnitattribute defined at extensionentitlementservices.voidsetTimeUnitDuration(java.lang.Integer value)Generated method - Setter ofProductEntitlement.timeUnitDurationattribute defined at extensionentitlementservices.voidsetTimeUnitStart(java.lang.Integer value)Generated method - Setter ofProductEntitlement.timeUnitStartattribute defined at extensionentitlementservices.-
Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwner
-
Methods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
equals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplace
-
-
-
-
Field Detail
-
_TYPECODE
public static final java.lang.String _TYPECODE
Generated model type code constant.- See Also:
- Constant Field Values
-
_PRODUCT2PRODUCTENTITLEMENTSRELATION
public static final java.lang.String _PRODUCT2PRODUCTENTITLEMENTSRELATION
Generated relation code constant for relationProduct2ProductEntitlementsRelationdefining source attributesubscriptionProductin extensionentitlementservices.- See Also:
- Constant Field Values
-
ID
public static final java.lang.String ID
Generated constant - Attribute key ofProductEntitlement.idattribute defined at extensionentitlementservices.- See Also:
- Constant Field Values
-
DESCRIPTION
public static final java.lang.String DESCRIPTION
Generated constant - Attribute key ofProductEntitlement.descriptionattribute defined at extensionentitlementservices.- See Also:
- Constant Field Values
-
CATALOGVERSION
public static final java.lang.String CATALOGVERSION
Generated constant - Attribute key ofProductEntitlement.catalogVersionattribute defined at extensionentitlementservices.- See Also:
- Constant Field Values
-
TIMEUNIT
public static final java.lang.String TIMEUNIT
Generated constant - Attribute key ofProductEntitlement.timeUnitattribute defined at extensionentitlementservices.- See Also:
- Constant Field Values
-
TIMEUNITSTART
public static final java.lang.String TIMEUNITSTART
Generated constant - Attribute key ofProductEntitlement.timeUnitStartattribute defined at extensionentitlementservices.- See Also:
- Constant Field Values
-
TIMEUNITDURATION
public static final java.lang.String TIMEUNITDURATION
Generated constant - Attribute key ofProductEntitlement.timeUnitDurationattribute defined at extensionentitlementservices.- See Also:
- Constant Field Values
-
CONDITIONSTRING
public static final java.lang.String CONDITIONSTRING
Generated constant - Attribute key ofProductEntitlement.conditionStringattribute defined at extensionentitlementservices.- See Also:
- Constant Field Values
-
CONDITIONPATH
public static final java.lang.String CONDITIONPATH
Generated constant - Attribute key ofProductEntitlement.conditionPathattribute defined at extensionentitlementservices.- See Also:
- Constant Field Values
-
CONDITIONGEO
public static final java.lang.String CONDITIONGEO
Generated constant - Attribute key ofProductEntitlement.conditionGeoattribute defined at extensionentitlementservices.- See Also:
- Constant Field Values
-
QUANTITY
public static final java.lang.String QUANTITY
Generated constant - Attribute key ofProductEntitlement.quantityattribute defined at extensionentitlementservices.- See Also:
- Constant Field Values
-
SUBSCRIPTIONPRODUCT
public static final java.lang.String SUBSCRIPTIONPRODUCT
Generated constant - Attribute key ofProductEntitlement.subscriptionProductattribute defined at extensionentitlementservices.- See Also:
- Constant Field Values
-
ENTITLEMENT
public static final java.lang.String ENTITLEMENT
Generated constant - Attribute key ofProductEntitlement.entitlementattribute defined at extensionentitlementservices.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_entitlement- initial attribute declared by typeProductEntitlementat extensionentitlementservices_subscriptionProduct- initial attribute declared by typeProductEntitlementat extensionentitlementservices
-
ProductEntitlementModel
@Deprecated(since="4.1.1", forRemoval=true) public ProductEntitlementModel(CatalogVersionModel _catalogVersion, EntitlementModel _entitlement, java.lang.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 parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_catalogVersion- initial attribute declared by typeProductEntitlementat extensionentitlementservices_entitlement- initial attribute declared by typeProductEntitlementat extensionentitlementservices_id- initial attribute declared by typeProductEntitlementat extensionentitlementservices_owner- initial attribute declared by typeItemat extensioncore_subscriptionProduct- initial attribute declared by typeProductEntitlementat extensionentitlementservices
-
-
Method Detail
-
getCatalogVersion
@Accessor(qualifier="catalogVersion", type=GETTER) public CatalogVersionModel getCatalogVersion()
Generated method - Getter of theProductEntitlement.catalogVersionattribute defined at extensionentitlementservices.- Returns:
- the catalogVersion - Catalog Version
-
getConditionGeo
@Accessor(qualifier="conditionGeo", type=GETTER) public java.util.Collection<java.lang.String> getConditionGeo()
Generated method - Getter of theProductEntitlement.conditionGeoattribute defined at extensionentitlementservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the conditionGeo - Geo Condition
-
getConditionPath
@Accessor(qualifier="conditionPath", type=GETTER) public java.lang.String getConditionPath()
Generated method - Getter of theProductEntitlement.conditionPathattribute defined at extensionentitlementservices.- Returns:
- the conditionPath - Path Condition
-
getConditionString
@Accessor(qualifier="conditionString", type=GETTER) public java.lang.String getConditionString()
Generated method - Getter of theProductEntitlement.conditionStringattribute defined at extensionentitlementservices.- Returns:
- the conditionString - String Condition
-
getDescription
@Accessor(qualifier="description", type=GETTER) public java.lang.String getDescription()
Generated method - Getter of theProductEntitlement.descriptionattribute defined at extensionentitlementservices.- Returns:
- the description - Description
-
getDescription
@Accessor(qualifier="description", type=GETTER) public java.lang.String getDescription(java.util.Locale loc)
Generated method - Getter of theProductEntitlement.descriptionattribute defined at extensionentitlementservices.- Parameters:
loc- the value localization key- Returns:
- the description - Description
- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
getEntitlement
@Accessor(qualifier="entitlement", type=GETTER) public EntitlementModel getEntitlement()
Generated method - Getter of theProductEntitlement.entitlementattribute defined at extensionentitlementservices.- Returns:
- the entitlement
-
getId
@Accessor(qualifier="id", type=GETTER) public java.lang.String getId()
Generated method - Getter of theProductEntitlement.idattribute defined at extensionentitlementservices.- Returns:
- the id - Identifier
-
getQuantity
@Accessor(qualifier="quantity", type=GETTER) public java.lang.Integer getQuantity()
Generated method - Getter of theProductEntitlement.quantityattribute defined at extensionentitlementservices.- Returns:
- the quantity - Quantity
-
getSubscriptionProduct
@Accessor(qualifier="subscriptionProduct", type=GETTER) public ProductModel getSubscriptionProduct()
Generated method - Getter of theProductEntitlement.subscriptionProductattribute defined at extensionentitlementservices.- Returns:
- the subscriptionProduct
-
getTimeUnit
@Accessor(qualifier="timeUnit", type=GETTER) public EntitlementTimeUnit getTimeUnit()
Generated method - Getter of theProductEntitlement.timeUnitattribute defined at extensionentitlementservices.- Returns:
- the timeUnit - Time Unit
-
getTimeUnitDuration
@Accessor(qualifier="timeUnitDuration", type=GETTER) public java.lang.Integer getTimeUnitDuration()
Generated method - Getter of theProductEntitlement.timeUnitDurationattribute defined at extensionentitlementservices.- Returns:
- the timeUnitDuration - Duration
-
getTimeUnitStart
@Accessor(qualifier="timeUnitStart", type=GETTER) public java.lang.Integer getTimeUnitStart()
Generated method - Getter of theProductEntitlement.timeUnitStartattribute defined at extensionentitlementservices.- Returns:
- the timeUnitStart - Start
-
setCatalogVersion
@Accessor(qualifier="catalogVersion", type=SETTER) public void setCatalogVersion(CatalogVersionModel value)
Generated method - Initial setter ofProductEntitlement.catalogVersionattribute defined at extensionentitlementservices. 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(java.util.Collection<java.lang.String> value)
Generated method - Setter ofProductEntitlement.conditionGeoattribute defined at extensionentitlementservices.- Parameters:
value- the conditionGeo - Geo Condition
-
setConditionPath
@Accessor(qualifier="conditionPath", type=SETTER) public void setConditionPath(java.lang.String value)
Generated method - Setter ofProductEntitlement.conditionPathattribute defined at extensionentitlementservices.- Parameters:
value- the conditionPath - Path Condition
-
setConditionString
@Accessor(qualifier="conditionString", type=SETTER) public void setConditionString(java.lang.String value)
Generated method - Setter ofProductEntitlement.conditionStringattribute defined at extensionentitlementservices.- Parameters:
value- the conditionString - String Condition
-
setDescription
@Accessor(qualifier="description", type=SETTER) public void setDescription(java.lang.String value)
Generated method - Setter ofProductEntitlement.descriptionattribute defined at extensionentitlementservices.- Parameters:
value- the description - Description
-
setDescription
@Accessor(qualifier="description", type=SETTER) public void setDescription(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofProductEntitlement.descriptionattribute defined at extensionentitlementservices.- Parameters:
value- the description - Descriptionloc- the value localization key- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
setEntitlement
@Accessor(qualifier="entitlement", type=SETTER) public void setEntitlement(EntitlementModel value)
Generated method - Setter ofProductEntitlement.entitlementattribute defined at extensionentitlementservices.- Parameters:
value- the entitlement
-
setId
@Accessor(qualifier="id", type=SETTER) public void setId(java.lang.String value)
Generated method - Initial setter ofProductEntitlement.idattribute defined at extensionentitlementservices. 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(java.lang.Integer value)
Generated method - Setter ofProductEntitlement.quantityattribute defined at extensionentitlementservices.- Parameters:
value- the quantity - Quantity
-
setSubscriptionProduct
@Accessor(qualifier="subscriptionProduct", type=SETTER) public void setSubscriptionProduct(ProductModel value)
Generated method - Setter ofProductEntitlement.subscriptionProductattribute defined at extensionentitlementservices.- Parameters:
value- the subscriptionProduct
-
setTimeUnit
@Accessor(qualifier="timeUnit", type=SETTER) public void setTimeUnit(EntitlementTimeUnit value)
Generated method - Setter ofProductEntitlement.timeUnitattribute defined at extensionentitlementservices.- Parameters:
value- the timeUnit - Time Unit
-
setTimeUnitDuration
@Accessor(qualifier="timeUnitDuration", type=SETTER) public void setTimeUnitDuration(java.lang.Integer value)
Generated method - Setter ofProductEntitlement.timeUnitDurationattribute defined at extensionentitlementservices.- Parameters:
value- the timeUnitDuration - Duration
-
-