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:
Serializable
Generated model class for type Consent first defined at extension commerceservices.
A consent instance associated with a customer.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofConsent.activeattribute defined at extensioncommerceservices.static final StringGenerated constant - Attribute key ofConsent.codeattribute defined at extensioncommerceservices.static final StringGenerated constant - Attribute key ofConsent.consentGivenDateattribute defined at extensioncommerceservices.static final StringGenerated constant - Attribute key ofConsent.consentReferenceattribute defined at extensionprofileservices.static final StringGenerated constant - Attribute key ofConsent.consentTemplateattribute defined at extensioncommerceservices.static final StringGenerated constant - Attribute key ofConsent.consentWithdrawnDateattribute defined at extensioncommerceservices.static final StringGenerated constant - Attribute key ofConsent.customerattribute defined at extensioncommerceservices.Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDFields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionGenerated constructor - Default constructor for generic creation.Generated constructor - Default constructor for creation with existing contextConsentModel(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(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
Modifier and TypeMethodDescriptiongetCode()Generated method - Getter of theConsent.codeattribute defined at extensioncommerceservices.Generated method - Getter of theConsent.consentGivenDateattribute defined at extensioncommerceservices.Generated method - Getter of theConsent.consentReferenceattribute defined at extensionprofileservices.Generated method - Getter of theConsent.consentTemplateattribute defined at extensioncommerceservices.Generated method - Getter of theConsent.consentWithdrawnDateattribute defined at extensioncommerceservices.Generated method - Getter of theConsent.customerattribute defined at extensioncommerceservices.booleanisActive()Generated method - Getter of theConsent.activedynamic attribute defined at extensioncommerceservices.voidGenerated method - Setter ofConsent.codeattribute defined at extensioncommerceservices.voidsetConsentGivenDate(Date value) Generated method - Setter ofConsent.consentGivenDateattribute defined at extensioncommerceservices.voidsetConsentReference(String value) Generated method - Setter ofConsent.consentReferenceattribute defined at extensionprofileservices.voidGenerated method - Setter ofConsent.consentTemplateattribute defined at extensioncommerceservices.voidsetConsentWithdrawnDate(Date value) Generated method - Setter ofConsent.consentWithdrawnDateattribute defined at extensioncommerceservices.voidsetCustomer(CustomerModel value) Generated method - Setter ofConsent.customerattribute defined at extensioncommerceservices.Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerMethods 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 Details
-
_TYPECODE
Generated model type code constant.- See Also:
-
CODE
Generated constant - Attribute key ofConsent.codeattribute defined at extensioncommerceservices.- See Also:
-
CUSTOMER
Generated constant - Attribute key ofConsent.customerattribute defined at extensioncommerceservices.- See Also:
-
CONSENTTEMPLATE
Generated constant - Attribute key ofConsent.consentTemplateattribute defined at extensioncommerceservices.- See Also:
-
CONSENTGIVENDATE
Generated constant - Attribute key ofConsent.consentGivenDateattribute defined at extensioncommerceservices.- See Also:
-
CONSENTWITHDRAWNDATE
Generated constant - Attribute key ofConsent.consentWithdrawnDateattribute defined at extensioncommerceservices.- See Also:
-
ACTIVE
Generated constant - Attribute key ofConsent.activeattribute defined at extensioncommerceservices.- See Also:
-
CONSENTREFERENCE
Generated constant - Attribute key ofConsent.consentReferenceattribute defined at extensionprofileservices.- See Also:
-
-
Constructor Details
-
ConsentModel
public ConsentModel()Generated constructor - Default constructor for generic creation. -
ConsentModel
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(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 typeConsentat extensioncommerceservices_consentTemplate- initial attribute declared by typeConsentat extensioncommerceservices_customer- initial attribute declared by typeConsentat extensioncommerceservices
-
ConsentModel
@Deprecated(since="4.1.1", forRemoval=true) public ConsentModel(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 typeConsentat extensioncommerceservices_consentTemplate- initial attribute declared by typeConsentat extensioncommerceservices_customer- initial attribute declared by typeConsentat extensioncommerceservices_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Details
-
getCode
Generated method - Getter of theConsent.codeattribute defined at extensioncommerceservices.- Returns:
- the code
-
getConsentGivenDate
Generated method - Getter of theConsent.consentGivenDateattribute defined at extensioncommerceservices.- Returns:
- the consentGivenDate - The timestamp when consent was given by the customer
-
getConsentReference
Generated method - Getter of theConsent.consentReferenceattribute defined at extensionprofileservices.- Returns:
- the consentReference - Holds the identifier of the user consent to enable tracking user activities.
-
getConsentTemplate
@Accessor(qualifier="consentTemplate", type=GETTER) public ConsentTemplateModel getConsentTemplate()Generated method - Getter of theConsent.consentTemplateattribute defined at extensioncommerceservices.- Returns:
- the consentTemplate - The Consent Reference
-
getConsentWithdrawnDate
Generated method - Getter of theConsent.consentWithdrawnDateattribute defined at extensioncommerceservices.- Returns:
- the consentWithdrawnDate - The timestamp when consent was withdrawn by the customer
-
getCustomer
Generated method - Getter of theConsent.customerattribute defined at extensioncommerceservices.- Returns:
- the customer - The customer for which the consent is recorded
-
isActive
Generated method - Getter of theConsent.activedynamic attribute defined at extensioncommerceservices.- Returns:
- the active - Indicates if the consent has not yet been withdrawn by the customer
-
setCode
Generated method - Setter ofConsent.codeattribute defined at extensioncommerceservices.- Parameters:
value- the code
-
setConsentGivenDate
Generated method - Setter ofConsent.consentGivenDateattribute defined at extensioncommerceservices.- Parameters:
value- the consentGivenDate - The timestamp when consent was given by the customer
-
setConsentReference
Generated method - Setter ofConsent.consentReferenceattribute defined at extensionprofileservices.- Parameters:
value- the consentReference - Holds the identifier of the user consent to enable tracking user activities.
-
setConsentTemplate
@Accessor(qualifier="consentTemplate", type=SETTER) public void setConsentTemplate(ConsentTemplateModel value) Generated method - Setter ofConsent.consentTemplateattribute defined at extensioncommerceservices.- Parameters:
value- the consentTemplate - The Consent Reference
-
setConsentWithdrawnDate
@Accessor(qualifier="consentWithdrawnDate", type=SETTER) public void setConsentWithdrawnDate(Date value) Generated method - Setter ofConsent.consentWithdrawnDateattribute defined at extensioncommerceservices.- Parameters:
value- the consentWithdrawnDate - The timestamp when consent was withdrawn by the customer
-
setCustomer
Generated method - Setter ofConsent.customerattribute defined at extensioncommerceservices.- Parameters:
value- the customer - The customer for which the consent is recorded
-