Class ConsentModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.commerceservices.model.consent.ConsentModel
-
- All Implemented Interfaces:
java.io.Serializable
public class ConsentModel extends ItemModel
Generated model class for type Consent first defined at extension commerceservices.A consent instance associated with a customer.
- 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
_TYPECODE
Generated model type code constant.static java.lang.String
ACTIVE
Generated constant - Attribute key ofConsent.active
attribute defined at extensioncommerceservices
.static java.lang.String
CODE
Generated constant - Attribute key ofConsent.code
attribute defined at extensioncommerceservices
.static java.lang.String
CONSENTGIVENDATE
Generated constant - Attribute key ofConsent.consentGivenDate
attribute defined at extensioncommerceservices
.static java.lang.String
CONSENTTEMPLATE
Generated constant - Attribute key ofConsent.consentTemplate
attribute defined at extensioncommerceservices
.static java.lang.String
CONSENTWITHDRAWNDATE
Generated constant - Attribute key ofConsent.consentWithdrawnDate
attribute defined at extensioncommerceservices
.static java.lang.String
CUSTOMER
Generated constant - Attribute key ofConsent.customer
attribute defined at extensioncommerceservices
.-
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 ConsentModel()
Generated constructor - Default constructor for generic creation.ConsentModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing contextConsentModel(java.lang.String _code, ConsentTemplateModel _consentTemplate, CustomerModel _customer)
Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersConsentModel(java.lang.String _code, ConsentTemplateModel _consentTemplate, CustomerModel _customer, 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.String
getCode()
Generated method - Getter of theConsent.code
attribute defined at extensioncommerceservices
.java.util.Date
getConsentGivenDate()
Generated method - Getter of theConsent.consentGivenDate
attribute defined at extensioncommerceservices
.ConsentTemplateModel
getConsentTemplate()
Generated method - Getter of theConsent.consentTemplate
attribute defined at extensioncommerceservices
.java.util.Date
getConsentWithdrawnDate()
Generated method - Getter of theConsent.consentWithdrawnDate
attribute defined at extensioncommerceservices
.CustomerModel
getCustomer()
Generated method - Getter of theConsent.customer
attribute defined at extensioncommerceservices
.boolean
isActive()
Generated method - Getter of theConsent.active
dynamic attribute defined at extensioncommerceservices
.void
setCode(java.lang.String value)
Generated method - Setter ofConsent.code
attribute defined at extensioncommerceservices
.void
setConsentGivenDate(java.util.Date value)
Generated method - Setter ofConsent.consentGivenDate
attribute defined at extensioncommerceservices
.void
setConsentTemplate(ConsentTemplateModel value)
Generated method - Setter ofConsent.consentTemplate
attribute defined at extensioncommerceservices
.void
setConsentWithdrawnDate(java.util.Date value)
Generated method - Setter ofConsent.consentWithdrawnDate
attribute defined at extensioncommerceservices
.void
setCustomer(CustomerModel value)
Generated method - Setter ofConsent.customer
attribute defined at extensioncommerceservices
.-
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
-
CODE
public static final java.lang.String CODE
Generated constant - Attribute key ofConsent.code
attribute defined at extensioncommerceservices
.- See Also:
- Constant Field Values
-
CUSTOMER
public static final java.lang.String CUSTOMER
Generated constant - Attribute key ofConsent.customer
attribute defined at extensioncommerceservices
.- See Also:
- Constant Field Values
-
CONSENTTEMPLATE
public static final java.lang.String CONSENTTEMPLATE
Generated constant - Attribute key ofConsent.consentTemplate
attribute defined at extensioncommerceservices
.- See Also:
- Constant Field Values
-
CONSENTGIVENDATE
public static final java.lang.String CONSENTGIVENDATE
Generated constant - Attribute key ofConsent.consentGivenDate
attribute defined at extensioncommerceservices
.- See Also:
- Constant Field Values
-
CONSENTWITHDRAWNDATE
public static final java.lang.String CONSENTWITHDRAWNDATE
Generated constant - Attribute key ofConsent.consentWithdrawnDate
attribute defined at extensioncommerceservices
.- See Also:
- Constant Field Values
-
ACTIVE
public static final java.lang.String ACTIVE
Generated constant - Attribute key ofConsent.active
attribute defined at extensioncommerceservices
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConsentModel
public ConsentModel()
Generated constructor - Default constructor for generic creation.
-
ConsentModel
public ConsentModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx
- the model context to be injected, must not be null
-
ConsentModel
@Deprecated(since="4.1.1", forRemoval=true) public ConsentModel(java.lang.String _code, ConsentTemplateModel _consentTemplate, CustomerModel _customer)
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:
_code
- initial attribute declared by typeConsent
at extensioncommerceservices
_consentTemplate
- initial attribute declared by typeConsent
at extensioncommerceservices
_customer
- initial attribute declared by typeConsent
at extensioncommerceservices
-
ConsentModel
@Deprecated(since="4.1.1", forRemoval=true) public ConsentModel(java.lang.String _code, ConsentTemplateModel _consentTemplate, CustomerModel _customer, 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:
_code
- initial attribute declared by typeConsent
at extensioncommerceservices
_consentTemplate
- initial attribute declared by typeConsent
at extensioncommerceservices
_customer
- initial attribute declared by typeConsent
at extensioncommerceservices
_owner
- initial attribute declared by typeItem
at extensioncore
-
-
Method Detail
-
getCode
@Accessor(qualifier="code", type=GETTER) public java.lang.String getCode()
Generated method - Getter of theConsent.code
attribute defined at extensioncommerceservices
.- Returns:
- the code
-
getConsentGivenDate
@Accessor(qualifier="consentGivenDate", type=GETTER) public java.util.Date getConsentGivenDate()
Generated method - Getter of theConsent.consentGivenDate
attribute defined at extensioncommerceservices
.- Returns:
- the consentGivenDate - The timestamp when consent was given by the customer
-
getConsentTemplate
@Accessor(qualifier="consentTemplate", type=GETTER) public ConsentTemplateModel getConsentTemplate()
Generated method - Getter of theConsent.consentTemplate
attribute defined at extensioncommerceservices
.- Returns:
- the consentTemplate - The Consent Reference
-
getConsentWithdrawnDate
@Accessor(qualifier="consentWithdrawnDate", type=GETTER) public java.util.Date getConsentWithdrawnDate()
Generated method - Getter of theConsent.consentWithdrawnDate
attribute defined at extensioncommerceservices
.- Returns:
- the consentWithdrawnDate - The timestamp when consent was withdrawn by the customer
-
getCustomer
@Accessor(qualifier="customer", type=GETTER) public CustomerModel getCustomer()
Generated method - Getter of theConsent.customer
attribute defined at extensioncommerceservices
.- Returns:
- the customer - The customer for which the consent is recorded
-
isActive
@Accessor(qualifier="active", type=GETTER) public boolean isActive()
Generated method - Getter of theConsent.active
dynamic attribute defined at extensioncommerceservices
.- Returns:
- the active - Indicates if the consent has not yet been withdrawn by the customer
-
setCode
@Accessor(qualifier="code", type=SETTER) public void setCode(java.lang.String value)
Generated method - Setter ofConsent.code
attribute defined at extensioncommerceservices
.- Parameters:
value
- the code
-
setConsentGivenDate
@Accessor(qualifier="consentGivenDate", type=SETTER) public void setConsentGivenDate(java.util.Date value)
Generated method - Setter ofConsent.consentGivenDate
attribute defined at extensioncommerceservices
.- Parameters:
value
- the consentGivenDate - The timestamp when consent was given by the customer
-
setConsentTemplate
@Accessor(qualifier="consentTemplate", type=SETTER) public void setConsentTemplate(ConsentTemplateModel value)
Generated method - Setter ofConsent.consentTemplate
attribute defined at extensioncommerceservices
.- Parameters:
value
- the consentTemplate - The Consent Reference
-
setConsentWithdrawnDate
@Accessor(qualifier="consentWithdrawnDate", type=SETTER) public void setConsentWithdrawnDate(java.util.Date value)
Generated method - Setter ofConsent.consentWithdrawnDate
attribute defined at extensioncommerceservices
.- Parameters:
value
- the consentWithdrawnDate - The timestamp when consent was withdrawn by the customer
-
setCustomer
@Accessor(qualifier="customer", type=SETTER) public void setCustomer(CustomerModel value)
Generated method - Setter ofConsent.customer
attribute defined at extensioncommerceservices
.- Parameters:
value
- the customer - The customer for which the consent is recorded
-
-