Class CPDefinitionWrapper

java.lang.Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CPDefinition>
com.liferay.commerce.product.model.CPDefinitionWrapper
All Implemented Interfaces:
CPDefinition, CPDefinitionModel, com.liferay.portal.kernel.model.AuditedModel, com.liferay.portal.kernel.model.BaseModel<CPDefinition>, com.liferay.portal.kernel.model.change.tracking.CTModel<CPDefinition>, com.liferay.portal.kernel.model.ClassedModel, com.liferay.portal.kernel.model.GroupedModel, com.liferay.portal.kernel.model.ModelWrapper<CPDefinition>, com.liferay.portal.kernel.model.MVCCModel, com.liferay.portal.kernel.model.PersistedModel, com.liferay.portal.kernel.model.ShardedModel, com.liferay.portal.kernel.model.StagedGroupedModel, com.liferay.portal.kernel.model.StagedModel, com.liferay.portal.kernel.model.WorkflowedModel, Serializable, Cloneable, Comparable<CPDefinition>

public class CPDefinitionWrapper extends com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CPDefinition> implements CPDefinition, com.liferay.portal.kernel.model.ModelWrapper<CPDefinition>

This class is a wrapper for CPDefinition.

See Also:
Generated:
  • Constructor Details

    • CPDefinitionWrapper

      public CPDefinitionWrapper(CPDefinition cpDefinition)
  • Method Details

    • getModelAttributes

      public Map<String,Object> getModelAttributes()
      Specified by:
      getModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<CPDefinition>
    • setModelAttributes

      public void setModelAttributes(Map<String,Object> attributes)
      Specified by:
      setModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<CPDefinition>
    • clone

      public Object clone()
      Specified by:
      clone in interface com.liferay.portal.kernel.model.BaseModel<CPDefinition>
      Specified by:
      clone in interface CPDefinition
      Specified by:
      clone in interface com.liferay.portal.kernel.model.StagedModel
      Overrides:
      clone in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CPDefinition>
    • cloneWithOriginalValues

      public CPDefinition cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<CPDefinition>
      Specified by:
      cloneWithOriginalValues in interface CPDefinitionModel
    • equals

      public boolean equals(Object object)
      Specified by:
      equals in interface CPDefinition
      Overrides:
      equals in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CPDefinition>
    • fetchCPConfigurationEntry

      public CPConfigurationEntry fetchCPConfigurationEntry(long cpConfigurationListId)
      Specified by:
      fetchCPConfigurationEntry in interface CPDefinition
    • fetchMasterCPConfigurationEntry

      public CPConfigurationEntry fetchMasterCPConfigurationEntry() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      fetchMasterCPConfigurationEntry in interface CPDefinition
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getAccountGroupFilterEnabled

      public boolean getAccountGroupFilterEnabled()
      Returns the account group filter enabled of this cp definition.
      Specified by:
      getAccountGroupFilterEnabled in interface CPDefinitionModel
      Returns:
      the account group filter enabled of this cp definition
    • getAvailableIndividually

      public boolean getAvailableIndividually()
      Returns the available individually of this cp definition.
      Specified by:
      getAvailableIndividually in interface CPDefinitionModel
      Returns:
      the available individually of this cp definition
    • getAvailableLanguageIds

      public String[] getAvailableLanguageIds()
      Specified by:
      getAvailableLanguageIds in interface CPDefinitionModel
    • getChannelFilterEnabled

      public boolean getChannelFilterEnabled()
      Returns the channel filter enabled of this cp definition.
      Specified by:
      getChannelFilterEnabled in interface CPDefinitionModel
      Returns:
      the channel filter enabled of this cp definition
    • getCommerceCatalog

      public CommerceCatalog getCommerceCatalog()
      Specified by:
      getCommerceCatalog in interface CPDefinition
    • getCompanyId

      public long getCompanyId()
      Returns the company ID of this cp definition.
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCompanyId in interface CPDefinitionModel
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the company ID of this cp definition
    • getCPAttachmentFileEntries

      public List<CPAttachmentFileEntry> getCPAttachmentFileEntries(int type, int status) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCPAttachmentFileEntries in interface CPDefinition
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPDefinitionId

      public long getCPDefinitionId()
      Returns the cp definition ID of this cp definition.
      Specified by:
      getCPDefinitionId in interface CPDefinitionModel
      Returns:
      the cp definition ID of this cp definition
    • getCPDefinitionOptionRels

      public List<CPDefinitionOptionRel> getCPDefinitionOptionRels()
      Specified by:
      getCPDefinitionOptionRels in interface CPDefinition
    • getCPDefinitionSpecificationOptionValues

      public List<CPDefinitionSpecificationOptionValue> getCPDefinitionSpecificationOptionValues()
      Specified by:
      getCPDefinitionSpecificationOptionValues in interface CPDefinition
    • getCPInstances

      public List<CPInstance> getCPInstances()
      Specified by:
      getCPInstances in interface CPDefinition
    • getCProduct

      public CProduct getCProduct() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCProduct in interface CPDefinition
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCProductId

      public long getCProductId()
      Returns the c product ID of this cp definition.
      Specified by:
      getCProductId in interface CPDefinitionModel
      Returns:
      the c product ID of this cp definition
    • getCPTaxCategory

      public CPTaxCategory getCPTaxCategory() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCPTaxCategory in interface CPDefinition
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPTaxCategoryId

      public long getCPTaxCategoryId()
      Returns the cp tax category ID of this cp definition.
      Specified by:
      getCPTaxCategoryId in interface CPDefinitionModel
      Returns:
      the cp tax category ID of this cp definition
    • getCreateDate

      public Date getCreateDate()
      Returns the create date of this cp definition.
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCreateDate in interface CPDefinitionModel
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the create date of this cp definition
    • getCtCollectionId

      public long getCtCollectionId()
      Returns the ct collection ID of this cp definition.
      Specified by:
      getCtCollectionId in interface CPDefinitionModel
      Specified by:
      getCtCollectionId in interface com.liferay.portal.kernel.model.change.tracking.CTModel<CPDefinition>
      Returns:
      the ct collection ID of this cp definition
    • getDDMStructureKey

      public String getDDMStructureKey()
      Returns the ddm structure key of this cp definition.
      Specified by:
      getDDMStructureKey in interface CPDefinitionModel
      Returns:
      the ddm structure key of this cp definition
    • getDefaultImageThumbnailSrc

      public String getDefaultImageThumbnailSrc(long commerceAccountId) throws Exception
      Specified by:
      getDefaultImageThumbnailSrc in interface CPDefinition
      Throws:
      Exception
    • getDefaultLanguageId

      public String getDefaultLanguageId()
      Returns the default language ID of this cp definition.
      Specified by:
      getDefaultLanguageId in interface CPDefinitionModel
      Returns:
      the default language ID of this cp definition
    • getDeliveryMaxSubscriptionCycles

      public long getDeliveryMaxSubscriptionCycles()
      Returns the delivery max subscription cycles of this cp definition.
      Specified by:
      getDeliveryMaxSubscriptionCycles in interface CPDefinitionModel
      Returns:
      the delivery max subscription cycles of this cp definition
    • getDeliverySubscriptionEnabled

      public boolean getDeliverySubscriptionEnabled()
      Returns the delivery subscription enabled of this cp definition.
      Specified by:
      getDeliverySubscriptionEnabled in interface CPDefinitionModel
      Returns:
      the delivery subscription enabled of this cp definition
    • getDeliverySubscriptionLength

      public int getDeliverySubscriptionLength()
      Returns the delivery subscription length of this cp definition.
      Specified by:
      getDeliverySubscriptionLength in interface CPDefinitionModel
      Returns:
      the delivery subscription length of this cp definition
    • getDeliverySubscriptionType

      public String getDeliverySubscriptionType()
      Returns the delivery subscription type of this cp definition.
      Specified by:
      getDeliverySubscriptionType in interface CPDefinitionModel
      Returns:
      the delivery subscription type of this cp definition
    • getDeliverySubscriptionTypeSettings

      public String getDeliverySubscriptionTypeSettings()
      Returns the delivery subscription type settings of this cp definition.
      Specified by:
      getDeliverySubscriptionTypeSettings in interface CPDefinitionModel
      Returns:
      the delivery subscription type settings of this cp definition
    • getDeliverySubscriptionTypeSettingsUnicodeProperties

      public com.liferay.portal.kernel.util.UnicodeProperties getDeliverySubscriptionTypeSettingsUnicodeProperties()
      Specified by:
      getDeliverySubscriptionTypeSettingsUnicodeProperties in interface CPDefinition
    • getDepth

      public double getDepth()
      Returns the depth of this cp definition.
      Specified by:
      getDepth in interface CPDefinitionModel
      Returns:
      the depth of this cp definition
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface CPDefinitionModel
    • getDescription

      public String getDescription(String languageId)
      Specified by:
      getDescription in interface CPDefinitionModel
    • getDescription

      public String getDescription(String languageId, boolean useDefault)
      Specified by:
      getDescription in interface CPDefinitionModel
    • getDescriptionMap

      public Map<Locale,String> getDescriptionMap()
      Specified by:
      getDescriptionMap in interface CPDefinition
    • getDescriptionMapAsXML

      public String getDescriptionMapAsXML()
      Specified by:
      getDescriptionMapAsXML in interface CPDefinitionModel
    • getDisplayDate

      public Date getDisplayDate()
      Returns the display date of this cp definition.
      Specified by:
      getDisplayDate in interface CPDefinitionModel
      Returns:
      the display date of this cp definition
    • getExpirationDate

      public Date getExpirationDate()
      Returns the expiration date of this cp definition.
      Specified by:
      getExpirationDate in interface CPDefinitionModel
      Returns:
      the expiration date of this cp definition
    • getFreeShipping

      public boolean getFreeShipping()
      Returns the free shipping of this cp definition.
      Specified by:
      getFreeShipping in interface CPDefinitionModel
      Returns:
      the free shipping of this cp definition
    • getGroupId

      public long getGroupId()
      Returns the group ID of this cp definition.
      Specified by:
      getGroupId in interface CPDefinitionModel
      Specified by:
      getGroupId in interface com.liferay.portal.kernel.model.GroupedModel
      Returns:
      the group ID of this cp definition
    • getHeight

      public double getHeight()
      Returns the height of this cp definition.
      Specified by:
      getHeight in interface CPDefinitionModel
      Returns:
      the height of this cp definition
    • getIgnoreSKUCombinations

      public boolean getIgnoreSKUCombinations()
      Returns the ignore sku combinations of this cp definition.
      Specified by:
      getIgnoreSKUCombinations in interface CPDefinitionModel
      Returns:
      the ignore sku combinations of this cp definition
    • getLanguageIdToDescriptionMap

      public Map<String,String> getLanguageIdToDescriptionMap()
      Specified by:
      getLanguageIdToDescriptionMap in interface CPDefinitionModel
    • getLanguageIdToMetaDescriptionMap

      public Map<String,String> getLanguageIdToMetaDescriptionMap()
      Specified by:
      getLanguageIdToMetaDescriptionMap in interface CPDefinitionModel
    • getLanguageIdToMetaKeywordsMap

      public Map<String,String> getLanguageIdToMetaKeywordsMap()
      Specified by:
      getLanguageIdToMetaKeywordsMap in interface CPDefinitionModel
    • getLanguageIdToMetaTitleMap

      public Map<String,String> getLanguageIdToMetaTitleMap()
      Specified by:
      getLanguageIdToMetaTitleMap in interface CPDefinitionModel
    • getLanguageIdToNameMap

      public Map<String,String> getLanguageIdToNameMap()
      Specified by:
      getLanguageIdToNameMap in interface CPDefinitionModel
    • getLanguageIdToShortDescriptionMap

      public Map<String,String> getLanguageIdToShortDescriptionMap()
      Specified by:
      getLanguageIdToShortDescriptionMap in interface CPDefinitionModel
    • getLastPublishDate

      public Date getLastPublishDate()
      Returns the last publish date of this cp definition.
      Specified by:
      getLastPublishDate in interface CPDefinitionModel
      Specified by:
      getLastPublishDate in interface com.liferay.portal.kernel.model.StagedGroupedModel
      Returns:
      the last publish date of this cp definition
    • getMasterCPConfigurationList

      public CPConfigurationList getMasterCPConfigurationList() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getMasterCPConfigurationList in interface CPDefinition
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getMaxSubscriptionCycles

      public long getMaxSubscriptionCycles()
      Returns the max subscription cycles of this cp definition.
      Specified by:
      getMaxSubscriptionCycles in interface CPDefinitionModel
      Returns:
      the max subscription cycles of this cp definition
    • getMetaDescription

      public String getMetaDescription()
      Specified by:
      getMetaDescription in interface CPDefinitionModel
    • getMetaDescription

      public String getMetaDescription(String languageId)
      Specified by:
      getMetaDescription in interface CPDefinitionModel
    • getMetaDescription

      public String getMetaDescription(String languageId, boolean useDefault)
      Specified by:
      getMetaDescription in interface CPDefinitionModel
    • getMetaDescriptionMap

      public Map<Locale,String> getMetaDescriptionMap()
      Specified by:
      getMetaDescriptionMap in interface CPDefinition
    • getMetaDescriptionMapAsXML

      public String getMetaDescriptionMapAsXML()
      Specified by:
      getMetaDescriptionMapAsXML in interface CPDefinitionModel
    • getMetaKeywords

      public String getMetaKeywords()
      Specified by:
      getMetaKeywords in interface CPDefinitionModel
    • getMetaKeywords

      public String getMetaKeywords(String languageId)
      Specified by:
      getMetaKeywords in interface CPDefinitionModel
    • getMetaKeywords

      public String getMetaKeywords(String languageId, boolean useDefault)
      Specified by:
      getMetaKeywords in interface CPDefinitionModel
    • getMetaKeywordsMap

      public Map<Locale,String> getMetaKeywordsMap()
      Specified by:
      getMetaKeywordsMap in interface CPDefinition
    • getMetaKeywordsMapAsXML

      public String getMetaKeywordsMapAsXML()
      Specified by:
      getMetaKeywordsMapAsXML in interface CPDefinitionModel
    • getMetaTitle

      public String getMetaTitle()
      Specified by:
      getMetaTitle in interface CPDefinitionModel
    • getMetaTitle

      public String getMetaTitle(String languageId)
      Specified by:
      getMetaTitle in interface CPDefinitionModel
    • getMetaTitle

      public String getMetaTitle(String languageId, boolean useDefault)
      Specified by:
      getMetaTitle in interface CPDefinitionModel
    • getMetaTitleMap

      public Map<Locale,String> getMetaTitleMap()
      Specified by:
      getMetaTitleMap in interface CPDefinition
    • getMetaTitleMapAsXML

      public String getMetaTitleMapAsXML()
      Specified by:
      getMetaTitleMapAsXML in interface CPDefinitionModel
    • getModifiedDate

      public Date getModifiedDate()
      Returns the modified date of this cp definition.
      Specified by:
      getModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getModifiedDate in interface CPDefinitionModel
      Specified by:
      getModifiedDate in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the modified date of this cp definition
    • getMvccVersion

      public long getMvccVersion()
      Returns the mvcc version of this cp definition.
      Specified by:
      getMvccVersion in interface CPDefinitionModel
      Specified by:
      getMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Returns:
      the mvcc version of this cp definition
    • getName

      public String getName()
      Specified by:
      getName in interface CPDefinitionModel
    • getName

      public String getName(String languageId)
      Specified by:
      getName in interface CPDefinitionModel
    • getName

      public String getName(String languageId, boolean useDefault)
      Specified by:
      getName in interface CPDefinitionModel
    • getNameCurrentValue

      public String getNameCurrentValue()
      Specified by:
      getNameCurrentValue in interface CPDefinition
    • getNameMap

      public Map<Locale,String> getNameMap()
      Specified by:
      getNameMap in interface CPDefinition
    • getNameMapAsXML

      public String getNameMapAsXML()
      Specified by:
      getNameMapAsXML in interface CPDefinitionModel
    • getPrimaryKey

      public long getPrimaryKey()
      Returns the primary key of this cp definition.
      Specified by:
      getPrimaryKey in interface CPDefinitionModel
      Specified by:
      getPrimaryKey in interface com.liferay.portal.kernel.model.change.tracking.CTModel<CPDefinition>
      Returns:
      the primary key of this cp definition
    • getProductTypeName

      public String getProductTypeName()
      Returns the product type name of this cp definition.
      Specified by:
      getProductTypeName in interface CPDefinitionModel
      Returns:
      the product type name of this cp definition
    • getPublished

      public boolean getPublished()
      Returns the published of this cp definition.
      Specified by:
      getPublished in interface CPDefinitionModel
      Returns:
      the published of this cp definition
    • getShippable

      public boolean getShippable()
      Returns the shippable of this cp definition.
      Specified by:
      getShippable in interface CPDefinitionModel
      Returns:
      the shippable of this cp definition
    • getShippingExtraPrice

      public double getShippingExtraPrice()
      Returns the shipping extra price of this cp definition.
      Specified by:
      getShippingExtraPrice in interface CPDefinitionModel
      Returns:
      the shipping extra price of this cp definition
    • getShipSeparately

      public boolean getShipSeparately()
      Returns the ship separately of this cp definition.
      Specified by:
      getShipSeparately in interface CPDefinitionModel
      Returns:
      the ship separately of this cp definition
    • getShortDescription

      public String getShortDescription()
      Specified by:
      getShortDescription in interface CPDefinitionModel
    • getShortDescription

      public String getShortDescription(String languageId)
      Specified by:
      getShortDescription in interface CPDefinitionModel
    • getShortDescription

      public String getShortDescription(String languageId, boolean useDefault)
      Specified by:
      getShortDescription in interface CPDefinitionModel
    • getShortDescriptionMap

      public Map<Locale,String> getShortDescriptionMap()
      Specified by:
      getShortDescriptionMap in interface CPDefinition
    • getShortDescriptionMapAsXML

      public String getShortDescriptionMapAsXML()
      Specified by:
      getShortDescriptionMapAsXML in interface CPDefinitionModel
    • getStatus

      public int getStatus()
      Returns the status of this cp definition.
      Specified by:
      getStatus in interface CPDefinitionModel
      Specified by:
      getStatus in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      the status of this cp definition
    • getStatusByUserId

      public long getStatusByUserId()
      Returns the status by user ID of this cp definition.
      Specified by:
      getStatusByUserId in interface CPDefinitionModel
      Specified by:
      getStatusByUserId in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      the status by user ID of this cp definition
    • getStatusByUserName

      public String getStatusByUserName()
      Returns the status by user name of this cp definition.
      Specified by:
      getStatusByUserName in interface CPDefinitionModel
      Specified by:
      getStatusByUserName in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      the status by user name of this cp definition
    • getStatusByUserUuid

      public String getStatusByUserUuid()
      Returns the status by user uuid of this cp definition.
      Specified by:
      getStatusByUserUuid in interface CPDefinitionModel
      Specified by:
      getStatusByUserUuid in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      the status by user uuid of this cp definition
    • getStatusDate

      public Date getStatusDate()
      Returns the status date of this cp definition.
      Specified by:
      getStatusDate in interface CPDefinitionModel
      Specified by:
      getStatusDate in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      the status date of this cp definition
    • getSubscriptionEnabled

      public boolean getSubscriptionEnabled()
      Returns the subscription enabled of this cp definition.
      Specified by:
      getSubscriptionEnabled in interface CPDefinitionModel
      Returns:
      the subscription enabled of this cp definition
    • getSubscriptionLength

      public int getSubscriptionLength()
      Returns the subscription length of this cp definition.
      Specified by:
      getSubscriptionLength in interface CPDefinitionModel
      Returns:
      the subscription length of this cp definition
    • getSubscriptionType

      public String getSubscriptionType()
      Returns the subscription type of this cp definition.
      Specified by:
      getSubscriptionType in interface CPDefinitionModel
      Returns:
      the subscription type of this cp definition
    • getSubscriptionTypeSettings

      public String getSubscriptionTypeSettings()
      Returns the subscription type settings of this cp definition.
      Specified by:
      getSubscriptionTypeSettings in interface CPDefinitionModel
      Returns:
      the subscription type settings of this cp definition
    • getSubscriptionTypeSettingsUnicodeProperties

      public com.liferay.portal.kernel.util.UnicodeProperties getSubscriptionTypeSettingsUnicodeProperties()
      Specified by:
      getSubscriptionTypeSettingsUnicodeProperties in interface CPDefinition
    • getTaxExempt

      public boolean getTaxExempt()
      Returns the tax exempt of this cp definition.
      Specified by:
      getTaxExempt in interface CPDefinitionModel
      Returns:
      the tax exempt of this cp definition
    • getTelcoOrElectronics

      public boolean getTelcoOrElectronics()
      Returns the telco or electronics of this cp definition.
      Specified by:
      getTelcoOrElectronics in interface CPDefinitionModel
      Returns:
      the telco or electronics of this cp definition
    • getURL

      public String getURL(String languageId)
      Specified by:
      getURL in interface CPDefinition
    • getUrlTitleMap

      public Map<Locale,String> getUrlTitleMap()
      Specified by:
      getUrlTitleMap in interface CPDefinition
    • getUserId

      public long getUserId()
      Returns the user ID of this cp definition.
      Specified by:
      getUserId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserId in interface CPDefinitionModel
      Returns:
      the user ID of this cp definition
    • getUserName

      public String getUserName()
      Returns the user name of this cp definition.
      Specified by:
      getUserName in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserName in interface CPDefinitionModel
      Returns:
      the user name of this cp definition
    • getUserUuid

      public String getUserUuid()
      Returns the user uuid of this cp definition.
      Specified by:
      getUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserUuid in interface CPDefinitionModel
      Returns:
      the user uuid of this cp definition
    • getUuid

      public String getUuid()
      Returns the uuid of this cp definition.
      Specified by:
      getUuid in interface CPDefinitionModel
      Specified by:
      getUuid in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the uuid of this cp definition
    • getVersion

      public int getVersion()
      Returns the version of this cp definition.
      Specified by:
      getVersion in interface CPDefinitionModel
      Returns:
      the version of this cp definition
    • getWeight

      public double getWeight()
      Returns the weight of this cp definition.
      Specified by:
      getWeight in interface CPDefinitionModel
      Returns:
      the weight of this cp definition
    • getWidth

      public double getWidth()
      Returns the width of this cp definition.
      Specified by:
      getWidth in interface CPDefinitionModel
      Returns:
      the width of this cp definition
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface CPDefinition
      Overrides:
      hashCode in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CPDefinition>
    • isAccountGroupFilterEnabled

      public boolean isAccountGroupFilterEnabled()
      Returns true if this cp definition is account group filter enabled.
      Specified by:
      isAccountGroupFilterEnabled in interface CPDefinitionModel
      Returns:
      true if this cp definition is account group filter enabled; false otherwise
    • isApproved

      public boolean isApproved()
      Returns true if this cp definition is approved.
      Specified by:
      isApproved in interface CPDefinitionModel
      Specified by:
      isApproved in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this cp definition is approved; false otherwise
    • isAvailableIndividually

      public boolean isAvailableIndividually()
      Returns true if this cp definition is available individually.
      Specified by:
      isAvailableIndividually in interface CPDefinitionModel
      Returns:
      true if this cp definition is available individually; false otherwise
    • isChannelFilterEnabled

      public boolean isChannelFilterEnabled()
      Returns true if this cp definition is channel filter enabled.
      Specified by:
      isChannelFilterEnabled in interface CPDefinitionModel
      Returns:
      true if this cp definition is channel filter enabled; false otherwise
    • isDeliverySubscriptionEnabled

      public boolean isDeliverySubscriptionEnabled()
      Returns true if this cp definition is delivery subscription enabled.
      Specified by:
      isDeliverySubscriptionEnabled in interface CPDefinitionModel
      Returns:
      true if this cp definition is delivery subscription enabled; false otherwise
    • isDenied

      public boolean isDenied()
      Returns true if this cp definition is denied.
      Specified by:
      isDenied in interface CPDefinitionModel
      Specified by:
      isDenied in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this cp definition is denied; false otherwise
    • isDraft

      public boolean isDraft()
      Returns true if this cp definition is a draft.
      Specified by:
      isDraft in interface CPDefinitionModel
      Specified by:
      isDraft in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this cp definition is a draft; false otherwise
    • isExpired

      public boolean isExpired()
      Returns true if this cp definition is expired.
      Specified by:
      isExpired in interface CPDefinitionModel
      Specified by:
      isExpired in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this cp definition is expired; false otherwise
    • isFreeShipping

      public boolean isFreeShipping()
      Returns true if this cp definition is free shipping.
      Specified by:
      isFreeShipping in interface CPDefinitionModel
      Returns:
      true if this cp definition is free shipping; false otherwise
    • isIgnoreSKUCombinations

      public boolean isIgnoreSKUCombinations()
      Returns true if this cp definition is ignore sku combinations.
      Specified by:
      isIgnoreSKUCombinations in interface CPDefinitionModel
      Returns:
      true if this cp definition is ignore sku combinations; false otherwise
    • isInactive

      public boolean isInactive()
      Returns true if this cp definition is inactive.
      Specified by:
      isInactive in interface CPDefinitionModel
      Specified by:
      isInactive in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this cp definition is inactive; false otherwise
    • isIncomplete

      public boolean isIncomplete()
      Returns true if this cp definition is incomplete.
      Specified by:
      isIncomplete in interface CPDefinitionModel
      Specified by:
      isIncomplete in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this cp definition is incomplete; false otherwise
    • isPending

      public boolean isPending()
      Returns true if this cp definition is pending.
      Specified by:
      isPending in interface CPDefinitionModel
      Specified by:
      isPending in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this cp definition is pending; false otherwise
    • isPublished

      public boolean isPublished()
      Returns true if this cp definition is published.
      Specified by:
      isPublished in interface CPDefinitionModel
      Returns:
      true if this cp definition is published; false otherwise
    • isScheduled

      public boolean isScheduled()
      Returns true if this cp definition is scheduled.
      Specified by:
      isScheduled in interface CPDefinitionModel
      Specified by:
      isScheduled in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this cp definition is scheduled; false otherwise
    • isShippable

      public boolean isShippable()
      Returns true if this cp definition is shippable.
      Specified by:
      isShippable in interface CPDefinitionModel
      Returns:
      true if this cp definition is shippable; false otherwise
    • isShipSeparately

      public boolean isShipSeparately()
      Returns true if this cp definition is ship separately.
      Specified by:
      isShipSeparately in interface CPDefinitionModel
      Returns:
      true if this cp definition is ship separately; false otherwise
    • isSubscriptionEnabled

      public boolean isSubscriptionEnabled()
      Returns true if this cp definition is subscription enabled.
      Specified by:
      isSubscriptionEnabled in interface CPDefinitionModel
      Returns:
      true if this cp definition is subscription enabled; false otherwise
    • isTaxExempt

      public boolean isTaxExempt()
      Returns true if this cp definition is tax exempt.
      Specified by:
      isTaxExempt in interface CPDefinitionModel
      Returns:
      true if this cp definition is tax exempt; false otherwise
    • isTelcoOrElectronics

      public boolean isTelcoOrElectronics()
      Returns true if this cp definition is telco or electronics.
      Specified by:
      isTelcoOrElectronics in interface CPDefinitionModel
      Returns:
      true if this cp definition is telco or electronics; false otherwise
    • isVisible

      public boolean isVisible(long cpConfigurationListId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      isVisible in interface CPDefinition
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • persist

      public void persist()
      Specified by:
      persist in interface com.liferay.portal.kernel.model.PersistedModel
    • setAccountGroupFilterEnabled

      public void setAccountGroupFilterEnabled(boolean accountGroupFilterEnabled)
      Sets whether this cp definition is account group filter enabled.
      Specified by:
      setAccountGroupFilterEnabled in interface CPDefinitionModel
      Parameters:
      accountGroupFilterEnabled - the account group filter enabled of this cp definition
    • setAvailableIndividually

      public void setAvailableIndividually(boolean availableIndividually)
      Sets whether this cp definition is available individually.
      Specified by:
      setAvailableIndividually in interface CPDefinitionModel
      Parameters:
      availableIndividually - the available individually of this cp definition
    • setChannelFilterEnabled

      public void setChannelFilterEnabled(boolean channelFilterEnabled)
      Sets whether this cp definition is channel filter enabled.
      Specified by:
      setChannelFilterEnabled in interface CPDefinitionModel
      Parameters:
      channelFilterEnabled - the channel filter enabled of this cp definition
    • setCompanyId

      public void setCompanyId(long companyId)
      Sets the company ID of this cp definition.
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCompanyId in interface CPDefinitionModel
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      companyId - the company ID of this cp definition
    • setCPDefinitionId

      public void setCPDefinitionId(long CPDefinitionId)
      Sets the cp definition ID of this cp definition.
      Specified by:
      setCPDefinitionId in interface CPDefinitionModel
      Parameters:
      CPDefinitionId - the cp definition ID of this cp definition
    • setCProductId

      public void setCProductId(long CProductId)
      Sets the c product ID of this cp definition.
      Specified by:
      setCProductId in interface CPDefinitionModel
      Parameters:
      CProductId - the c product ID of this cp definition
    • setCPTaxCategoryId

      public void setCPTaxCategoryId(long CPTaxCategoryId)
      Sets the cp tax category ID of this cp definition.
      Specified by:
      setCPTaxCategoryId in interface CPDefinitionModel
      Parameters:
      CPTaxCategoryId - the cp tax category ID of this cp definition
    • setCreateDate

      public void setCreateDate(Date createDate)
      Sets the create date of this cp definition.
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCreateDate in interface CPDefinitionModel
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      createDate - the create date of this cp definition
    • setCtCollectionId

      public void setCtCollectionId(long ctCollectionId)
      Sets the ct collection ID of this cp definition.
      Specified by:
      setCtCollectionId in interface CPDefinitionModel
      Specified by:
      setCtCollectionId in interface com.liferay.portal.kernel.model.change.tracking.CTModel<CPDefinition>
      Parameters:
      ctCollectionId - the ct collection ID of this cp definition
    • setDDMStructureKey

      public void setDDMStructureKey(String DDMStructureKey)
      Sets the ddm structure key of this cp definition.
      Specified by:
      setDDMStructureKey in interface CPDefinitionModel
      Parameters:
      DDMStructureKey - the ddm structure key of this cp definition
    • setDefaultLanguageId

      public void setDefaultLanguageId(String defaultLanguageId)
      Sets the default language ID of this cp definition.
      Specified by:
      setDefaultLanguageId in interface CPDefinitionModel
      Parameters:
      defaultLanguageId - the default language ID of this cp definition
    • setDeliveryMaxSubscriptionCycles

      public void setDeliveryMaxSubscriptionCycles(long deliveryMaxSubscriptionCycles)
      Sets the delivery max subscription cycles of this cp definition.
      Specified by:
      setDeliveryMaxSubscriptionCycles in interface CPDefinitionModel
      Parameters:
      deliveryMaxSubscriptionCycles - the delivery max subscription cycles of this cp definition
    • setDeliverySubscriptionEnabled

      public void setDeliverySubscriptionEnabled(boolean deliverySubscriptionEnabled)
      Sets whether this cp definition is delivery subscription enabled.
      Specified by:
      setDeliverySubscriptionEnabled in interface CPDefinitionModel
      Parameters:
      deliverySubscriptionEnabled - the delivery subscription enabled of this cp definition
    • setDeliverySubscriptionLength

      public void setDeliverySubscriptionLength(int deliverySubscriptionLength)
      Sets the delivery subscription length of this cp definition.
      Specified by:
      setDeliverySubscriptionLength in interface CPDefinitionModel
      Parameters:
      deliverySubscriptionLength - the delivery subscription length of this cp definition
    • setDeliverySubscriptionType

      public void setDeliverySubscriptionType(String deliverySubscriptionType)
      Sets the delivery subscription type of this cp definition.
      Specified by:
      setDeliverySubscriptionType in interface CPDefinitionModel
      Parameters:
      deliverySubscriptionType - the delivery subscription type of this cp definition
    • setDeliverySubscriptionTypeSettings

      public void setDeliverySubscriptionTypeSettings(String deliverySubscriptionTypeSettings)
      Sets the delivery subscription type settings of this cp definition.
      Specified by:
      setDeliverySubscriptionTypeSettings in interface CPDefinitionModel
      Parameters:
      deliverySubscriptionTypeSettings - the delivery subscription type settings of this cp definition
    • setDeliverySubscriptionTypeSettingsUnicodeProperties

      public void setDeliverySubscriptionTypeSettingsUnicodeProperties(com.liferay.portal.kernel.util.UnicodeProperties deliverySubscriptionTypeSettingsUnicodeProperties)
      Specified by:
      setDeliverySubscriptionTypeSettingsUnicodeProperties in interface CPDefinition
    • setDepth

      public void setDepth(double depth)
      Sets the depth of this cp definition.
      Specified by:
      setDepth in interface CPDefinitionModel
      Parameters:
      depth - the depth of this cp definition
    • setDescriptionMap

      public void setDescriptionMap(Map<Locale,String> descriptionMap)
      Specified by:
      setDescriptionMap in interface CPDefinition
    • setDisplayDate

      public void setDisplayDate(Date displayDate)
      Sets the display date of this cp definition.
      Specified by:
      setDisplayDate in interface CPDefinitionModel
      Parameters:
      displayDate - the display date of this cp definition
    • setExpirationDate

      public void setExpirationDate(Date expirationDate)
      Sets the expiration date of this cp definition.
      Specified by:
      setExpirationDate in interface CPDefinitionModel
      Parameters:
      expirationDate - the expiration date of this cp definition
    • setFreeShipping

      public void setFreeShipping(boolean freeShipping)
      Sets whether this cp definition is free shipping.
      Specified by:
      setFreeShipping in interface CPDefinitionModel
      Parameters:
      freeShipping - the free shipping of this cp definition
    • setGroupId

      public void setGroupId(long groupId)
      Sets the group ID of this cp definition.
      Specified by:
      setGroupId in interface CPDefinitionModel
      Specified by:
      setGroupId in interface com.liferay.portal.kernel.model.GroupedModel
      Parameters:
      groupId - the group ID of this cp definition
    • setHeight

      public void setHeight(double height)
      Sets the height of this cp definition.
      Specified by:
      setHeight in interface CPDefinitionModel
      Parameters:
      height - the height of this cp definition
    • setIgnoreSKUCombinations

      public void setIgnoreSKUCombinations(boolean ignoreSKUCombinations)
      Sets whether this cp definition is ignore sku combinations.
      Specified by:
      setIgnoreSKUCombinations in interface CPDefinitionModel
      Parameters:
      ignoreSKUCombinations - the ignore sku combinations of this cp definition
    • setLastPublishDate

      public void setLastPublishDate(Date lastPublishDate)
      Sets the last publish date of this cp definition.
      Specified by:
      setLastPublishDate in interface CPDefinitionModel
      Specified by:
      setLastPublishDate in interface com.liferay.portal.kernel.model.StagedGroupedModel
      Parameters:
      lastPublishDate - the last publish date of this cp definition
    • setMaxSubscriptionCycles

      public void setMaxSubscriptionCycles(long maxSubscriptionCycles)
      Sets the max subscription cycles of this cp definition.
      Specified by:
      setMaxSubscriptionCycles in interface CPDefinitionModel
      Parameters:
      maxSubscriptionCycles - the max subscription cycles of this cp definition
    • setModifiedDate

      public void setModifiedDate(Date modifiedDate)
      Sets the modified date of this cp definition.
      Specified by:
      setModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setModifiedDate in interface CPDefinitionModel
      Specified by:
      setModifiedDate in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      modifiedDate - the modified date of this cp definition
    • setMvccVersion

      public void setMvccVersion(long mvccVersion)
      Sets the mvcc version of this cp definition.
      Specified by:
      setMvccVersion in interface CPDefinitionModel
      Specified by:
      setMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Parameters:
      mvccVersion - the mvcc version of this cp definition
    • setNameMap

      public void setNameMap(Map<Locale,String> nameMap)
      Specified by:
      setNameMap in interface CPDefinition
    • setPrimaryKey

      public void setPrimaryKey(long primaryKey)
      Sets the primary key of this cp definition.
      Specified by:
      setPrimaryKey in interface CPDefinitionModel
      Specified by:
      setPrimaryKey in interface com.liferay.portal.kernel.model.change.tracking.CTModel<CPDefinition>
      Parameters:
      primaryKey - the primary key of this cp definition
    • setProductTypeName

      public void setProductTypeName(String productTypeName)
      Sets the product type name of this cp definition.
      Specified by:
      setProductTypeName in interface CPDefinitionModel
      Parameters:
      productTypeName - the product type name of this cp definition
    • setPublished

      public void setPublished(boolean published)
      Sets whether this cp definition is published.
      Specified by:
      setPublished in interface CPDefinitionModel
      Parameters:
      published - the published of this cp definition
    • setShippable

      public void setShippable(boolean shippable)
      Sets whether this cp definition is shippable.
      Specified by:
      setShippable in interface CPDefinitionModel
      Parameters:
      shippable - the shippable of this cp definition
    • setShippingExtraPrice

      public void setShippingExtraPrice(double shippingExtraPrice)
      Sets the shipping extra price of this cp definition.
      Specified by:
      setShippingExtraPrice in interface CPDefinitionModel
      Parameters:
      shippingExtraPrice - the shipping extra price of this cp definition
    • setShipSeparately

      public void setShipSeparately(boolean shipSeparately)
      Sets whether this cp definition is ship separately.
      Specified by:
      setShipSeparately in interface CPDefinitionModel
      Parameters:
      shipSeparately - the ship separately of this cp definition
    • setShortDescriptionMap

      public void setShortDescriptionMap(Map<Locale,String> shortDescriptionMap)
      Specified by:
      setShortDescriptionMap in interface CPDefinition
    • setStatus

      public void setStatus(int status)
      Sets the status of this cp definition.
      Specified by:
      setStatus in interface CPDefinitionModel
      Specified by:
      setStatus in interface com.liferay.portal.kernel.model.WorkflowedModel
      Parameters:
      status - the status of this cp definition
    • setStatusByUserId

      public void setStatusByUserId(long statusByUserId)
      Sets the status by user ID of this cp definition.
      Specified by:
      setStatusByUserId in interface CPDefinitionModel
      Specified by:
      setStatusByUserId in interface com.liferay.portal.kernel.model.WorkflowedModel
      Parameters:
      statusByUserId - the status by user ID of this cp definition
    • setStatusByUserName

      public void setStatusByUserName(String statusByUserName)
      Sets the status by user name of this cp definition.
      Specified by:
      setStatusByUserName in interface CPDefinitionModel
      Specified by:
      setStatusByUserName in interface com.liferay.portal.kernel.model.WorkflowedModel
      Parameters:
      statusByUserName - the status by user name of this cp definition
    • setStatusByUserUuid

      public void setStatusByUserUuid(String statusByUserUuid)
      Sets the status by user uuid of this cp definition.
      Specified by:
      setStatusByUserUuid in interface CPDefinitionModel
      Specified by:
      setStatusByUserUuid in interface com.liferay.portal.kernel.model.WorkflowedModel
      Parameters:
      statusByUserUuid - the status by user uuid of this cp definition
    • setStatusDate

      public void setStatusDate(Date statusDate)
      Sets the status date of this cp definition.
      Specified by:
      setStatusDate in interface CPDefinitionModel
      Specified by:
      setStatusDate in interface com.liferay.portal.kernel.model.WorkflowedModel
      Parameters:
      statusDate - the status date of this cp definition
    • setSubscriptionEnabled

      public void setSubscriptionEnabled(boolean subscriptionEnabled)
      Sets whether this cp definition is subscription enabled.
      Specified by:
      setSubscriptionEnabled in interface CPDefinitionModel
      Parameters:
      subscriptionEnabled - the subscription enabled of this cp definition
    • setSubscriptionLength

      public void setSubscriptionLength(int subscriptionLength)
      Sets the subscription length of this cp definition.
      Specified by:
      setSubscriptionLength in interface CPDefinitionModel
      Parameters:
      subscriptionLength - the subscription length of this cp definition
    • setSubscriptionType

      public void setSubscriptionType(String subscriptionType)
      Sets the subscription type of this cp definition.
      Specified by:
      setSubscriptionType in interface CPDefinitionModel
      Parameters:
      subscriptionType - the subscription type of this cp definition
    • setSubscriptionTypeSettings

      public void setSubscriptionTypeSettings(String subscriptionTypeSettings)
      Sets the subscription type settings of this cp definition.
      Specified by:
      setSubscriptionTypeSettings in interface CPDefinitionModel
      Parameters:
      subscriptionTypeSettings - the subscription type settings of this cp definition
    • setSubscriptionTypeSettingsUnicodeProperties

      public void setSubscriptionTypeSettingsUnicodeProperties(com.liferay.portal.kernel.util.UnicodeProperties subscriptionTypeSettingsUnicodeProperties)
      Specified by:
      setSubscriptionTypeSettingsUnicodeProperties in interface CPDefinition
    • setTaxExempt

      public void setTaxExempt(boolean taxExempt)
      Sets whether this cp definition is tax exempt.
      Specified by:
      setTaxExempt in interface CPDefinitionModel
      Parameters:
      taxExempt - the tax exempt of this cp definition
    • setTelcoOrElectronics

      public void setTelcoOrElectronics(boolean telcoOrElectronics)
      Sets whether this cp definition is telco or electronics.
      Specified by:
      setTelcoOrElectronics in interface CPDefinitionModel
      Parameters:
      telcoOrElectronics - the telco or electronics of this cp definition
    • setUrlTitleMap

      public void setUrlTitleMap(Map<Locale,String> urlTitleMap)
      Specified by:
      setUrlTitleMap in interface CPDefinition
    • setUserId

      public void setUserId(long userId)
      Sets the user ID of this cp definition.
      Specified by:
      setUserId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserId in interface CPDefinitionModel
      Parameters:
      userId - the user ID of this cp definition
    • setUserName

      public void setUserName(String userName)
      Sets the user name of this cp definition.
      Specified by:
      setUserName in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserName in interface CPDefinitionModel
      Parameters:
      userName - the user name of this cp definition
    • setUserUuid

      public void setUserUuid(String userUuid)
      Sets the user uuid of this cp definition.
      Specified by:
      setUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserUuid in interface CPDefinitionModel
      Parameters:
      userUuid - the user uuid of this cp definition
    • setUuid

      public void setUuid(String uuid)
      Sets the uuid of this cp definition.
      Specified by:
      setUuid in interface CPDefinitionModel
      Specified by:
      setUuid in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      uuid - the uuid of this cp definition
    • setVersion

      public void setVersion(int version)
      Sets the version of this cp definition.
      Specified by:
      setVersion in interface CPDefinitionModel
      Parameters:
      version - the version of this cp definition
    • setWeight

      public void setWeight(double weight)
      Sets the weight of this cp definition.
      Specified by:
      setWeight in interface CPDefinitionModel
      Parameters:
      weight - the weight of this cp definition
    • setWidth

      public void setWidth(double width)
      Sets the width of this cp definition.
      Specified by:
      setWidth in interface CPDefinitionModel
      Parameters:
      width - the width of this cp definition
    • toXmlString

      public String toXmlString()
      Specified by:
      toXmlString in interface CPDefinitionModel
    • getAttributeGetterFunctions

      public Map<String,Function<CPDefinition,Object>> getAttributeGetterFunctions()
      Specified by:
      getAttributeGetterFunctions in interface com.liferay.portal.kernel.model.BaseModel<CPDefinition>
    • getAttributeSetterBiConsumers

      public Map<String,BiConsumer<CPDefinition,Object>> getAttributeSetterBiConsumers()
      Specified by:
      getAttributeSetterBiConsumers in interface com.liferay.portal.kernel.model.BaseModel<CPDefinition>
    • getStagedModelType

      public com.liferay.exportimport.kernel.lar.StagedModelType getStagedModelType()
      Specified by:
      getStagedModelType in interface com.liferay.portal.kernel.model.StagedModel
    • wrap

      protected CPDefinitionWrapper wrap(CPDefinition cpDefinition)
      Specified by:
      wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CPDefinition>