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

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:
  • Nested Class Summary

    Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel

    de.hybris.platform.servicelayer.model.AbstractItemModel.NewModelContextFactory
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Generated model type code constant.
    static final String
    Generated constant - Attribute key of Consent.active attribute defined at extension commerceservices.
    static final String
    Generated constant - Attribute key of Consent.code attribute defined at extension commerceservices.
    static final String
    Generated constant - Attribute key of Consent.consentGivenDate attribute defined at extension commerceservices.
    static final String
    Generated constant - Attribute key of Consent.consentTemplate attribute defined at extension commerceservices.
    static final String
    Generated constant - Attribute key of Consent.consentWithdrawnDate attribute defined at extension commerceservices.
    static final String
    Generated constant - Attribute key of Consent.customer attribute defined at extension commerceservices.

    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
    Generated constructor - Default constructor for generic creation.
    ConsentModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
    Generated constructor - Default constructor for creation with existing context
    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 parameters
    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 parameters
  • Method Summary

    Modifier and Type
    Method
    Description
    Generated method - Getter of the Consent.code attribute defined at extension commerceservices.
    Generated method - Getter of the Consent.consentGivenDate attribute defined at extension commerceservices.
    Generated method - Getter of the Consent.consentTemplate attribute defined at extension commerceservices.
    Generated method - Getter of the Consent.consentWithdrawnDate attribute defined at extension commerceservices.
    Generated method - Getter of the Consent.customer attribute defined at extension commerceservices.
    boolean
    Generated method - Getter of the Consent.active dynamic attribute defined at extension commerceservices.
    void
    setCode(String value)
    Generated method - Setter of Consent.code attribute defined at extension commerceservices.
    void
    Generated method - Setter of Consent.consentGivenDate attribute defined at extension commerceservices.
    void
    Generated method - Setter of Consent.consentTemplate attribute defined at extension commerceservices.
    void
    Generated method - Setter of Consent.consentWithdrawnDate attribute defined at extension commerceservices.
    void
    Generated method - Setter of Consent.customer attribute defined at extension commerceservices.

    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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • _TYPECODE

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

      public static final String CODE
      Generated constant - Attribute key of Consent.code attribute defined at extension commerceservices.
      See Also:
    • CUSTOMER

      public static final String CUSTOMER
      Generated constant - Attribute key of Consent.customer attribute defined at extension commerceservices.
      See Also:
    • CONSENTTEMPLATE

      public static final String CONSENTTEMPLATE
      Generated constant - Attribute key of Consent.consentTemplate attribute defined at extension commerceservices.
      See Also:
    • CONSENTGIVENDATE

      public static final String CONSENTGIVENDATE
      Generated constant - Attribute key of Consent.consentGivenDate attribute defined at extension commerceservices.
      See Also:
    • CONSENTWITHDRAWNDATE

      public static final String CONSENTWITHDRAWNDATE
      Generated constant - Attribute key of Consent.consentWithdrawnDate attribute defined at extension commerceservices.
      See Also:
    • ACTIVE

      public static final String ACTIVE
      Generated constant - Attribute key of Consent.active attribute defined at extension commerceservices.
      See Also:
  • Constructor Details

    • ConsentModel

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

      public ConsentModel(de.hybris.platform.servicelayer.model.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(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 parameters
      Generated constructor - Constructor with all mandatory attributes.
      Parameters:
      _code - initial attribute declared by type Consent at extension commerceservices
      _consentTemplate - initial attribute declared by type Consent at extension commerceservices
      _customer - initial attribute declared by type Consent at extension commerceservices
    • 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 parameters
      Generated constructor - for all mandatory and initial attributes.
      Parameters:
      _code - initial attribute declared by type Consent at extension commerceservices
      _consentTemplate - initial attribute declared by type Consent at extension commerceservices
      _customer - initial attribute declared by type Consent at extension commerceservices
      _owner - initial attribute declared by type Item at extension core
  • Method Details

    • getCode

      @Accessor(qualifier="code", type=GETTER) public String getCode()
      Generated method - Getter of the Consent.code attribute defined at extension commerceservices.
      Returns:
      the code
    • getConsentGivenDate

      @Accessor(qualifier="consentGivenDate", type=GETTER) public Date getConsentGivenDate()
      Generated method - Getter of the Consent.consentGivenDate attribute defined at extension commerceservices.
      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 the Consent.consentTemplate attribute defined at extension commerceservices.
      Returns:
      the consentTemplate - The Consent Reference
    • getConsentWithdrawnDate

      @Accessor(qualifier="consentWithdrawnDate", type=GETTER) public Date getConsentWithdrawnDate()
      Generated method - Getter of the Consent.consentWithdrawnDate attribute defined at extension commerceservices.
      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 the Consent.customer attribute defined at extension commerceservices.
      Returns:
      the customer - The customer for which the consent is recorded
    • isActive

      @Accessor(qualifier="active", type=GETTER) public boolean isActive()
      Generated method - Getter of the Consent.active dynamic attribute defined at extension commerceservices.
      Returns:
      the active - Indicates if the consent has not yet been withdrawn by the customer
    • setCode

      @Accessor(qualifier="code", type=SETTER) public void setCode(String value)
      Generated method - Setter of Consent.code attribute defined at extension commerceservices.
      Parameters:
      value - the code
    • setConsentGivenDate

      @Accessor(qualifier="consentGivenDate", type=SETTER) public void setConsentGivenDate(Date value)
      Generated method - Setter of Consent.consentGivenDate attribute defined at extension commerceservices.
      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 of Consent.consentTemplate attribute defined at extension commerceservices.
      Parameters:
      value - the consentTemplate - The Consent Reference
    • setConsentWithdrawnDate

      @Accessor(qualifier="consentWithdrawnDate", type=SETTER) public void setConsentWithdrawnDate(Date value)
      Generated method - Setter of Consent.consentWithdrawnDate attribute defined at extension commerceservices.
      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 of Consent.customer attribute defined at extension commerceservices.
      Parameters:
      value - the customer - The customer for which the consent is recorded