Class EntitlementModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.entitlementservices.model.EntitlementModel
-
- All Implemented Interfaces:
java.io.Serializable
public class EntitlementModel extends ItemModel
Generated model class for type Entitlement 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_PRODUCTENTITLEMENT2ENTITLEMENTRELATIONGenerated relation code constant for relationProductEntitlement2EntitlementRelationdefining source attributeproductEntitlementsin extensionentitlementservices.static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringDESCRIPTIONGenerated constant - Attribute key ofEntitlement.descriptionattribute defined at extensionentitlementservices.static java.lang.StringIDGenerated constant - Attribute key ofEntitlement.idattribute defined at extensionentitlementservices.static java.lang.StringNAMEGenerated constant - Attribute key ofEntitlement.nameattribute defined at extensionentitlementservices.static java.lang.StringPRODUCTENTITLEMENTSGenerated constant - Attribute key ofEntitlement.productEntitlementsattribute 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 EntitlementModel()Generated constructor - Default constructor for generic creation.EntitlementModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing contextEntitlementModel(java.lang.String _id)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersEntitlementModel(java.lang.String _id, ItemModel _owner)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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()Generated method - Getter of theEntitlement.descriptionattribute defined at extensionentitlementservices.java.lang.StringgetDescription(java.util.Locale loc)Generated method - Getter of theEntitlement.descriptionattribute defined at extensionentitlementservices.java.lang.StringgetId()Generated method - Getter of theEntitlement.idattribute defined at extensionentitlementservices.java.lang.StringgetName()Generated method - Getter of theEntitlement.nameattribute defined at extensionentitlementservices.java.lang.StringgetName(java.util.Locale loc)Generated method - Getter of theEntitlement.nameattribute defined at extensionentitlementservices.java.util.Collection<ProductEntitlementModel>getProductEntitlements()Generated method - Getter of theEntitlement.productEntitlementsattribute defined at extensionentitlementservices.voidsetDescription(java.lang.String value)Generated method - Setter ofEntitlement.descriptionattribute defined at extensionentitlementservices.voidsetDescription(java.lang.String value, java.util.Locale loc)Generated method - Setter ofEntitlement.descriptionattribute defined at extensionentitlementservices.voidsetId(java.lang.String value)Generated method - Initial setter ofEntitlement.idattribute defined at extensionentitlementservices.voidsetName(java.lang.String value)Generated method - Setter ofEntitlement.nameattribute defined at extensionentitlementservices.voidsetName(java.lang.String value, java.util.Locale loc)Generated method - Setter ofEntitlement.nameattribute defined at extensionentitlementservices.voidsetProductEntitlements(java.util.Collection<ProductEntitlementModel> value)Generated method - Setter ofEntitlement.productEntitlementsattribute 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
-
_PRODUCTENTITLEMENT2ENTITLEMENTRELATION
public static final java.lang.String _PRODUCTENTITLEMENT2ENTITLEMENTRELATION
Generated relation code constant for relationProductEntitlement2EntitlementRelationdefining source attributeproductEntitlementsin extensionentitlementservices.- See Also:
- Constant Field Values
-
ID
public static final java.lang.String ID
Generated constant - Attribute key ofEntitlement.idattribute defined at extensionentitlementservices.- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
Generated constant - Attribute key ofEntitlement.nameattribute defined at extensionentitlementservices.- See Also:
- Constant Field Values
-
DESCRIPTION
public static final java.lang.String DESCRIPTION
Generated constant - Attribute key ofEntitlement.descriptionattribute defined at extensionentitlementservices.- See Also:
- Constant Field Values
-
PRODUCTENTITLEMENTS
public static final java.lang.String PRODUCTENTITLEMENTS
Generated constant - Attribute key ofEntitlement.productEntitlementsattribute defined at extensionentitlementservices.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EntitlementModel
public EntitlementModel()
Generated constructor - Default constructor for generic creation.
-
EntitlementModel
public EntitlementModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
EntitlementModel
@Deprecated(since="4.1.1", forRemoval=true) public EntitlementModel(java.lang.String _id)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:
_id- initial attribute declared by typeEntitlementat extensionentitlementservices
-
EntitlementModel
@Deprecated(since="4.1.1", forRemoval=true) public EntitlementModel(java.lang.String _id, ItemModel _owner)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:
_id- initial attribute declared by typeEntitlementat extensionentitlementservices_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Detail
-
getDescription
@Accessor(qualifier="description", type=GETTER) public java.lang.String getDescription()
Generated method - Getter of theEntitlement.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 theEntitlement.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
-
getId
@Accessor(qualifier="id", type=GETTER) public java.lang.String getId()
Generated method - Getter of theEntitlement.idattribute defined at extensionentitlementservices.- Returns:
- the id - Identifier
-
getName
@Accessor(qualifier="name", type=GETTER) public java.lang.String getName()
Generated method - Getter of theEntitlement.nameattribute defined at extensionentitlementservices.- Returns:
- the name - Name
-
getName
@Accessor(qualifier="name", type=GETTER) public java.lang.String getName(java.util.Locale loc)
Generated method - Getter of theEntitlement.nameattribute defined at extensionentitlementservices.- Parameters:
loc- the value localization key- Returns:
- the name - Name
- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
getProductEntitlements
@Accessor(qualifier="productEntitlements", type=GETTER) public java.util.Collection<ProductEntitlementModel> getProductEntitlements()
Generated method - Getter of theEntitlement.productEntitlementsattribute defined at extensionentitlementservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the productEntitlements
-
setDescription
@Accessor(qualifier="description", type=SETTER) public void setDescription(java.lang.String value)
Generated method - Setter ofEntitlement.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 ofEntitlement.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
-
setId
@Accessor(qualifier="id", type=SETTER) public void setId(java.lang.String value)
Generated method - Initial setter ofEntitlement.idattribute defined at extensionentitlementservices. 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 ofEntitlement.nameattribute defined at extensionentitlementservices.- Parameters:
value- the name - Name
-
setName
@Accessor(qualifier="name", type=SETTER) public void setName(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofEntitlement.nameattribute defined at extensionentitlementservices.- Parameters:
value- the name - Nameloc- the value localization key- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
setProductEntitlements
@Accessor(qualifier="productEntitlements", type=SETTER) public void setProductEntitlements(java.util.Collection<ProductEntitlementModel> value)
Generated method - Setter ofEntitlement.productEntitlementsattribute defined at extensionentitlementservices.- Parameters:
value- the productEntitlements
-
-